|
47 | 47 | <scope>test</scope>
|
48 | 48 | </dependency>
|
49 | 49 | </dependencies>
|
50 |
| - <build> |
51 |
| - <plugins> |
52 |
| - <plugin> |
53 |
| - <groupId>org.codehaus.mojo</groupId> |
54 |
| - <artifactId>build-helper-maven-plugin</artifactId> |
55 |
| - <executions> |
56 |
| - <execution> |
57 |
| - <id>reserve-network-port</id> |
58 |
| - <goals> |
59 |
| - <goal>reserve-network-port</goal> |
60 |
| - </goals> |
61 |
| - <phase>process-resources</phase> |
| 50 | + <profiles> |
| 51 | + <profile> |
| 52 | + <activation> |
| 53 | + <jdk>1.8</jdk> |
| 54 | + </activation> |
| 55 | + <build> |
| 56 | + <plugins> |
| 57 | + <plugin> |
| 58 | + <groupId>org.codehaus.mojo</groupId> |
| 59 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 60 | + <executions> |
| 61 | + <execution> |
| 62 | + <id>reserve-network-port</id> |
| 63 | + <goals> |
| 64 | + <goal>reserve-network-port</goal> |
| 65 | + </goals> |
| 66 | + <phase>process-resources</phase> |
| 67 | + <configuration> |
| 68 | + <portNames> |
| 69 | + <portName>appserver.port</portName> |
| 70 | + <portName>appserver.admin.port</portName> |
| 71 | + <portName>appserver.jms.port</portName> |
| 72 | + <portName>appserver.iiop.port</portName> |
| 73 | + <portName>appserver.https.port</portName> |
| 74 | + <portName>appserver.iiops.port</portName> |
| 75 | + <portName>appserver.iiopmutualauth.port</portName> |
| 76 | + <portName>appserver.jmx.port</portName> |
| 77 | + <portName>appserver.osgishell.port</portName> |
| 78 | + <portName>appserver.debugger.port</portName> |
| 79 | + </portNames> |
| 80 | + </configuration> |
| 81 | + </execution> |
| 82 | + </executions> |
| 83 | + </plugin> |
| 84 | + <plugin> |
| 85 | + <groupId>org.codehaus.cargo</groupId> |
| 86 | + <artifactId>cargo-maven2-plugin</artifactId> |
62 | 87 | <configuration>
|
63 |
| - <portNames> |
64 |
| - <portName>appserver.port</portName> |
65 |
| - <portName>appserver.admin.port</portName> |
66 |
| - <portName>appserver.jms.port</portName> |
67 |
| - <portName>appserver.iiop.port</portName> |
68 |
| - <portName>appserver.https.port</portName> |
69 |
| - <portName>appserver.iiops.port</portName> |
70 |
| - <portName>appserver.iiopmutualauth.port</portName> |
71 |
| - <portName>appserver.jmx.port</portName> |
72 |
| - <portName>appserver.osgishell.port</portName> |
73 |
| - <portName>appserver.debugger.port</portName> |
74 |
| - </portNames> |
| 88 | + <configuration> |
| 89 | + <properties> |
| 90 | + <cargo.servlet.port>${appserver.port}</cargo.servlet.port> |
| 91 | + <cargo.glassfish.admin.port>${appserver.admin.port}</cargo.glassfish.admin.port> |
| 92 | + <cargo.glassfish.domain.jmxPort>${appserver.jmx.port}</cargo.glassfish.domain.jmxPort> |
| 93 | + <cargo.glassfish.http.ssl.port>${appserver.https.port}</cargo.glassfish.http.ssl.port> |
| 94 | + <cargo.glassfish.java.debugger.port>${appserver.debugger.port}</cargo.glassfish.java.debugger.port> |
| 95 | + <cargo.glassfish.jms.port>${appserver.jms.port}</cargo.glassfish.jms.port> |
| 96 | + <cargo.glassfish.orb.listener.port>${appserver.iiop.port}</cargo.glassfish.orb.listener.port> |
| 97 | + <cargo.glassfish.orb.mutualauth.port>${appserver.iiopmutualauth.port}</cargo.glassfish.orb.mutualauth.port> |
| 98 | + <cargo.glassfish.orb.ssl.port>${appserver.iiops.port}</cargo.glassfish.orb.ssl.port> |
| 99 | + <cargo.glassfish.osgi.shell.telnet.port>${appserver.osgishell.port}</cargo.glassfish.osgi.shell.telnet.port> |
| 100 | + </properties> |
| 101 | + </configuration> |
75 | 102 | </configuration>
|
76 |
| - </execution> |
77 |
| - </executions> |
78 |
| - </plugin> |
79 |
| - <plugin> |
80 |
| - <groupId>org.codehaus.cargo</groupId> |
81 |
| - <artifactId>cargo-maven2-plugin</artifactId> |
82 |
| - <configuration> |
83 |
| - <configuration> |
84 |
| - <properties> |
85 |
| - <cargo.servlet.port>${appserver.port}</cargo.servlet.port> |
86 |
| - <cargo.glassfish.admin.port>${appserver.admin.port}</cargo.glassfish.admin.port> |
87 |
| - <cargo.glassfish.domain.jmxPort>${appserver.jmx.port}</cargo.glassfish.domain.jmxPort> |
88 |
| - <cargo.glassfish.http.ssl.port>${appserver.https.port}</cargo.glassfish.http.ssl.port> |
89 |
| - <cargo.glassfish.java.debugger.port>${appserver.debugger.port}</cargo.glassfish.java.debugger.port> |
90 |
| - <cargo.glassfish.jms.port>${appserver.jms.port}</cargo.glassfish.jms.port> |
91 |
| - <cargo.glassfish.orb.listener.port>${appserver.iiop.port}</cargo.glassfish.orb.listener.port> |
92 |
| - <cargo.glassfish.orb.mutualauth.port>${appserver.iiopmutualauth.port}</cargo.glassfish.orb.mutualauth.port> |
93 |
| - <cargo.glassfish.orb.ssl.port>${appserver.iiops.port}</cargo.glassfish.orb.ssl.port> |
94 |
| - <cargo.glassfish.osgi.shell.telnet.port>${appserver.osgishell.port}</cargo.glassfish.osgi.shell.telnet.port> |
95 |
| - </properties> |
96 |
| - </configuration> |
97 |
| - </configuration> |
98 |
| - </plugin> |
99 |
| - <plugin> |
100 |
| - <groupId>org.apache.maven.plugins</groupId> |
101 |
| - <artifactId>maven-failsafe-plugin</artifactId> |
102 |
| - <configuration> |
103 |
| - <systemPropertyVariables> |
104 |
| - <port>${appserver.port}</port> |
105 |
| - </systemPropertyVariables> |
106 |
| - </configuration> |
107 |
| - </plugin> |
108 |
| - </plugins> |
109 |
| - </build> |
| 103 | + </plugin> |
| 104 | + <plugin> |
| 105 | + <groupId>org.apache.maven.plugins</groupId> |
| 106 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 107 | + <configuration> |
| 108 | + <systemPropertyVariables> |
| 109 | + <port>${appserver.port}</port> |
| 110 | + </systemPropertyVariables> |
| 111 | + </configuration> |
| 112 | + </plugin> |
| 113 | + </plugins> |
| 114 | + </build> |
| 115 | + </profile> |
| 116 | + </profiles> |
110 | 117 | </project>
|
0 commit comments