|
V2 /
BuildWithMavenCONGO + Maven quick startIf you're setting up a virgin command line environment and want to just check CONGO out of SVN, and build a war file, do these steps: Procedure:
Troubleshooting
Alternate procedure to generate a snapshot war:
Alternate webrunner-invoked instance:
CONGO2? under eclipse (work in progress)
Releases:
Anything below this is from previous work on the build / dev process. Use with caution. Quick start: run Running CONGO 2 under Tomcat, from MavenIf you have a running Tomcat installation on your local machine, you can use maven to immediately deploy the created WAR to it. Add the following to
<settings>
<!-- ... -->
<servers>
<!-- ... -->
<server>
<id>congo.tomcat</id>
<username>manager</username>
<password>manager</password>
</server>
</servers>
<!-- ... -->
<profiles>
<!-- ... -->
<profile>
<id>congo</id>
<properties>
<!-- Use the 'congo.tomcat' credentials for maven-tomcat-plugin -->
<maven.tomcat.server>congo.tomcat</maven.tomcat.server>
<!-- Redeploy if tomcat:deploy runs when the app is already deployed. -->
<maven.tomcat.update>true</maven.tomcat.update>
</properties>
</profile>
</profiles>
<activeProfiles>
<!-- ... -->
<activeProfile>congo</activeProfile>
</activeProfiles>
<!-- ... -->
</settings>
(Replace the username and password with credentials that have access to Tomcat's Then run For more information, see the plugin documentation for Running CONGO under JettyRun I want to understand what I'm doing!Maven describes projects in terms of the artifacts they produce, not the steps involved in getting there. The build behaviour is specified in an XML configuration file at the root of the project named The CONGO POM specifies that the result of the build is a WAR file, with the source, resources, and web content laid out in Maven's standard build structure:
Maven defines a set of standard phases (build steps), any of which will automatically trigger all the preceeding phases. Internally, phases are associated with goals provided by various plugins. There are two important lifecycles (lists of phases):
Each of these phases triggers the preceeding phases: mvn deploy will compile, test, package, and install the project as well.
Lifecycle phases are run using the TODOs for the build
|