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

Archetype cannot be created from project if parent pom.xml evaluates system properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 3.0.1
    • None
    • None

    Description

      Given a project A, which has a parent B with pom.xml that evaluates system properties like this:

          <profile>
             <id>doclint-java8-disable</id>
             <activation>
               <jdk>[1.8,)</jdk>
             </activation>
             <properties>
               <javadoc.additional.params>-Xdoclint:none</javadoc.additional.params>
             </properties>
           </profile>
      

      The mvn archetype:create-from-project fails with an error. This is because the ProjectBuildingRequest has no userProperties or systemProperties set:

      https://github.com/apache/maven-archetype/blob/master/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java#L439

      I will commit an @Ignored test case and a commented fix.

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            paranoiabla Petar Tahchiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: