Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-782

Missing "javax.annotation-api" dependency in Maven Repository

    XMLWordPrintable

Details

    • Hide
      • Either use "https://maven.repository.redhat.com/ga/" that does have this version
      • Or exclude it from the fabric8 dependencies and add yours:
      <dependency>
                  <groupId>javax.annotation</groupId>
                  <artifactId>javax.annotation-api</artifactId>
                  <version>1.3.2</version>
              </dependency>
            <dependency>
                  <groupId>io.fabric8</groupId>
                  <artifactId>openshift-client</artifactId>
                  <exclusions>
                      <exclusion>
                          <groupId>javax.annotation</groupId>
                          <artifactId>javax.annotation-api</artifactId>
                      </exclusion>
                  </exclusions>
              </dependency>
      
      Show
      Either use "https://maven.repository.redhat.com/ga/" that does have this version Or exclude it from the fabric8 dependencies and add yours: <dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.3.2</version> </dependency> <dependency> <groupId>io.fabric8</groupId> <artifactId>openshift-client</artifactId> <exclusions> <exclusion> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> </exclusion> </exclusions> </dependency>
    • Undefined
    • +
    • ---

    Description

      If we use a fabric8 dependency, for example "openshift-client":

      <dependency>
                  <groupId>io.fabric8</groupId>
                  <artifactId>openshift-client</artifactId>
      </dependency>
      

      Then, Maven tries to download the "javax.annotation-api" dependency with version "1.3.2.redhat-00001" which is not part of the productized maven repository we download.

      Attachments

        Activity

          People

            hamadhan@redhat.com Harsh Madhani
            jcarvaja@redhat.com Jose Carvajal Hilario
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: