|
40 | 40 | <maven.test.skip>false</maven.test.skip> |
41 | 41 | <hamcrest.version>1.3</hamcrest.version> |
42 | 42 | <glassfish.version>4.1.1</glassfish.version> |
| 43 | + <liberty.version>16.0.0.2</liberty.version> |
43 | 44 |
|
44 | 45 | <!-- |
45 | 46 | TomEE version that's installed and used when selecting the |
|
885 | 886 | </build> |
886 | 887 | </profile> |
887 | 888 |
|
| 889 | + |
| 890 | + <profile> |
| 891 | + <id>liberty-embedded-arquillian</id> |
| 892 | + |
| 893 | + <dependencies> |
| 894 | + <dependency> |
| 895 | + <groupId>org.jboss.arquillian.container</groupId> |
| 896 | + <artifactId>arquillian-wlp-managed-8.5</artifactId> |
| 897 | + <version>1.0.0.Beta2</version> |
| 898 | + <scope>test</scope> |
| 899 | + </dependency> |
| 900 | + </dependencies> |
| 901 | + |
| 902 | + <build> |
| 903 | + <plugins> |
| 904 | + <plugin> |
| 905 | + <groupId>org.apache.maven.plugins</groupId> |
| 906 | + <artifactId>maven-dependency-plugin</artifactId> |
| 907 | + <executions> |
| 908 | + <execution> |
| 909 | + <id>unpack</id> |
| 910 | + <phase>process-test-classes</phase> |
| 911 | + <goals> |
| 912 | + <goal>unpack</goal> |
| 913 | + </goals> |
| 914 | + <configuration> |
| 915 | + <artifactItems> |
| 916 | + <artifactItem> |
| 917 | + <groupId>com.ibm.websphere.appserver.runtime</groupId> |
| 918 | + <artifactId>wlp-javaee7</artifactId> |
| 919 | + <version>${liberty.version}</version> |
| 920 | + <type>zip</type> |
| 921 | + <overWrite>false</overWrite> |
| 922 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 923 | + </artifactItem> |
| 924 | + </artifactItems> |
| 925 | + </configuration> |
| 926 | + </execution> |
| 927 | + </executions> |
| 928 | + </plugin> |
| 929 | + <plugin> |
| 930 | + <groupId>org.apache.maven.plugins</groupId> |
| 931 | + <artifactId>maven-antrun-plugin</artifactId> |
| 932 | + <version>1.1</version> |
| 933 | + <executions> |
| 934 | + <execution> |
| 935 | + <phase>process-test-classes</phase> |
| 936 | + <goals> |
| 937 | + <goal>run</goal> |
| 938 | + </goals> |
| 939 | + <configuration> |
| 940 | + <tasks> |
| 941 | + <!-- TODO: There has to be a better way. Look at |
| 942 | + PR for Liberty arquillian container to modify server.xml? |
| 943 | + --> |
| 944 | + <echo>Copying server.xml</echo> |
| 945 | + <copy |
| 946 | + failonerror="false" |
| 947 | + file="../../test-utils/src/main/resources/server.xml" |
| 948 | + tofile="${project.build.directory}/wlp/templates/servers/defaultServer/server.xml" |
| 949 | + /> |
| 950 | + </tasks> |
| 951 | + </configuration> |
| 952 | + </execution> |
| 953 | + </executions> |
| 954 | + </plugin> |
| 955 | + <plugin> |
| 956 | + <groupId>org.apache.maven.plugins</groupId> |
| 957 | + <artifactId>maven-surefire-plugin</artifactId> |
| 958 | + <configuration> |
| 959 | + <systemPropertyVariables> |
| 960 | + <arquillian.launch>liberty-embedded-arquillian</arquillian.launch> |
| 961 | + <arquillian.liberty.wlpHome>${project.build.directory}/wlp</arquillian.liberty.wlpHome> |
| 962 | + </systemPropertyVariables> |
| 963 | + </configuration> |
| 964 | + </plugin> |
| 965 | + </plugins> |
| 966 | + </build> |
| 967 | + </profile> |
| 968 | + |
| 969 | + |
888 | 970 | <profile> |
889 | 971 | <id>weblogic-remote-arquillian</id> |
890 | 972 |
|
|
0 commit comments