Create Java project with Maven archetype cargo-archetype-webapp-with-datasource

Sample Maven archetype showing how to configure Cargo and Maven to run functional tests directly from a webapp with datasource. Cargo will be used to configure the datasource on the container.

Create a Java Project by archetype cargo-archetype-webapp-with-datasource with Command Line:

mvn archetype:generate   -DgroupId="com.mycompany.app"   -DartifactId="my-app-id"   -DarchetypeGroupId="org.codehaus.cargo"   -DarchetypeArtifactId="cargo-archetype-webapp-with-datasource"   -DarchetypeVersion="1.6.0"   -DinteractiveMode=false 

Details about maven archetype cargo-archetype-webapp-with-datasource

GroupId

GroupId

org.codehaus.cargo
ArtifactId

ArtifactId

cargo-archetype-webapp-with-datasource
Version

Version

1.6.0
Type

Type

maven-archetype

How to add to project

mvn archetype:generate -DgroupId=<com.mycompany.app> -DartifactId=<my-app>  -DarchetypeGroupId=org.codehaus.cargo -DarchetypeArtifactId=cargo-archetype-webapp-with-datasource -DarchetypeVersion=1.6.0 -DinteractiveMode=false