Debian Codegraph @

src/it/reserve-ports-with-min-root-range/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>build-helper-maven-plugin-reverse-port-it</artifactId>
7 <version>1.0-SNAPSHOT</version>
8
9 <name>build-helper-maven-plugin-reverse-port-it </name>
10
11
12 <build>
13
14 <defaultGoal>package</defaultGoal>
15
16 <plugins>
17
18
19 <plugin>
20
21 <groupId>@project.groupId@</groupId>
22 <artifactId>@project.artifactId@</artifactId>
23 <version>@project.version@</version>
24 <executions>
25
26 <execution>
27 <id>reserve-ports</id>
28 <phase>process-test-resources</phase>
29 <goals>
30 <goal>reserve-network-port</goal>
31 </goals>
32 <configuration>
33 <portNames>
34 <portName>port1</portName>
35 <portName>port2</portName>
36 <portName>port3</portName>
37 </portNames>
38 <!-- defining only a max port number generates ports from 1024 onwards -->
39 <maxPortNumber>10000</maxPortNumber>
40 </configuration>
41 </execution>
42 </executions>
43 </plugin>
44
45 <plugin>
46
47 <artifactId>maven-antrun-plugin</artifactId>
48 <executions>
49 <execution>
50 <id>mk-target-dir</id>
51 <phase>compile</phase>
52 <goals>
53 <goal>run</goal>
54 </goals>
55 <configuration>
56 <tasks>
57 <mkdir dir="${project.build.directory}" />
58 </tasks>
59 </configuration>
60 </execution>
61
62 <execution>
63 <id>echo-reserve-ports</id>
64 <phase>test</phase>
65 <goals>
66 <goal>run</goal>
67 </goals>
68 <configuration>
69 <tasks>
70 <echo>port1=${port1}</echo>
71 <echo>port2=${port2}</echo>
72 <echo>port3=${port3}</echo>
73 </tasks>
74 </configuration>
75 </execution>
76 </executions>
77 </plugin>
78
79 </plugins>
80
81
82 </build>
83
84 <!-- default port values, will not be overwritten so DONOT set them
85 <properties>
86 <port1>1</port1>
87 <port2>2</port2>
88 <port3>3</port3>
89 </properties>
90 -->
91 </project>