maven-port-allocation-tutorial /

Filename Size Date modified Message
37 B
701 B
1.8 KB

Maven Port Allocation Tutorial

Examples how to allocate or reserve ports in a Maven build using the maven-port-allocation plugin.

Please feel free to have a look at my blog for more detailed information.

Running different instances

You're able to spawn two instances starting an embedded Jetty running on different ports like this:

mvn compile exec:java -Dexec.mainClass=com.hascode.tutorial.HttpRunner    
mvn compile exec:java -Dexec.mainClass=com.hascode.tutorial.HttpRunner

Sample Web Application

The application is available at the following location:


2014 Micha Kops /