Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3491

Unable to find netty dependency with missing ${os.detected.name}-${os.detected.arch} parameters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 6.2.11.Final, 7.0.0.Beta1
    • 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:

      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.

            jperkins-rhn James Perkins
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: