« Return to Thread: uberwar plugin

uberwar plugin

by Rémy :: Rate this Message:

Reply to Author | View in Thread

Hi,

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>

 « Return to Thread: uberwar plugin