Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-879

Maven plugin is missing authentication for Maven mirrors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2016.11.0, 2016.12.0
    • 2016.12.1
    • plugins
    • None
    • Hide

      1. Mirror section in settings.xml as:
      <mirrors>
      <mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <url>path/to/mirror/that/needs/authentication</url>
      </mirror>
      </mirrors>

      2. Corresponding authentication section in settings.xml:
      <servers>
      <server>
      <id>nexus</id>
      <username>user</username>
      <password>secret</password>
      </server>
      <servers>

      3. Delete an important artifact from the local ~/.m2 repostiory that is only downloaded by the WildFly Swarm Maven plugin. For the current version 2016.12.0 this could be 'wildfly-server-2.2.1.CR1'.

      4. cd standalone-servers/microprofile; mvn clean package

      Show
      1. Mirror section in settings.xml as: <mirrors> <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>path/to/mirror/that/needs/authentication</url> </mirror> </mirrors> 2. Corresponding authentication section in settings.xml: <servers> <server> <id>nexus</id> <username>user</username> <password>secret</password> </server> <servers> 3. Delete an important artifact from the local ~/.m2 repostiory that is only downloaded by the WildFly Swarm Maven plugin. For the current version 2016.12.0 this could be 'wildfly-server-2.2.1.CR1'. 4. cd standalone-servers/microprofile; mvn clean package

    Description

      The Maven plugin for Wildfly Swarm does not evaluate the authentication parameters from the settings.xml if mirrors are defined.

      Any attempt results in an exception that looks like:
      org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer ... : Not authorized , ReasonPhrase:Unauthorized.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              philippe.schaller@gmail.com Philippe Schaller
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: