Forgot to mention that mvn-shade will also produce an updated-dependency-pom.xml (or similarly named) where white-listed lib's dependency on your local repo will be removed from the packaged pom.xml. I use mvn-shade with mvn release plugin to deploy to Nexus OSS repo with those adjustments.
On Tue, Mar 30, 2010 at 11:48 AM, Steve Francolla <[email protected]>wrote: > You can install the lib to your local system repo and then completely avoid > others having the anticipated dependency build problem by applying the > mvn-shade-plugin: > > (1) mvn install the lib to my local system repo. > > mvn install:install-file -Dfile=lib\<your-lib>.jar -DgroupId=<group-id> > -DartifactId=<art-id> -Dversion=<vers> -Dpackaging=jar > > > (2) then, simply package this dependency within my proj's package with > something like: > > <project> > ... > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-shade-plugin</artifactId> > <version>1.3.2</version> > <executions> > <execution> > <phase>package</phase> > <goals> > <goal>shade</goal> > </goals> > <configuration> > > <includes> > > <include>[the-lib-group]:[the-lib-artifact]:*<includes> > > </includes> > > </configuration> </execution> </executions> </plugin> </plugins> </build> > ... </project> > > > Those who pull down your project will receive the depended upon library's > classes built directly into the project tree. > > SF > > > > On Tue, Mar 30, 2010 at 11:29 AM, Jeff MAURY <[email protected]> wrote: > >> If it does not exist on the cloud, don't try to put it there, there are >> probably many reasons for that. >> I would recommand that you install a Maven repository manager like Nexus >> and >> once you've set it up, then deploy on it the missing jar and all your >> internal Maven projects will see it now !!! >> >> Regards >> Jeff MAURY >> >> 2010/3/30 Benoît Thiébault <[email protected]> >> >> > Hello everyone, >> > >> > I am currently reading the very good Maven book from Nicolas De loof and >> > Arnaud Héritier (written in French) and I have decided to convert one of >> my >> > test projects to Maven. Unfortunately, I already have a problem :-). >> > >> > My software depends on an open source software, jlibeps ( >> > http://jlibeps.sourceforge.net/), but I can't find it in any Maven >> > repository. This library seems not very maintained anymore, but it does >> what >> > I need it to do. I don't want (yet) to host my own Maven repository and >> I >> > was wondering what are my options here ? Should I create a POM file for >> the >> > library and submit it to a Maven repository ? It seems ( >> > >> http://maven.apache.org/guides/mini/guide-central-repository-upload.html) >> > the simplest way to do it would be to host is on an approved forge, but >> I >> > don't own the project (that looks dead to me)... >> > >> > Thanks for your feedbacks >> > >> > Ben >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > >> >> >> -- >> http://www.jeffmaury.com >> http://riadiscuss.jeffmaury.com >> http://www.lastfm.fr/listen/user/jeffmaury/personal >> > > > > > > On Tue, Mar 30, 2010 at 11:29 AM, Jeff MAURY <[email protected]> wrote: > >> If it does not exist on the cloud, don't try to put it there, there are >> probably many reasons for that. >> I would recommand that you install a Maven repository manager like Nexus >> and >> once you've set it up, then deploy on it the missing jar and all your >> internal Maven projects will see it now !!! >> >> Regards >> Jeff MAURY >> >> 2010/3/30 Benoît Thiébault <[email protected]> >> >> > Hello everyone, >> > >> > I am currently reading the very good Maven book from Nicolas De loof and >> > Arnaud Héritier (written in French) and I have decided to convert one of >> my >> > test projects to Maven. Unfortunately, I already have a problem :-). >> > >> > My software depends on an open source software, jlibeps ( >> > http://jlibeps.sourceforge.net/), but I can't find it in any Maven >> > repository. This library seems not very maintained anymore, but it does >> what >> > I need it to do. I don't want (yet) to host my own Maven repository and >> I >> > was wondering what are my options here ? Should I create a POM file for >> the >> > library and submit it to a Maven repository ? It seems ( >> > >> http://maven.apache.org/guides/mini/guide-central-repository-upload.html) >> > the simplest way to do it would be to host is on an approved forge, but >> I >> > don't own the project (that looks dead to me)... >> > >> > Thanks for your feedbacks >> > >> > Ben >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > >> >> >> -- >> http://www.jeffmaury.com >> http://riadiscuss.jeffmaury.com >> http://www.lastfm.fr/listen/user/jeffmaury/personal >> > >
