|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
uberwar pluginHi,
I use the uberwar plugin. I also use the Maven release plugin. When I run the prepare goal, It also update the first version dependency. <dependencies> <dependency> <groupId>fr.xxx</groupId> <artifactId>aaaaaaaa</artifactId> <type>war</type> <version>6.0.1-SNAPSHOT</version> </dependency> <dependency> <groupId>fr.xxx</groupId> <artifactId>bbbbbbbbb</artifactId> <type>war</type> <version>3.0.1-SNAPSHOT</version> </dependency> </dependencies> In the POM, I've got a reference to a parent POM, which contains the dependencies versions. If I remove versions in the child POM it don't work. Thanks for your help. Don't work : <groupId>fr.xxx</groupId> <artifactId>ccccccccc</artifactId> <name>ccccccccccc</name> <packaging>uberwar</packaging> <version>2.0.1-SNAPSHOT</version> <parent> <groupId>fr.xxx</groupId> <artifactId>parent</artifactId> <version>4.2.1-SNAPSHOT</version> </parent> <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <extensions>true</extensions> <configuration> <descriptor>merge.xml</descriptor> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>fr.xxx</groupId> <artifactId>aaaaaaaa</artifactId> <type>war</type> </dependency> <dependency> <groupId>fr.xxx</groupId> <artifactId>bbbbbbbbbb</artifactId> <type>war</type> </dependency> </dependencies> </project> |
|
|
Re: uberwar pluginWhat exactly is the problem?
On Thu, 2009-06-11 at 03:29 -0700, Rémy wrote: > Hi, > > I use the uberwar plugin. I also use the > http://maven.apache.org/plugins/maven-release-plugin/ Maven release plugin . > When I run the prepare goal, It also update the first version dependency. > > <dependencies> > <dependency> > <groupId>fr.xxx</groupId> > <artifactId>aaaaaaaa</artifactId> > <type>war</type> > <version>6.0.1-SNAPSHOT</version> > </dependency> > <dependency> > <groupId>fr.xxx</groupId> > <artifactId>bbbbbbbbb</artifactId> > <type>war</type> > <version>3.0.1-SNAPSHOT</version> > </dependency> > </dependencies> > > In the POM, I've got a reference to a parent POM, which contains the > dependencies versions. If I remove versions in the child POM it don't work. It sounds like you should be using dependencymanagement in your project to specify the versions your whole project should be using. > Thanks for your help. > > Don't work : > > <groupId>fr.xxx</groupId> > <artifactId>ccccccccc</artifactId> > <name>ccccccccccc</name> > <packaging>uberwar</packaging> > <version>2.0.1-SNAPSHOT</version> > <parent> > <groupId>fr.xxx</groupId> > <artifactId>parent</artifactId> > <version>4.2.1-SNAPSHOT</version> > </parent> > <build> > <plugins> > <plugin> > <groupId>org.codehaus.cargo</groupId> > <artifactId>cargo-maven2-plugin</artifactId> > <extensions>true</extensions> > <configuration> > <descriptor>merge.xml</descriptor> > </configuration> > </plugin> > </plugins> > </build> > <dependencies> > <dependency> > <groupId>fr.xxx</groupId> > <artifactId>aaaaaaaa</artifactId> > <type>war</type> > </dependency> > <dependency> > <groupId>fr.xxx</groupId> > <artifactId>bbbbbbbbbb</artifactId> > <type>war</type> > </dependency> > </dependencies> > </project> > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: uberwar pluginI specified the dependencies in the parent POM (dependencyManagement section). For 'jar' or 'war' artefact, I don't specify the version in the child POM. For 'uberwar' artefact, it don't work if I don't specify the version in the child POM - even if the version is shown in the parent dependencyManagement section. So, I specify the version of the 2 war in the dependency section of the child POM. The 'uberwar' plugin works fine. When I use the release:prepare plugin, only the first version is release. The second one remains in SNAPSHOT version.
Thanks. Rémy
|
|
|
Re: uberwar pluginOn Fri, 2009-06-12 at 12:02 -0700, Rémy wrote:
> I specified the dependencies in the parent POM (dependencyManagement > section). For 'jar' or 'war' artefact, I don't specify the version in the > child POM. For 'uberwar' artefact, it don't work if I don't specify the > version in the child POM - even if the version is shown in the parent > dependencyManagement section. So, I specify the version of the 2 war in the > dependency section of the child POM. The 'uberwar' plugin works fine. When I > use the release:prepare plugin, only the first version is release. The > second one remains in SNAPSHOT version. Isn't this an issue with the release plugin then? I havn't really used the uberwar plugin that much, if anyone else on this list has used it and knows more about it could you please speak up. > > > Matt Wringe wrote: > > > > What exactly is the problem? > > > > On Thu, 2009-06-11 at 03:29 -0700, Rémy wrote: > >> Hi, > >> > >> I use the uberwar plugin. I also use the > >> http://maven.apache.org/plugins/maven-release-plugin/ Maven release > >> plugin . > >> When I run the prepare goal, It also update the first version dependency. > >> > >> <dependencies> > >> <dependency> > >> <groupId>fr.xxx</groupId> > >> <artifactId>aaaaaaaa</artifactId> > >> <type>war</type> > >> <version>6.0.1-SNAPSHOT</version> > >> </dependency> > >> <dependency> > >> <groupId>fr.xxx</groupId> > >> <artifactId>bbbbbbbbb</artifactId> > >> <type>war</type> > >> <version>3.0.1-SNAPSHOT</version> > >> </dependency> > >> </dependencies> > >> > >> In the POM, I've got a reference to a parent POM, which contains the > >> dependencies versions. If I remove versions in the child POM it don't > >> work. > > > > It sounds like you should be using dependencymanagement in your project > > to specify the versions your whole project should be using. > > > >> Thanks for your help. > >> > >> Don't work : > >> > >> <groupId>fr.xxx</groupId> > >> <artifactId>ccccccccc</artifactId> > >> <name>ccccccccccc</name> > >> <packaging>uberwar</packaging> > >> <version>2.0.1-SNAPSHOT</version> > >> <parent> > >> <groupId>fr.xxx</groupId> > >> <artifactId>parent</artifactId> > >> <version>4.2.1-SNAPSHOT</version> > >> </parent> > >> <build> > >> <plugins> > >> <plugin> > >> <groupId>org.codehaus.cargo</groupId> > >> <artifactId>cargo-maven2-plugin</artifactId> > >> <extensions>true</extensions> > >> <configuration> > >> <descriptor>merge.xml</descriptor> > >> </configuration> > >> </plugin> > >> </plugins> > >> </build> > >> <dependencies> > >> <dependency> > >> <groupId>fr.xxx</groupId> > >> <artifactId>aaaaaaaa</artifactId> > >> <type>war</type> > >> </dependency> > >> <dependency> > >> <groupId>fr.xxx</groupId> > >> <artifactId>bbbbbbbbbb</artifactId> > >> <type>war</type> > >> </dependency> > >> </dependencies> > >> </project> > >> > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list, please visit: > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |