Configuration files option cannot override files CARGO is attempting to replace

Description

See: http://old.nabble.com/conf.server.xml-being-overwritten--to34963090.html

Configuration files option cannot override files CARGO is attempting to replace. For example, with the below:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.3.2</version> <configuration> <container> <containerId>tomcat7x</containerId> <zipUrlInstaller> <url>http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.35/bin/apache-tomcat-7.0.35.zip</url> </zipUrlInstaller> </container> <configuration> <home>${project.build.directory}/catalina-base</home> <configfiles> <configfile> <file>${project.basedir}/src/test/resources/tomcat-server.xml</file> <tofile>conf/server.xml</tofile> <overwrite>true</overwrite> </configfile> </configfiles> </configuration> </configuration> </plugin>

CARGO will:

  1. Create the "base" Tomcat configuration

  2. Overrides the server.xml file

  3. And then, performs XML replacements and other changes in the server.xml file

Steps 2 and 3 should be inversed

Status

Assignee

Savas Ali Tokmen

Reporter

Savas Ali Tokmen

Components

Fix versions

Affects versions

1.3.2

Priority

Major