Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.2-incubating
-
All
Description
We would like to add Jetty (run) and basic logging to the sis-webapp pom.xml. Referenced here: http://mail-archives.apache.org/mod_mbox/incubator-sis-dev/201202.mbox/browser. I got it working by adding the following to the webapp xml file.
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<contextPath>/sis-webapp</contextPath>
<webApp>${basedir}/target/sis-webapp-0.2-incubating-SNAPSHOT.war</webApp>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Alan Canbera commented on the same thread with:
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.21</version>
<configuration>
<!-- Uncomment this if you want recompilation from your IDE to trigger reloading the app -->
<scanIntervalSeconds>10</scanIntervalSeconds>
<contextPath>/sis</contextPath>
<systemProperties>
<systemProperty>
<name>org.apache.commons.logging.Log</name>
<value>org.apache.commons.logging.impl.Jdk14Logger</value>
</systemProperty>
<systemProperty>
<name>java.util.logging.config.file</name>
<value>./src/test/resources/logging.properties</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
Maybe we can marry the two together in the working version of the application?
Adam