Skip to content

Commit

Permalink
fix(plc4j): Made the driver-testsuites run with the version 3.0.0-M5 …
Browse files Browse the repository at this point in the history
…of the failsafe plugin
  • Loading branch information
chrisdutz committed Jan 28, 2022
1 parent 0fd5d63 commit b0b8605
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 49 deletions.
22 changes: 0 additions & 22 deletions plc4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -208,28 +208,6 @@
</configuration>
</plugin>

<!--
Make the failsafe execute all integration-tests
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<!--
Notice the @ instead of the $ as prefix? That's late evaluation.
-->
<!--argLine>@{failsafeArgLine}</argLine-->
</configuration>
</plugin>

<!--
Even if Maven transitively pulls in dependencies, relying on these can
quite often cause hard to find problems. So it's a good practice to make
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ public abstract class XmlTestsuiteLoader {

protected XmlTestsuiteLoader(String testsuiteDocument) {
this.testsuiteDocument = testsuiteDocument;
try {
this.testsuiteDocumentXml = getClass().getClassLoader().getUnnamedModule().getResourceAsStream(testsuiteDocument);
} catch (IOException e) {
throw new IllegalArgumentException("Suite " + testsuiteDocument + " not found");
}
this.testsuiteDocumentXml = getClass().getResourceAsStream(testsuiteDocument);

if (testsuiteDocumentXml == null) {
throw new IllegalArgumentException("Suite " + testsuiteDocument + " not found");
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,14 @@
</goals>
</execution>
</executions>
<configuration>
<!--
The failsafe plugin would use the java jigsaw module path,
this would make loading the test XML files impossible.
So we simply disable this.
-->
<useModulePath>false</useModulePath>
</configuration>
</plugin>

<!-- Generate the legally required text files in the jars -->
Expand Down Expand Up @@ -1125,6 +1133,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M5</version>
<!--version>2.22.2</version-->
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down
22 changes: 0 additions & 22 deletions protocols/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,28 +200,6 @@
</execution>
</executions>
</plugin>

<!--
Make the failsafe execute all integration-tests
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<!--
Notice the @ instead of the $ as prefix? That's late evaluation.
-->
<!--argLine>@{failsafeArgLine}</argLine-->
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit b0b8605

Please sign in to comment.