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

Broken dependencies on jboss-jaxrs-api_2.0_spec

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.1.Final, 3.0.21.Final
    • 3.0.20.Final
    • jaxrs
    • None
    • Hide
      <?xml version="1.0" encoding="UTF-8"?>
      <project xmlns="http://maven.apache.org/POM/4.0.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
      
        <groupId>com.github.natros</groupId>
        <artifactId>test-resteasy</artifactId>
        <version>1.0-SNAPSHOT</version>
      
        <prerequisites>
          <maven>3.3.1</maven>
        </prerequisites>
      
        <properties>
          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          <project.build.outputEncoding>UTF-8</project.build.outputEncoding>
          <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        </properties>
      
        <dependencyManagement>
          <dependencies>
            <dependency>
              <groupId>org.jboss.resteasy</groupId>
              <artifactId>resteasy-bom</artifactId>
              <version>3.0.20.Final</version>
              <type>pom</type>
              <scope>import</scope>
            </dependency>
          </dependencies>
        </dependencyManagement>
      
        <dependencies>
          <dependency>
            <groupId>org.jboss.resteasy</groupId>
            <artifactId>resteasy-jaxrs</artifactId>
          </dependency>
        </dependencies>
      </project>
      
      Show
      <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.github.natros</groupId> <artifactId>test-resteasy</artifactId> <version>1.0-SNAPSHOT</version> <prerequisites> <maven>3.3.1</maven> </prerequisites> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.outputEncoding>UTF-8</project.build.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-bom</artifactId> <version>3.0.20.Final</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-jaxrs</artifactId> </dependency> </dependencies> </project>
    • Workaround Exists
    • Hide

      Add the following as first dependency:

            <dependency>
              <groupId>org.jboss.resteasy</groupId>
              <artifactId>resteasy-dependencies</artifactId>
              <version>3.0.20.Final</version>
              <type>pom</type>
              <scope>import</scope>
            </dependency>
      
      Show
      Add the following as first dependency: <dependency> <groupId>org.jboss.resteasy</groupId> <artifactId>resteasy-dependencies</artifactId> <version>3.0.20.Final</version> <type>pom</type> <scope>import</scope> </dependency>

    Description

      With a simple maven project I'm getting this error with 3.0.20. That does not happen with 3.0.19 or lower.

      [fsousa@caronte test-resteasy]$ mvn test
      [INFO] Scanning for projects...
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building test-resteasy 1.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [WARNING] The POM for org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:jar:${version.org.jboss.spec.javax.ws.jboss-jaxrs-api_2.0_spec} is missing, no dependency information available
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 0.282 s
      [INFO] Finished at: 2017-02-06T16:09:32+00:00
      [INFO] Final Memory: 9M/309M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project test-resteasy: Could not resolve dependencies for project com.github.natros:test-resteasy:jar:1.0-SNAPSHOT: Failure to find org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:jar:${version.org.jboss.spec.javax.ws.jboss-jaxrs-api_2.0_spec} in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
      

      I'm using maven 3.3.9

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            natros Filipe Sousa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: