Hi JB, That is my point. I CANNOT install it on my repository. Reason being is that a have an automated build system and that jar has to be picked straight from /src/main/lib and packaged.
So, thanks but that does not solve my problem. That I know how to do. Any other ideas? Kind regards, Scheidecker Jean-Baptiste Onofré wrote: > > Hi, > > you can install the jar file in your local maven repository > (~/.m2/repository) like this : > > mvn install:install-file -Dfile=myjar -DgroupId=my -DartifactId=jar > -Dversion=1.0 -Dpackaging=jar > > After that in your pom.xml, you can define the dependency : > > <dependency> > <groupId>my</groupId> > <artifactId>my</artifactId> > <version>1.0</version> > </dependency> > > Regards > JB > > On Friday 20 March 2009 - 10:10, Scheidecker wrote: >> >> Hello all, >> >> Sorry for this question but I could not find documentation on it and I >> was >> not able to find it online. >> >> I have a jar that is NOT on my repository and I do not want it to be. It >> is >> inside my projects /src/main/lib. >> >> I need that when jbi-maven-plugin is building my SA, this jar has to be >> included inside my provider su zip file in its /lib directory. >> >> The jbi-maven-plugin creates the provider su zip and, inside, it has a >> /lib >> directory where it puts all the jars from the dependencies from my >> repository. In this case this jar is not and cannot be in the repository >> but >> it has to be packaged there. >> >> So how can I make jbi-maven-plugin and maven build the su and grabbing >> this >> jar from my /src/main/lib ? >> >> Thanks in advance. >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-package-a-jar-from--src-main-lib-into-my-provider-zip-file--lib-directory-tp22624751p22624751.html >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/How-to-package-a-jar-from--src-main-lib-into-my-provider-zip-file--lib-directory-tp22624751p22624985.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
