Commits

Micha Kops  committed 82574e2

Maven exec plugin added, readme completed.

  • Participants
  • Parent commits aa3878e

Comments (0)

Files changed (2)

 
 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:
+
+    http://localhost:**PORT**/app/test
+
 ----
 
 **2014 Micha Kops /hasCode.com**
 				</executions>
 			</plugin>
 			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>exec-maven-plugin</artifactId>
+				<version>1.3</version>
+				<executions>
+					<execution>
+						<goals>
+							<goal>exec</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<arguments>
+						<argument>${tomcat-port}</argument>
+					</arguments>
+				</configuration>
+			</plugin>
+			<plugin>
 				<groupId>org.apache.maven.plugins</groupId>
 				<artifactId>maven-compiler-plugin</artifactId>
 				<version>2.4</version>