Strabon
changeset 103:4291d3c2a7d0
Modified poms to build an executable war/jar with an embedded Apache Tomcat7.
You have to run as usual mvn package and then you can start the endpoint as follows: java -jar endpoint/target/strabon-endpoint-3.1.8-SNAPSHOT-war-exec.jar
You have to run as usual mvn package and then you can start the endpoint as follows: java -jar endpoint/target/strabon-endpoint-3.1.8-SNAPSHOT-war-exec.jar
author | Kostis Kyzirakos <kkyzir@di.uoa.gr> |
---|---|
date | Wed Apr 11 03:18:58 2012 +0300 (2012-04-11) |
parents | 05b72446dc14 |
children | beed37629a44 |
files | endpoint/pom.xml |
line diff
1.1 --- a/endpoint/pom.xml Thu Apr 05 23:14:23 2012 +0300 1.2 +++ b/endpoint/pom.xml Wed Apr 11 03:18:58 2012 +0300 1.3 @@ -175,32 +175,13 @@ 1.4 </archive> --> 1.5 </configuration> 1.6 </plugin> 1.7 - <!-- 1.8 - <plugin> 1.9 - <groupId>org.eclipse.m2e</groupId> 1.10 - <artifactId>lifecycle-mapping</artifactId> 1.11 - <version>1.0.0</version> 1.12 - <configuration> 1.13 - <lifecycleMappingMetadata> 1.14 - <pluginExecutions> 1.15 - <pluginExecution> 1.16 - <pluginExecutionFilter> 1.17 - <groupId>org.apache.maven.plugins</groupId> 1.18 - <artifactId>maven-dependency-plugin</artifactId> 1.19 - <versionRange>[2.1,)</versionRange> 1.20 - <goals> 1.21 - <goal>copy-dependencies</goal> 1.22 - </goals> 1.23 - </pluginExecutionFilter> 1.24 - <action> 1.25 - <ignore /> 1.26 - </action> 1.27 - </pluginExecution> 1.28 - </pluginExecutions> 1.29 - </lifecycleMappingMetadata> 1.30 - </configuration> 1.31 - </plugin> 1.32 - --> 1.33 + <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> 1.34 + <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> 1.35 + <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> 1.36 + <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.1,)</versionRange> 1.37 + <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter> 1.38 + <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> 1.39 + </configuration> </plugin> --> 1.40 <plugin> 1.41 <groupId>org.apache.maven.plugins</groupId> 1.42 <artifactId>maven-dependency-plugin</artifactId> 1.43 @@ -235,11 +216,36 @@ 1.44 <autoVersionSubmodules>true</autoVersionSubmodules> 1.45 </configuration> 1.46 </plugin> 1.47 + <plugin> 1.48 + <groupId>org.apache.tomcat.maven</groupId> 1.49 + <artifactId>tomcat7-maven-plugin</artifactId> 1.50 + <executions> 1.51 + <execution> 1.52 + <id>tomcat-run</id> 1.53 + <goals> 1.54 + <goal>exec-war-only</goal> 1.55 + </goals> 1.56 + <phase>package</phase> 1.57 + <configuration> 1.58 + <!-- optional only if you want to use a preconfigured server.xml file --> 1.59 + <!-- <serverXml>src/main/tomcatconf/server.xml</serverXml> --> 1.60 + <!-- naming is disable by default so use true to enable it --> 1.61 + <enableNaming>true</enableNaming> 1.62 + </configuration> 1.63 + </execution> 1.64 + </executions> 1.65 + </plugin> 1.66 </plugins> 1.67 1.68 <pluginManagement> 1.69 <plugins> 1.70 - <!-- 1.71 + <!-- <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> 1.72 + <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> 1.73 + <pluginExecution> <pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId> 1.74 + <artifactId>maven-dependency-plugin</artifactId> <versionRange>[2.3,)</versionRange> 1.75 + <goals> <goal>copy-dependencies</goal> </goals> </pluginExecutionFilter> 1.76 + <action> <ignore /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> 1.77 + </configuration> </plugin> --> 1.78 <plugin> 1.79 <groupId>org.eclipse.m2e</groupId> 1.80 <artifactId>lifecycle-mapping</artifactId> 1.81 @@ -251,7 +257,7 @@ 1.82 <pluginExecutionFilter> 1.83 <groupId>org.apache.maven.plugins</groupId> 1.84 <artifactId>maven-dependency-plugin</artifactId> 1.85 - <versionRange>[2.3,)</versionRange> 1.86 + <versionRange>[2.1,)</versionRange> 1.87 <goals> 1.88 <goal>copy-dependencies</goal> 1.89 </goals> 1.90 @@ -264,31 +270,6 @@ 1.91 </lifecycleMappingMetadata> 1.92 </configuration> 1.93 </plugin> 1.94 - --> 1.95 - <plugin> 1.96 - <groupId>org.eclipse.m2e</groupId> 1.97 - <artifactId>lifecycle-mapping</artifactId> 1.98 - <version>1.0.0</version> 1.99 - <configuration> 1.100 - <lifecycleMappingMetadata> 1.101 - <pluginExecutions> 1.102 - <pluginExecution> 1.103 - <pluginExecutionFilter> 1.104 - <groupId>org.apache.maven.plugins</groupId> 1.105 - <artifactId>maven-dependency-plugin</artifactId> 1.106 - <versionRange>[2.1,)</versionRange> 1.107 - <goals> 1.108 - <goal>copy-dependencies</goal> 1.109 - </goals> 1.110 - </pluginExecutionFilter> 1.111 - <action> 1.112 - <ignore /> 1.113 - </action> 1.114 - </pluginExecution> 1.115 - </pluginExecutions> 1.116 - </lifecycleMappingMetadata> 1.117 - </configuration> 1.118 - </plugin> 1.119 </plugins> 1.120 </pluginManagement> 1.121