[
https://issues.apache.org/jira/browse/ARCHETYPE-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15865761#comment-15865761
]
Hudson commented on ARCHETYPE-518:
----------------------------------
SUCCESS: Integrated in Jenkins build maven-archetype-m3 #261 (See
[https://builds.apache.org/job/maven-archetype-m3/261/])
ARCHETYPE-518 (paranoiabla: rev 45d44b1d92df582bea9df3069e7dce9e3e106900)
* (add)
archetype-testing/archetype-final/src/test/resources/projects/included-system-properties/archetype.properties.sample
* (add)
archetype-testing/archetype-final/src/test/resources/projects/included-system-properties/pom-parent.xml.sample
* (add)
archetype-testing/archetype-final/src/test/resources/projects/included-system-properties/pom.xml.sample
* (add)
archetype-testing/archetype-final/src/test/resources/projects/included-system-properties/src/main/java/App.java
* (edit)
archetype-testing/archetype-final/src/test/java/org/apache/maven/archetype/creator/DefaultArchetypeCreatorIT.java
* (edit)
archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
> Archetype cannot be created from project if parent pom.xml evaluates system
> properties
> --------------------------------------------------------------------------------------
>
> Key: ARCHETYPE-518
> URL: https://issues.apache.org/jira/browse/ARCHETYPE-518
> Project: Maven Archetype
> Issue Type: Bug
> Reporter: Petar Tahchiev
> Priority: Critical
> Fix For: 3.0.1
>
>
> Given a project {{A}}, which has a parent {{B}} with {{pom.xml}} that
> evaluates system properties like this:
> {code}
> <profile>
> <id>doclint-java8-disable</id>
> <activation>
> <jdk>[1.8,)</jdk>
> </activation>
> <properties>
> <javadoc.additional.params>-Xdoclint:none</javadoc.additional.params>
> </properties>
> </profile>
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)