|
42 | 42 | <scope>test</scope>
|
43 | 43 | </dependency>
|
44 | 44 | </dependencies>
|
45 |
| - <build> |
46 |
| - <plugins> |
47 |
| - <plugin> |
48 |
| - <groupId>org.codehaus.mojo</groupId> |
49 |
| - <artifactId>build-helper-maven-plugin</artifactId> |
50 |
| - <executions> |
51 |
| - <execution> |
52 |
| - <id>reserve-network-port</id> |
53 |
| - <goals> |
54 |
| - <goal>reserve-network-port</goal> |
55 |
| - </goals> |
56 |
| - <phase>process-resources</phase> |
| 45 | + <profiles> |
| 46 | + <profile> |
| 47 | + <id>jdk8</id> |
| 48 | + <activation> |
| 49 | + <jdk>1.8</jdk> |
| 50 | + </activation> |
| 51 | + <build> |
| 52 | + <plugins> |
| 53 | + <plugin> |
| 54 | + <groupId>org.codehaus.mojo</groupId> |
| 55 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 56 | + <executions> |
| 57 | + <execution> |
| 58 | + <id>reserve-network-port</id> |
| 59 | + <goals> |
| 60 | + <goal>reserve-network-port</goal> |
| 61 | + </goals> |
| 62 | + <phase>process-resources</phase> |
| 63 | + <configuration> |
| 64 | + <portNames> |
| 65 | + <portName>appserver.port</portName> |
| 66 | + </portNames> |
| 67 | + </configuration> |
| 68 | + </execution> |
| 69 | + </executions> |
| 70 | + </plugin> |
| 71 | + <plugin> |
| 72 | + <groupId>org.codehaus.cargo</groupId> |
| 73 | + <artifactId>cargo-maven2-plugin</artifactId> |
57 | 74 | <configuration>
|
58 |
| - <portNames> |
59 |
| - <portName>appserver.port</portName> |
60 |
| - </portNames> |
| 75 | + <configuration> |
| 76 | + <properties> |
| 77 | + <cargo.servlet.port>${appserver.port}</cargo.servlet.port> |
| 78 | + </properties> |
| 79 | + </configuration> |
61 | 80 | </configuration>
|
62 |
| - </execution> |
63 |
| - </executions> |
64 |
| - </plugin> |
65 |
| - <plugin> |
66 |
| - <groupId>org.codehaus.cargo</groupId> |
67 |
| - <artifactId>cargo-maven2-plugin</artifactId> |
68 |
| - <configuration> |
69 |
| - <configuration> |
70 |
| - <properties> |
71 |
| - <cargo.servlet.port>${appserver.port}</cargo.servlet.port> |
72 |
| - </properties> |
73 |
| - </configuration> |
74 |
| - </configuration> |
75 |
| - </plugin> |
76 |
| - <plugin> |
77 |
| - <groupId>org.apache.maven.plugins</groupId> |
78 |
| - <artifactId>maven-failsafe-plugin</artifactId> |
79 |
| - <configuration> |
80 |
| - <systemPropertyVariables> |
81 |
| - <port>${appserver.port}</port> |
82 |
| - </systemPropertyVariables> |
83 |
| - </configuration> |
84 |
| - </plugin> |
85 |
| - </plugins> |
86 |
| - </build> |
| 81 | + </plugin> |
| 82 | + <plugin> |
| 83 | + <groupId>org.apache.maven.plugins</groupId> |
| 84 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 85 | + <configuration> |
| 86 | + <systemPropertyVariables> |
| 87 | + <port>${appserver.port}</port> |
| 88 | + </systemPropertyVariables> |
| 89 | + </configuration> |
| 90 | + </plugin> |
| 91 | + </plugins> |
| 92 | + </build> |
| 93 | + </profile> |
| 94 | + </profiles> |
87 | 95 | </project>
|
0 commit comments