[
https://issues.apache.org/jira/browse/ARCHETYPE-518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte closed ARCHETYPE-518.
------------------------------------
Resolution: Fixed
Assignee: Robert Scholte
Fixed in
[f2f119e17af285d731b85d52636897aa0760b6c4|http://git-wip-us.apache.org/repos/asf/maven-archetype/commit/f2f119e1]
> 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
> Assignee: Robert Scholte
> 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)