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

Maven plugin is missing authentication for Maven mirrors

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2016.11.0, 2016.12.0
    • Fix Version/s: 2016.12.1
    • Component/s: plugins
    • Labels:
      None
    • Steps to Reproduce:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  pschalle Philippe Schaller
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: