users@jersey.java.net

Re: [Jersey] heads up: trunk might become unstable

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Mon, 28 Jul 2008 14:26:52 +0200

On Mon, 2008-07-28 at 11:58 +0200, Paul Sandoz wrote:
> Hi Martin,
>
> Interestingly if i touch or modify the pom.xml then it works, sort of.
> Also, the sources are not correctly created.
>
> At first guess i think this is a bug in the "maven-shade-plugin". I
> tried playing around with the configuration [1] with no luck.
> Unfortunately i do not have much time to look into this and Jakub is on
> holiday for the next two weeks :-(
Ok. I also played with the pom.xml but with the same result.
So should the shade plugin be disabled first? Or is there a concrete
scenario that requires the artifact created by the shade plugin?

Cheers,
Martin


>
> Paul.
>
> [1] http://maven.apache.org/plugins/maven-shade-plugin/shade-mojo.html
>
> Martin Grotzke wrote:
> > Hi,
> >
> > another issue I'm experiencing:
> >
> > Doing an mvn install in trunk/jersey fails with this error:
> >
> > [INFO] ------------------------------------------------------------------------
> > [ERROR] BUILD ERROR
> > [INFO] ------------------------------------------------------------------------
> > [INFO] Error creating shaded jar.
> >
> > Embedded error: duplicate entry: com/sun/jersey/api/container/filter/PostReplaceFilter.class
> >
> > This seems to come from jersey-bundle, an mvn install in jersey-bundle
> > fails with the same error. Doing an "mvn clean install" is successful
> > for both jersey-bundle and trunk/jersey.
> >
> > The output of mvn -version:
> > Maven version: 2.0.9
> > Java version: 1.6.0_04
> > OS name: "linux" version: "2.6.25.11-97.fc9.i686" arch: "i386" Family: "unix"
> >
> > Cheers,
> > Martin
> >
> >
> > On Fri, 2008-07-25 at 19:10 +0200, Jakub Podlesak wrote:
> >> On Thu, Jul 24, 2008 at 06:09:12PM +0200, Jakub Podlesak wrote:
> >>> Hi all,
> >>>
> >>> I am going to merge changes from [jersey-modularization] into the main trunk.
> >>> Unfortunately i am having issues merging it in a one big shot. I will go with
> >>> some smaller steps and will most probably destabilize the trunk for some time.
> >>>
> >>> I will let you know when everything is ok again.
> >> The trunk should be stable again.
> >>
> >> You can build things after checkout this way:
> >>
> >> svn co https://jersey.dev.java.net/svn/jersey/trunk jersey-trunk
> >> cd jersey-trunk/jersey
> >> mvn clean install
> >>
> >> which will create (besides others) the following main jar files for you:
> >>
> >> 232K jersey-core/target/jersey-core-0.9-ea-SNAPSHOT.jar
> >> 344K jersey-server/target/jersey-server-0.9-ea-SNAPSHOT.jar
> >> 38K jersey-client/target/jersey-client-0.9-ea-SNAPSHOT.jar
> >> 55K jersey-json/target/jersey-json-0.9-ea-SNAPSHOT.jar
> >> 9K jersey-atom/target/jersey-atom-0.9-ea-SNAPSHOT.jar
> >>
> >> You can see that things have been split out. If you want to keep using
> >> a single big jar file, you can use:
> >>
> >> 664K jersey-bundle/target/jersey-bundle-0.9-ea-SNAPSHOT.jar
> >>
> >> All artifacts should be available together with source and javadoc jars at [1].
> >>
> >> ~Jakub
> >>
> >> [1]http://download.java.net/maven/2/com/sun/jersey/
> >>
> >>
> >>
> >>> Thanks for understanding.
> >>>
> >>> ~Jakub
> >>> --
> >>> http://blogs.sun.com/japod
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> >>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
> >>>
> >