|
35 | 35 | <version.jetty>8.1.2.v20120308</version.jetty> |
36 | 36 | <version.jbossas>7.1.1.Final</version.jbossas> |
37 | 37 | <version.tomcat>7.0.19</version.tomcat> |
| 38 | + <container.download.dir>${java.io.tmpdir}/rewrite-arquillian-containers</container.download.dir> |
38 | 39 | </properties> |
39 | 40 |
|
40 | 41 | <modules> |
|
380 | 381 | <id>TOMCAT_MANAGED_7_WELD</id> |
381 | 382 | <build> |
382 | 383 | <plugins> |
| 384 | + <plugin> |
| 385 | + <artifactId>maven-antrun-plugin</artifactId> |
| 386 | + <version>1.7</version> |
| 387 | + <executions> |
| 388 | + <execution> |
| 389 | + <phase>generate-test-resources</phase> |
| 390 | + <goals> |
| 391 | + <goal>run</goal> |
| 392 | + </goals> |
| 393 | + <configuration> |
| 394 | + <target> |
| 395 | + <mkdir dir="${container.download.dir}" /> |
| 396 | + <get dest="${container.download.dir}" verbose="true" skipexisting="true" |
| 397 | + src="http://archive.apache.org/dist/tomcat/tomcat-7/v${version.tomcat}/bin/apache-tomcat-${version.tomcat}.zip" /> |
| 398 | + <unzip src="${container.download.dir}/apache-tomcat-${version.tomcat}.zip" dest="${project.build.directory}/container" /> |
| 399 | + <move file="${project.build.directory}/container/apache-tomcat-${version.tomcat}" |
| 400 | + tofile="${project.build.directory}/container/apache-tomcat-7"/> |
| 401 | + <echo file="${project.build.directory}/container/apache-tomcat-7/conf/tomcat-users.xml"> |
| 402 | + <![CDATA[ |
| 403 | + <?xml version="1.0" encoding="UTF-8"?> |
| 404 | + <tomcat-users> |
| 405 | + <role rolename="manager-script"/> |
| 406 | + <user username="arquillian" password="arquillian" roles="manager-script"/> |
| 407 | + </tomcat-users> |
| 408 | + ]]> |
| 409 | + </echo> |
| 410 | + </target> |
| 411 | + </configuration> |
| 412 | + </execution> |
| 413 | + </executions> |
| 414 | + </plugin> |
383 | 415 | <plugin> |
384 | 416 | <groupId>org.apache.maven.plugins</groupId> |
385 | 417 | <artifactId>maven-surefire-plugin</artifactId> |
|
400 | 432 | <scope>test</scope> |
401 | 433 | </dependency> |
402 | 434 | </dependencies> |
| 435 | + <repositories> |
| 436 | + <!-- We current need this because we have to use the SNAPSHOTS for the Tomcat container adapter --> |
| 437 | + <repository> |
| 438 | + <id>arquillian-snapshots</id> |
| 439 | + <url>https://repository-arquillian.forge.cloudbees.com/snapshot/</url> |
| 440 | + <releases> |
| 441 | + <enabled>false</enabled> |
| 442 | + </releases> |
| 443 | + <snapshots> |
| 444 | + <enabled>true</enabled> |
| 445 | + </snapshots> |
| 446 | + </repository> |
| 447 | + </repositories> |
403 | 448 | </profile> |
404 | 449 |
|
405 | 450 | <profile> |
|
0 commit comments