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.



Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications
 
Submitted comments will be subject to moderation before being displayed.
 

About

My name is Mike Haller and I'm a software developer and architect at Bosch Software Innovations in Germany. I love programming, playing games and reading books. I like good food, making photos and learning and mentoring about the craftsmanship of commercial software development. Stack Overflow profile for mhaller

Quicksearch