Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-460

archetype:generate does not use settings.xml when archetype is in repository with restricted access

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.2
    • None
    • Generator
    • None
    • Apache Maven 3.2.2
      Java version: 1.8.0_05, vendor: Oracle Corporation
      Default locale: de_DE, platform encoding: Cp1252
      OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"

    Description

      I have an archetype deployed to an Artifactory repository with restricted access.
      I have defined the <server> with <id>, <username> and <password> in my settings.xml.

      When I run
      "mvn archetype:generate -DarchetypeRepository=<my_artifactory_reop_with_restricted_access>"
      I get
      "Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Not authorized , ReasonPhrase:Unauthorized."

      Apparently, archetype:generate does not take into account the access rights defined in settings.xml

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              heapifyman heapifyman
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: