Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 2.02 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <plugin>
  2. <groupId>org.apache.maven.plugins</groupId>
  3. <artifactId>maven-dependency-plugin</artifactId>
  4. <version>2.3</version>
  5. <executions>
  6.     <execution>
  7.         <id>copy-war-to-lib-folder</id>
  8.         <phase>process-sources</phase>
  9.         <goals>
  10.             <goal>copy</goal>
  11.         </goals>
  12.         <configuration>
  13.             <artifactItems>
  14.                 <artifactItem>
  15.                     <groupId>external.war.group</groupId>
  16.                     <artifactId>external-war-artifact</artifactId>
  17.                     <version>LATEST</version>
  18.                     <type>war</type>
  19.                     <overWrite>true</overWrite>
  20.                     <outputDirectory>${project.build.directory}/lib</outputDirectory>
  21.                     <destFileName>${renamed.war}</destFileName>
  22.                 </artifactItem>
  23.             </artifactItems>
  24.         </configuration>
  25.     </execution>
  26. </executions>
  27. </plugin>
  28.  
  29. <plugin>
  30. <groupId>org.mortbay.jetty</groupId>
  31. <artifactId>maven-jetty-plugin</artifactId>
  32. <version>6.1.26</version>
  33. <configuration>
  34.         <scanIntervalSeconds>10</scanIntervalSeconds>
  35.         <stopKey>foo</stopKey>
  36.         <stopPort>9999</stopPort>
  37.         <contextPath>/</contextPath>
  38.         <webApp>
  39.                 ${project.build.directory}/lib/${renamed.war}
  40.         </webApp>
  41.         <systemPropertiesFile>${project.build.testOutputDirectory}/some-existing.properties</systemPropertiesFile>
  42. </configuration>
  43. <executions>
  44.         <execution>
  45.                 <id>start-jetty</id>
  46.                 <phase>pre-integration-test</phase>
  47.                 <goals>
  48.                         <goal>deploy-war</goal>
  49.                 </goals>
  50.                 <configuration>
  51.                         <scanIntervalSeconds>0</scanIntervalSeconds>
  52.                         <daemon>true</daemon>
  53.                 </configuration>
  54.         </execution>
  55.         <execution>
  56.                 <id>stop-jetty</id>
  57.                 <phase>post-integration-test</phase>
  58.                 <goals>
  59.                         <goal>stop</goal>
  60.                 </goals>
  61.         </execution>
  62. </executions>
  63. </plugin>