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

Archetype Plugin 3.3.0 introduced incompatibilities

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.1
    • Generator, Plugin
    • None

    Description

      Archetype Plugin 3.3.0 introduced API incompatibilities that can break existing maven archetypes. This is significant because when the plugin is invoked by users the version of the plugin is rarely specified. An example of such a breakage is https://github.com/helidon-io/helidon/issues/9305 (where all previously shipped versions of our maven archetypes broke).

      The incompatibilities were introduced by https://github.com/apache/maven-archetype/pull/211 and https://github.com/apache/maven-archetype/pull/215

      Changes that broke our archetypes:

      1. The removal of ArchetypeGenerationRequest.getProjectBuildingRequest()
      2. The changing of the return type of ArchetypeGenerationRequest.getRemoteArtifactRepositories() from List<ArtifactRepository> to List<RemoteRepository>

      It also looks like a number of other methods were removed from ArchetypeGenerationRequest.

      As documented in https://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.html#post-generation-script the ArchetypeGenerationRequest object is the primary API for customization by a post-generation groovy script. And the changed/removed methods were not marked for deprecation. Any archetype released before 3.3.0 that relied on this class is potentially broken.
       

      Attachments

        Issue Links

          Activity

            People

              sjaranowski Slawomir Jaranowski
              barchetta Joe DiPol
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: