|
66 | 66 | <ear.plugin.version>2.10.1</ear.plugin.version>
|
67 | 67 | <ear.plugin.version>2.10.1</ear.plugin.version>
|
68 | 68 | <war.plugin.version>3.0.0</war.plugin.version>
|
| 69 | + |
| 70 | + <!----> |
| 71 | + <version.maven.ant.plugin>1.7</version.maven.ant.plugin> |
| 72 | + <version.jboss.spec.javaee.7.0>9.0.1.Final</version.jboss.spec.javaee.7.0> |
| 73 | + <version.buildhelper.maven.plugin>1.7</version.buildhelper.maven.plugin> |
| 74 | + <!-- test dependencies versions --> |
| 75 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 76 | + <browser>phantomjs</browser> |
69 | 77 | </properties>
|
70 | 78 |
|
71 | 79 | <dependencyManagement>
|
|
93 | 101 | <type>pom</type>
|
94 | 102 | <scope>import</scope>
|
95 | 103 | </dependency>
|
| 104 | + <!-- Define the version of JBoss' Java EE 7 APIs we want to import. |
| 105 | + Any dependencies from org.wildfly.bom will have their version defined by this |
| 106 | + BOM --> |
| 107 | + <!-- JBoss distributes a complete set of Java EE 7 APIs including |
| 108 | + a Bill of Materials (BOM). A BOM specifies the versions of a "stack" (or |
| 109 | + a collection) of artifacts. We use this here so that we always get the correct |
| 110 | + versions of artifacts. Here we use the jboss-javaee-7-with-tools stack. |
| 111 | + The -with-tools means also versions of other artifacts like Arquillian. --> |
96 | 112 | <dependency>
|
97 |
| - <groupId>org.wildfly</groupId> |
98 |
| - <artifactId>wildfly-ejb-client-bom</artifactId> |
99 |
| - <version>${version.wildfly}</version> |
100 |
| - <scope>import</scope> |
| 113 | + <groupId>org.wildfly.bom</groupId> |
| 114 | + <artifactId>jboss-javaee-7.0-wildfly-with-tools</artifactId> |
| 115 | + <version>${version.jboss.spec.javaee.7.0}</version> |
101 | 116 | <type>pom</type>
|
| 117 | + <scope>import</scope> |
102 | 118 | </dependency>
|
103 | 119 | </dependencies>
|
104 | 120 | </dependencyManagement>
|
105 | 121 |
|
106 | 122 | <build>
|
| 123 | + <!-- export browser property to arquillian.xml --> |
| 124 | + <testResources> |
| 125 | + <testResource> |
| 126 | + <directory>src/test/resources</directory> |
| 127 | + <filtering>true</filtering> |
| 128 | + </testResource> |
| 129 | + </testResources> |
| 130 | + |
107 | 131 | <plugins>
|
108 | 132 | <plugin>
|
109 | 133 | <groupId>org.codehaus.mojo</groupId>
|
|
116 | 140 | </plugins>
|
117 | 141 | </build>
|
118 | 142 |
|
| 143 | + <profiles> |
| 144 | + <profile> |
| 145 | + <id>skip.tests.by.default</id> |
| 146 | + <activation> |
| 147 | + <activeByDefault>true</activeByDefault> |
| 148 | + </activation> |
| 149 | + <properties> |
| 150 | + <maven.test.skip>true</maven.test.skip> |
| 151 | + </properties> |
| 152 | + </profile> |
| 153 | + |
| 154 | + <!-- This profile is for running tests on EAP standalone --> |
| 155 | + <profile> |
| 156 | + <id>tests-eap</id> |
| 157 | + <activation> |
| 158 | + <activeByDefault>false</activeByDefault> |
| 159 | + <!--<property>--> |
| 160 | + <!--<name>eapHome</name>--> |
| 161 | + <!--</property>--> |
| 162 | + </activation> |
| 163 | + <dependencies> |
| 164 | + <dependency> |
| 165 | + <groupId>org.wildfly.arquillian</groupId> |
| 166 | + <artifactId>wildfly-arquillian-container-managed</artifactId> |
| 167 | + </dependency> |
| 168 | + <dependency> |
| 169 | + <groupId>org.jboss.arquillian.protocol</groupId> |
| 170 | + <artifactId>arquillian-protocol-servlet</artifactId> |
| 171 | + <scope>test</scope> |
| 172 | + </dependency> |
| 173 | + </dependencies> |
| 174 | + <build> |
| 175 | + <plugins> |
| 176 | + <plugin> |
| 177 | + <!-- This plugin will add the src/local/java source |
| 178 | + folder --> |
| 179 | + <groupId>org.codehaus.mojo</groupId> |
| 180 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 181 | + <version>${version.buildhelper.maven.plugin}</version> |
| 182 | + <executions> |
| 183 | + <execution> |
| 184 | + <id>add-source</id> |
| 185 | + <phase>generate-sources</phase> |
| 186 | + <goals> |
| 187 | + <goal>add-source</goal> |
| 188 | + </goals> |
| 189 | + <configuration> |
| 190 | + <sources> |
| 191 | + <source>src/local/java</source> |
| 192 | + </sources> |
| 193 | + </configuration> |
| 194 | + </execution> |
| 195 | + </executions> |
| 196 | + </plugin> |
| 197 | + <plugin> |
| 198 | + <artifactId>maven-surefire-plugin</artifactId> |
| 199 | + <configuration> |
| 200 | + <!--Test only SubsystemTest for standalone mode--> |
| 201 | + <includes> |
| 202 | + <include>**/SubsystemTest*</include> |
| 203 | + </includes> |
| 204 | + <reportNameSuffix>tests-eap</reportNameSuffix> |
| 205 | + <systemPropertyVariables> |
| 206 | + <subsystem.war.directory>${basedir}/target</subsystem.war.directory> |
| 207 | + <subsystem.war.file>${project.artifactId}.war</subsystem.war.file> |
| 208 | + </systemPropertyVariables> |
| 209 | + <systemProperties> |
| 210 | + <arquillian.launch>jbossas-managed</arquillian.launch> |
| 211 | + </systemProperties> |
| 212 | + <!-- Added so selenium doesn't print it's INFO logs to console (there's a LOT of them - |
| 213 | + like 5000 lines for each run) - they are instead appended (important when |
| 214 | + there are multiple profiles) to <module>/target/jul-info.log (warnings are printed in console) --> |
| 215 | + <argLine>-Djava.util.logging.config.file=${basedir}/web/src/test/resources/logging.properties</argLine> |
| 216 | + </configuration> |
| 217 | + |
| 218 | + </plugin> |
| 219 | + </plugins> |
| 220 | + </build> |
| 221 | + </profile> |
| 222 | + |
| 223 | + <!-- This profile is for running tests on clustered EAPs --> |
| 224 | + <profile> |
| 225 | + <id>tests-eap-clustered</id> |
| 226 | + <activation> |
| 227 | + <activeByDefault>false</activeByDefault> |
| 228 | + </activation> |
| 229 | + <dependencies> |
| 230 | + <dependency> |
| 231 | + <groupId>org.wildfly.arquillian</groupId> |
| 232 | + <artifactId>wildfly-arquillian-container-managed</artifactId> |
| 233 | + </dependency> |
| 234 | + <dependency> |
| 235 | + <groupId>org.jboss.arquillian.protocol</groupId> |
| 236 | + <artifactId>arquillian-protocol-servlet</artifactId> |
| 237 | + <scope>test</scope> |
| 238 | + </dependency> |
| 239 | + </dependencies> |
| 240 | + <build> |
| 241 | + <plugins> |
| 242 | + <plugin> |
| 243 | + <!-- This plugin will add the src/local/java source |
| 244 | + folder --> |
| 245 | + <groupId>org.codehaus.mojo</groupId> |
| 246 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 247 | + <version>${version.buildhelper.maven.plugin}</version> |
| 248 | + <executions> |
| 249 | + <execution> |
| 250 | + <id>add-source</id> |
| 251 | + <phase>generate-sources</phase> |
| 252 | + <goals> |
| 253 | + <goal>add-source</goal> |
| 254 | + </goals> |
| 255 | + <configuration> |
| 256 | + <sources> |
| 257 | + <source>src/local/java</source> |
| 258 | + </sources> |
| 259 | + </configuration> |
| 260 | + </execution> |
| 261 | + </executions> |
| 262 | + </plugin> |
| 263 | + <plugin> |
| 264 | + <artifactId>maven-surefire-plugin</artifactId> |
| 265 | + <configuration> |
| 266 | + <!--Test only SubsystemClusteredTest for clustered mode--> |
| 267 | + <includes> |
| 268 | + <include>**/SubsystemClusteredTest*</include> |
| 269 | + </includes> |
| 270 | + <reportNameSuffix>tests-eap-clustered</reportNameSuffix> |
| 271 | + <systemPropertyVariables> |
| 272 | + <subsystem.war.directory>${basedir}/target</subsystem.war.directory> |
| 273 | + <subsystem.war.file>${project.artifactId}.war</subsystem.war.file> |
| 274 | + </systemPropertyVariables> |
| 275 | + <systemProperties> |
| 276 | + <arquillian.launch>jbossas-cluster</arquillian.launch> |
| 277 | + <!--<arquillian.launch>clustered-jbossas-managed-1</arquillian.launch>--> |
| 278 | + <!--<arquillian.launch>clustered-jbossas-managed-2</arquillian.launch>--> |
| 279 | + </systemProperties> |
| 280 | + <!-- Added so selenium doesn't print it's INFO logs to console (there's a LOT of them - |
| 281 | + like 5000 lines for each run) - they are instead appended (important when |
| 282 | + there are multiple profiles) to <module>/target/jul-info.log (warnings are printed in console) --> |
| 283 | + <argLine>-Djava.util.logging.config.file=${basedir}/web/src/test/resources/logging.properties</argLine> |
| 284 | + </configuration> |
| 285 | + </plugin> |
| 286 | + </plugins> |
| 287 | + </build> |
| 288 | + </profile> |
| 289 | + </profiles> |
| 290 | + |
119 | 291 | </project>
|
120 | 292 |
|
0 commit comments