Open vlukashov opened 7 years ago
As a work-around you can add jaxb-api explicitly as a dependency for sauce-connect-plugin
<plugin>
<groupId>com.saucelabs.maven.plugin</groupId>
<artifactId>sauce-connect-plugin</artifactId>
.
.
.
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>
</dependencies>
</plugin>
When trying to build a maven project that includes the
sauce-connect-plugin
on JDK9, the build fails withExecution start-sauceconnct of goal com.saucelabs.maven.plugin:sauce-connect-plugin:2.1.23:start-sauceconnect failed: A required class was missing while executing com.saucelabs.maven.plugin:sauce-connect-plugin:2.1.23:start-sauceconnect: javax/xml/bind/DatatypeConverter
.The same build passes just fine on JDK8.
The full source of the project is attached: sauce-connect-plugin-jdk9.zip.
To reproduce the issue download and extract the source code, then run
mvn verify
inside it. The expected result is that the sauce connect plugin starts and complains that the Sauce Labs username is not set: