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

Document how to generate a project from archetype with authenticated repository

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-alpha-4
    • 2.0
    • None
    • None

    Description

      When the archetypes are in a password protected repository you can't download the archetype unless repository authentication information is specified in the settings.xml file, as follows:

      <server>
        <id><archetype name>-repo</id>
        <username>myuser</username>
        <password>XXXXXX</password>
        <filePermissions>664</filePermissions>
        <directoryPermissions>775</directoryPermissions>
        <configuration></configuration>
      </server>

      And the command should be invoked with the archetypeRepository option as follows:

      mvn archetype:generate -DarchetypeGroupId=mygroup \
      -DarchetypeArtifactId=<archetype-name> \
      -DarchetypeVersion=XXXXX -DgroupId=com.abc \
      -DartifactId=dummy \
      -Dversion=1.0.0-SNAPSHOT \
      -DarchetypeRepository=http://www.abc.com/maven2

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              jdiazch Javier Diaz
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: