war - Cargo maven plugin - start goal ignores configuration, "run" works fine -



war - Cargo maven plugin - start goal ignores configuration, "run" works fine -

i want cargo maven plugin start tomcat7 set pom:

<plugin> <groupid>org.codehaus.cargo</groupid> <artifactid>cargo-maven2-plugin</artifactid> <version>1.2.0</version> <!-- minimal configuration allow adb run (mvn bundle org.codehaus.cargo:cargo-maven2-plugin:run) in local tomcat --> <configuration> <containerid>tomcat7x</containerid> <containerurl>http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.zip </containerurl> <configuration> <properties> <cargo.servlet.port>1718</cargo.servlet.port> </properties> </configuration> </configuration> </plugin>

the problem if run:

mvn bundle org.codehaus.cargo:cargo-maven2-plugin:run

all working fine if run

mvn bundle org.codehaus.cargo:cargo-maven2-plugin:run

the configuration set in pom beeing ignored:"no container defined, using default [jetty6x, embedded] container"

you can reproduce easily. create war-maven app:

mvn archetype:generate -dgroupid=com.mycompany.app -dartifactid=my-webapp -darchetypeartifactid=maven-archetype-webappp

then add together code above pom , run both commands.

so how set containerid , url goal start -- missing something?!

so contacted cargo support. configuration above works indeed run goal, there configuration works both (the cargo doc somehow misguiding):

<plugin> <groupid>org.codehaus.cargo</groupid> <artifactid>cargo-maven2-plugin</artifactid> <version>1.2.0</version> <!-- minimal configuration allow adb run (mvn bundle org.codehaus.cargo:cargo-maven2-plugin:run) in local tomcat --> <configuration> <container> <containerid>tomcat7x</containerid> <zipurlinstaller> <url>http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.zip</url> </zipurlinstaller> </container> <configuration> <properties> <cargo.servlet.port>1718</cargo.servlet.port> </properties> </configuration> </configuration> </plugin>

notice additional container , zipurlinstaller tag instead of containerurl.

maven war cargo maven-cargo

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -