-
Bug
-
Resolution: Unresolved
-
Major
-
6.2.7.Final
-
None
-
None
If go-offline goal of dependency plugin is used during the build of the resteasy git project, the build fails.
Steps to reproduce:
- clone 6.2 branch or 6.2.7.Final tag of resteasy github repo
- mvn clean install dependency:go-offline -DskipTests
- build fails:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.0:go-offline (default-cli) on project resteasy-client-vertx: org.eclipse.aether.resolution.DependencyResolutionException: io.netty:netty-tcnative:jar:${os.detected.classifier}:2.0.65.Final was not found in https://repository.jboss.org/nexus/content/groups/public/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced -> [Help 1] [ERROR]
- This issue is not valid for 6.2.4.Final. I'm not sure about the main branch, there seems to be different bug: (jakarta.ws.rs:jakarta.ws.rs-api:jar:4.0.0 was not found in https://repository.jboss.org/nexus/content/groups/public/ during a previous attempt)
This seems to be known issue, see:
- https://github.com/apache/maven-dependency-plugin/pull/46
- https://github.com/redhat-developer/vscode-java/issues/795
Workaround could be to define necessary parameters:
-Dos.detected.name=linux -Dos.detected.arch=x86_64 -Dos.detected.classifier=linux-x86_64
Better solution could be to use kr.motd.maven:os-maven-plugin, which seems to be extension (not a plugin), although the name contains "plugin" suffix. But not sure whether this is suitable for upstream, because this doesn't seems to be common-used extension like apache extensions, etc.