Debian Codegraph @

src/it/surefire/pom.xml

raw
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2
3 <modelVersion>4.0.0</modelVersion>
4
5 <groupId>org.codehaus.mojo</groupId>
6 <artifactId>test-reserve-port-with-surefire</artifactId>
7 <version>1.0-SNAPSHOT</version>
8
9 <name>test-reserve-port-with-surefire</name>
10
11 <dependencies>
12 <dependency>
13 <groupId>junit</groupId>
14 <artifactId>junit</artifactId>
15 <version>4.13.1</version>
16 <scope>test</scope>
17 </dependency>
18 </dependencies>
19
20 <build>
21
22 <defaultGoal>package</defaultGoal>
23
24 <pluginManagement>
25 <plugins>
26 <plugin>
27 <groupId>org.apache.maven.plugins</groupId>
28 <artifactId>maven-compiler-plugin</artifactId>
29 <version>3.8.1</version>
30 <configuration>
31 <source>1.7</source>
32 <target>1.7</target>
33 </configuration>
34 </plugin>
35 </plugins>
36 </pluginManagement>
37 <plugins>
38 <plugin>
39 <groupId>@project.groupId@</groupId>
40 <artifactId>@project.artifactId@</artifactId>
41 <version>@project.version@</version>
42 <executions>
43 <execution>
44 <id>reserve-ports</id>
45 <phase>process-test-resources</phase>
46 <goals>
47 <goal>reserve-network-port</goal>
48 </goals>
49 <configuration>
50 <portNames>
51 <portName>port1</portName>
52 <portName>port2</portName>
53 <portName>port3</portName>
54 </portNames>
55 </configuration>
56 </execution>
57 </executions>
58 </plugin>
59
60 <plugin>
61 <artifactId>maven-surefire-plugin</artifactId>
62 <version>2.9</version>
63 <configuration>
64 <systemProperties>
65 <property>
66 <name>port1</name>
67 <value>${port1}</value>
68 </property>
69 </systemProperties>
70 <environmentVariables>
71 <port1>${port1}</port1>
72 <targetDir>${project.build.directory}</targetDir>
73 </environmentVariables>
74 </configuration>
75 </plugin>
76 </plugins>
77
78 </build>
79
80 <properties>
81 <!-- default port values, will not be overwritten so DONOT set them
82 <port1>1</port1>
83 <port2>2</port2>
84 <port3>3</port3>
85 -->
86 </properties>
87
88 </project>