Debian Codegraph @

src/it/reserve-ports-with-random/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 <minPortNumber>9000</minPortNumber>
39 <maxPortNumber>9005</maxPortNumber>
40 <randomPort>true</randomPort>
41 </configuration>
42 </execution>
43 </executions>
44 </plugin>
45
46 <plugin>
47
48 <artifactId>maven-antrun-plugin</artifactId>
49 <version>1.8</version>
50 <executions>
51 <execution>
52 <id>mk-target-dir</id>
53 <phase>compile</phase>
54 <goals>
55 <goal>run</goal>
56 </goals>
57 <configuration>
58 <tasks>
59 <mkdir dir="${project.build.directory}" />
60 </tasks>
61 </configuration>
62 </execution>
63
64 <execution>
65 <id>echo-reserve-ports</id>
66 <phase>test</phase>
67 <goals>
68 <goal>run</goal>
69 </goals>
70 <configuration>
71 <tasks>
72 <echo>port1=${port1}</echo>
73 <echo>port2=${port2}</echo>
74 <echo>port3=${port3}</echo>
75 </tasks>
76 </configuration>
77 </execution>
78 </executions>
79 </plugin>
80
81 </plugins>
82
83
84 </build>
85
86 <!-- default port values, will not be overwritten so DONOT set them
87 <properties>
88 <port1>1</port1>
89 <port2>2</port2>
90 <port3>3</port3>
91 </properties>
92 -->
93 </project>