You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Petar Tahchiev (JIRA)" <ji...@apache.org> on 2017/02/14 11:43:41 UTC
[jira] [Created] (ARCHETYPE-518) Archetype cannot be created from
project if parent pom.xml evaluates system properties
Petar Tahchiev created ARCHETYPE-518:
----------------------------------------
Summary: 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)