Hello,

I use the Cargo uberwar plugin. I also use the Maven release plugin. When I
run the prepare goal, It also update the first version dependency.

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.

        <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 (child POM) :

        <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> 
-- 
View this message in context: 
http://www.nabble.com/release%3Aprepare-with-uberwar-tp24071529p24071529.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to