Export to GitHub

t7mp - GettingStarted.wiki


Quick setup for the maven-t7-plugin

Getting Started

Edit your POM

As with any other Maven2 Plugin you have to configure the plugin in the build-section of your projects pom.xml file.

<build> <finalName>yourFinalName</finalName> <plugins> <plugin> <groupId>com.googlecode.t7mp</groupId> <artifactId>maven-t7-plugin</artifactId> <version>0.9.6</version> </plugin> </plugins> </build>

UPDATE: We are in Maven-Central-Repository (Thanks to Sonatype). Do the following step only when your Maven-Build can not resolve the plugin.

Because this plugin is not yet in Maven-Central-Repository you have to add the following repository-section to your pom.xml too:

<repositories> <repository> <id>sonatype-oss-repository</id> <url>https://oss.sonatype.org/content/groups/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories>

We use the Sonatype-OSS-Maven-Repository-Service for uploading artifacts to Maven-Central when the first release goes live. (Thanks to Sonatype for this cool service.)

Run Maven and use the t7:run command

For a quick setup this all you have to do. After that you can run the build with the following command:

mvn clean install t7:run

Do you see a similar output on your console?

That's it. You should see a similar output on your console.

[INFO] Starting Tomcat ... 22.08.2010 10:25:47 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: ... 22.08.2010 10:25:47 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 22.08.2010 10:25:47 org.apache.coyote.ajp.AjpProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 22.08.2010 10:25:47 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 801 ms 22.08.2010 10:25:47 org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina 22.08.2010 10:25:47 org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.2 22.08.2010 10:25:47 org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory plugin 22.08.2010 10:25:48 org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 22.08.2010 10:25:48 org.apache.coyote.ajp.AjpProtocol start INFO: Starting Coyote AJP/1.3 on ajp-8009 22.08.2010 10:25:48 org.apache.catalina.startup.Catalina start INFO: Server startup in 379 ms

Stop the Tomcat-Server

Use Ctrl+C for stopping the process.

Does not work as expected?

If it doesn't work. Please let us know and create an issue. Thank you.