Restrict Liberty deployment tests to Java 8

OpenLiberty does not yet support Java 9 or 10 and stopping the server
currently hangs when using Java 10.

Closes gh-13141
pull/13161/head
Andy Wilkinson 7 years ago
parent 6ddf1c27dd
commit 7a27882d62

@ -42,46 +42,54 @@
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <profiles>
<plugins> <profile>
<plugin> <id>jdk8</id>
<groupId>org.codehaus.mojo</groupId> <activation>
<artifactId>build-helper-maven-plugin</artifactId> <jdk>1.8</jdk>
<executions> </activation>
<execution> <build>
<id>reserve-network-port</id> <plugins>
<goals> <plugin>
<goal>reserve-network-port</goal> <groupId>org.codehaus.mojo</groupId>
</goals> <artifactId>build-helper-maven-plugin</artifactId>
<phase>process-resources</phase> <executions>
<execution>
<id>reserve-network-port</id>
<goals>
<goal>reserve-network-port</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<portNames>
<portName>appserver.port</portName>
</portNames>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration> <configuration>
<portNames> <configuration>
<portName>appserver.port</portName> <properties>
</portNames> <cargo.servlet.port>${appserver.port}</cargo.servlet.port>
</properties>
</configuration>
</configuration> </configuration>
</execution> </plugin>
</executions> <plugin>
</plugin> <groupId>org.apache.maven.plugins</groupId>
<plugin> <artifactId>maven-failsafe-plugin</artifactId>
<groupId>org.codehaus.cargo</groupId> <configuration>
<artifactId>cargo-maven2-plugin</artifactId> <systemPropertyVariables>
<configuration> <port>${appserver.port}</port>
<configuration> </systemPropertyVariables>
<properties> </configuration>
<cargo.servlet.port>${appserver.port}</cargo.servlet.port> </plugin>
</properties> </plugins>
</configuration> </build>
</configuration> </profile>
</plugin> </profiles>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<port>${appserver.port}</port>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

Loading…
Cancel
Save