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

Clarify repository/server id used for custom repository catalog

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3.0
    • Generator
    • None

    Description

      According to https://maven.apache.org/archetype/maven-archetype-plugin/generate-mojo.html#archetypeArtifactId a repository with id archetype can be used to resolve catalogs from a remote repository. The same id is supposed to be used in case that repo uses authentication. This contradicts the FAQ entry at https://maven.apache.org/archetype/maven-archetype-plugin/faq.html#authentication which states that the id is supposed to be <archetypeArtifactId>-repo which would require one server section per archetype in a repo requiring authentication.

      Also it is unclear which value archetypeArtifact should be set to to consider the catalog from a specific remote repository as

      remote is the shortcut for Maven Central repository or its mirror.

      But in case there is no mirror for Maven Central but rather a dedicated catalog of custom archetypes maintained in a a custom repo the value is unclear.

      Also adding a repository with id archetype to settings would not only affect m-archetype-p but every resolution with Maven.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kwin Konrad Windszus
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment