Cargo, Maven, Logging
Posted by Mike Haller
on Saturday, October 20. 2007
at 00:11
in Java
Cargo is a tool i'm using together with Maven 2 to start up a Web Container automatically (in this case, Tomcat), and let Maven deploy my Web Application under development. I'm one of those guys who like to have loads of debug information, just to see that something is actually happening there. Well, Cargo isn't very chatty and keeps being quite, although i've added log4j.A few minutes digging the documentation and trial and error and I got it working.
So I remembering that there's a stdout device on Windows (currently using my old Windows notebook), too, i got Cargo log as hell with the following settings in the Maven 2 pom.xml:
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<container>
<log>con</log>
<output>con</output>
</container>
<configuration>
<properties>
<cargo.logging>high</cargo.logging>
</properties>
</configuration>
</configuration>
</plugin>
I left out all the other information, only what's required to get it to log to the shell.
Note the con value of the log and output properties? That's the stdout device on Windows.
