maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Eckenfels <e...@zusammenkunft.net>
Subject Re: Maven - Using one bundle and its dependencies in another
Date Fri, 22 May 2015 00:05:40 GMT
Hello,
(please discuss on the maven user mailinglist)

well, if you add your other jar as a dependency and use the maven
bundle plugin to generate the imports, you will get one import per
other package. This will require your other JAR to be deplyoed as a
second bundle.

If some automatically detected imports are superfluous you could
overwrite them.

It is hard to say what you need to do differently without knowing what
your problem is. 

If your "other JAR" is not a bundle and should not be shared between
multiple, I would import it with
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>

Gruss
Bernd


Am Tue, 19 May 2015 19:19:13 -0400 schrieb Venkata
Ravichandra Cherukuri <vcheruk2@ncsu.edu>:

> Respected Dev's,
> 
>    I am currently trying to build an application for ODL controller.
> I am using Apache Maven 3.1.1 for building my bundle.
> 
> I am facing issues (specifically: erroneous imports ) when I am
> trying to use a pre-exisiting bundle ( lets say some "x.jar" file
> built by me earlier using "mvn clean install") in my current project.
> The reason why I am doing this is because I need a lot of
> packages/interfaces/classes which are already existing in that
> bundle. I can't refactor them ( packages/interfaces/classes) into my
> current project directly because they are huge in number. I have
> imported the jar file in eclipse and tried to do "mvn clean install"
> but that doesn't help as the project has to be finally built/compiled
> in Maven.
> 
> This
> <https://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html>
> is one thing which Maven allowed me to do but it did not give any
> fruitful results.
> 
> Any pointers as to how to do it will be really helpful.
> 
> Best Regards,
> Venkata Ravichandra Cherukuri,
> Student, MS in Computer Networks,
> North Carolina State University, Raleigh, NC.
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message