Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4837

axis2-parent references repository https://maven-repository.dev.java.net/nonav/repository/, when attempting to get parent of apache version 3 - this causes wsld2code maven plugin to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.5
    • 1.5.2
    • Tools
    • None
    • maven using the

    Description

      if the parent of the axis2-parent pom

      <parent>
      <groupId>org.apache</groupId>
      <artifactId>apache</artifactId>
      <version>3</version>
      </parent>

      has not previously been downloaded and you attempt to use the wsdl2code maven plugin within a project, it will attempt to download the above parent from https://maven-repository.dev.java.net/nonav/repository/ where a html redirect has been placed. This causes the html being returned to be placed into the pom file in the local repo and the build fails as per below

      [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '0f56ee033e
      f4b78d33722aceb71a09c7ed68183f'; remote = '<!DOCTYPE' - RETRYING
      Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache/
      poms/apache-3.pom
      349b downloaded (apache-3.pom)
      [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '0f56ee033e
      f4b78d33722aceb71a09c7ed68183f'; remote = '<!DOCTYPE' - IGNORING
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error building POM (may not be this project's POM).

      Project ID: org.apache.axis2:axis2-parent:pom:1.5

      Reason: Cannot find parent: org.apache:apache for project: org.apache.axis2:axis
      2-parent:pom:1.5 for project org.apache.axis2:axis2-parent:pom:1.5

      To fix this you must cause the above parent pom to be downloaded from repo1 before it attempts the download from the embedded repository in axis2-parent. This requires adding
      <dependency>
      <groupId>org.apache</groupId>
      <artifactId>apache</artifactId>
      <version>3</version>
      </dependency>

      as a dependency of the wsdl2code project and ensuring that the wsdl2code isnt the first plugin used by the project.

      I'd suggest dropping https://maven-repository.dev.java.net/nonav/repository/ as a dependency from the repositories for the axis2-parent pom to eliminate this and locating a 'better' repository which doesnt use html redirects for any dependencies for building axis2-parent

      Attachments

        Activity

          People

            Unassigned Unassigned
            martinfr62 Martin Franklin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: