Author: wikier
Date: Tue Jun 17 14:06:01 2014
New Revision: 1603177
URL: http://svn.apache.org/r1603177
Log:
STANBOL-1190: added the required configuration to run the war with the tomcat7
plugin
Modified:
stanbol/trunk/launchers/full-war/pom.xml
Modified: stanbol/trunk/launchers/full-war/pom.xml
URL:
http://svn.apache.org/viewvc/stanbol/trunk/launchers/full-war/pom.xml?rev=1603177&r1=1603176&r2=1603177&view=diff
==============================================================================
--- stanbol/trunk/launchers/full-war/pom.xml (original)
+++ stanbol/trunk/launchers/full-war/pom.xml Tue Jun 17 14:06:01 2014
@@ -43,7 +43,14 @@
<url>http://stanbol.apache.org/</url>
</scm>
+ <properties>
+ <stanbol.context>/stanbol</stanbol.context>
+ <stanbol.port>8080</stanbol.port>
+
<stanbol.home>${project.build.directory}${file.separator}stanbol</stanbol.home>
+ </properties>
+
<build>
+ <finalName>stanbol</finalName>
<plugins>
<plugin>
<groupId>org.apache.sling</groupId>
@@ -113,8 +120,13 @@
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
- <path>/stanbol</path>
- <port>8081</port>
+ <path>${stanbol.context}</path>
+ <port>${stanbol.port}</port>
+ <systemProperties>
+ <sling.home>${stanbol.home}</sling.home> <!-- TODO: later
overwritten by a servlet -->
+ </systemProperties>
+
<addWarDependenciesInClassloader>true</addWarDependenciesInClassloader>
+
<warSourceDirectory>${project.build.directory}/${project.build.finalName}/</warSourceDirectory>
</configuration>
</plugin>
</plugins>