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

Add option to use remote repositories that are password protected

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-alpha-3
    • 3.0.0
    • Generator
    • None
    •  mvn -version
      Maven version: 2.0.9
      Java version: 1.6.0_06
      OS name: "linux" version: "2.6.24-19-generic" arch: "i386" Family: "unix"

    Description

      When the archetype's are in a password protected repository you can't download the archetype

      Command used:

      mvn archetype:generate -DarchetypeGroupId=nl.func.quickstart -DarchetypeArtifactId=quickstart -DarchetypeVersion=1.0 -DgroupId=nl.func.test -DartifactId=apple -DarchetypeRepository=https://maven.func.nl

      There is a "archetypeRepository" option, but there is no option to bind a server id from the settings.xml.

      Could this, or some other solution, be added?

      My current workaround is to use scpexe instead of https.

      Command used:

      mvn archetype:generate -DarchetypeGroupId=nl.func.quickstart -DarchetypeArtifactId=quickstart -DarchetypeVersion=1.0 -DgroupId=nl.func.test -DartifactId=apple -DarchetypeRepository=scpexe://maven.func.nl/var/sites/nl.func.maven/www/ -Darchetype.interactive=false

      Attachments

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              martintilma Martin Tilma
              Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: