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

Generate Mojo should use security for repository access

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.2
    • None
    • Generator
    • None

    Description

      My organization uses Artifactory to host our repositories. It is secured against unauthorized access. I have managed to expose the archetype-catalog.xml file to public anonymous access, which allows me to access a custom archetype. However whenever I attempt to select my custom archetype, I receive a message stating that the archetype cannot be found. Using debug, i can see that the Mojo is receiving an Unauthorized response from the remote system. While I understand that the password configured in my settings.xml would not be used for the 'vml-aem-archetype-repo', it should be used for the second resolving entry 'central'.

      The archetype resolver should use the same communication protocols, security included, when resolving archetypes as the build tool uses for resolving/dependencies.

      Attachments

        1. mvn.log
          32 kB
          Bryan Stopp

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              panth13 Bryan Stopp
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: