Created
January 23, 2012 12:50
-
-
Save reikje/1662983 to your computer and use it in GitHub Desktop.
Starting the WAR Artifact of a Dependency in the maven-jetty-plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>maven-jetty-plugin</artifactId> | |
| <version>6.1.26</version> | |
| <configuration> | |
| <scanIntervalSeconds>10</scanIntervalSeconds> | |
| <stopKey>foo</stopKey> | |
| <stopPort>9999</stopPort> | |
| <contextPath>/</contextPath> | |
| <webApp> | |
| /your/path/to/the/external.war | |
| </webApp> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>start-jetty</id> | |
| <phase>pre-integration-test</phase> | |
| <goals> | |
| <goal>deploy-war</goal> | |
| </goals> | |
| <configuration> | |
| <scanIntervalSeconds>0</scanIntervalSeconds> | |
| <daemon>true</daemon> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>stop-jetty</id> | |
| <phase>post-integration-test</phase> | |
| <goals> | |
| <goal>stop</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>maven-jetty-plugin</artifactId> | |
| <version>6.1.26</version> | |
| <configuration> | |
| <scanIntervalSeconds>10</scanIntervalSeconds> | |
| <stopKey>foo</stopKey> | |
| <stopPort>9999</stopPort> | |
| </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> | |
| <execution> | |
| <id>stop-jetty</id> | |
| <phase>post-integration-test</phase> | |
| <goals> | |
| <goal>stop</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-dependency-plugin</artifactId> | |
| <version>2.3</version> | |
| <executions> | |
| <execution> | |
| <id>copy-war-to-lib-folder</id> | |
| <phase>process-sources</phase> | |
| <goals> | |
| <goal>copy</goal> | |
| </goals> | |
| <configuration> | |
| <artifactItems> | |
| <artifactItem> | |
| <groupId>external.war.group</groupId> | |
| <artifactId>external-war-artifact</artifactId> | |
| <version>LATEST</version> | |
| <type>war</type> | |
| <overWrite>true</overWrite> | |
| <outputDirectory>${project.build.directory}/lib</outputDirectory> | |
| <destFileName>${renamed.war}</destFileName> | |
| </artifactItem> | |
| </artifactItems> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.mortbay.jetty</groupId> | |
| <artifactId>maven-jetty-plugin</artifactId> | |
| <version>6.1.26</version> | |
| <configuration> | |
| <scanIntervalSeconds>10</scanIntervalSeconds> | |
| <stopKey>foo</stopKey> | |
| <stopPort>9999</stopPort> | |
| <contextPath>/</contextPath> | |
| <webApp> | |
| ${project.build.directory}/lib/${renamed.war} | |
| </webApp> | |
| <systemPropertiesFile>${project.build.testOutputDirectory}/some-existing.properties</systemPropertiesFile> | |
| </configuration> | |
| <executions> | |
| <execution> | |
| <id>start-jetty</id> | |
| <phase>pre-integration-test</phase> | |
| <goals> | |
| <goal>deploy-war</goal> | |
| </goals> | |
| <configuration> | |
| <scanIntervalSeconds>0</scanIntervalSeconds> | |
| <daemon>true</daemon> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>stop-jetty</id> | |
| <phase>post-integration-test</phase> | |
| <goals> | |
| <goal>stop</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| </plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment