Advertisement
Guest User

Untitled

a guest
Jan 20th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.45 KB | None | 0 0
  1.  
  2. <profile>
  3.     <id>Linux</id>
  4.     <activation>
  5.         <os>
  6.             <family>unix</family>
  7.         </os>
  8.     </activation>
  9.     <build>
  10.         <testResources>
  11.             <testResource>
  12.                 <directory>src/test/resources</directory>
  13.                 <filtering>true</filtering>
  14.             </testResource>
  15.         </testResources>
  16.         <plugins>
  17.             <plugin>
  18.                 <artifactId>exec-maven-plugin</artifactId>
  19.                 <groupId>org.codehaus.mojo</groupId>
  20.                 <executions>
  21.                     <execution>
  22.                         <id>startMongo</id>
  23.                         <phase>test-compile</phase>
  24.                         <goals>
  25.                             <goal>exec</goal>
  26.                         </goals>
  27.                         <configuration>
  28.                             <executable>src/test/resources/startMongo</executable>
  29.                         </configuration>
  30.                     </execution>
  31.                     <execution>
  32.                         <id>stopMongo</id>
  33.                         <phase>test</phase>
  34.                         <goals>
  35.                             <goal>exec</goal>
  36.                         </goals>
  37.                         <configuration>
  38.                             <executable>src/test/resources/stopMongo</executable>
  39.                         </configuration>
  40.                     </execution>
  41.                 </executions>
  42.             </plugin>
  43.             <plugin>
  44.                 <groupId>org.codehaus.mojo</groupId>
  45.                 <artifactId>build-helper-maven-plugin</artifactId>
  46.                 <executions>
  47.                     <execution>
  48.                         <id>reserve-network-port</id>
  49.                         <phase>process-test-resources</phase>
  50.                         <goals>
  51.                             <goal>reserve-network-port</goal>
  52.                         </goals>
  53.                         <configuration>
  54.                             <portNames>
  55.                                 <portName>mongodbTestPort</portName>
  56.                             </portNames>
  57.                         </configuration>
  58.                     </execution>
  59.                 </executions>
  60.             </plugin>
  61.         </plugins>
  62.     </build>
  63. </profile>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement