Pierre Remazeilles created ARCHETYPE-566:
--------------------------------------------
Summary: Partial archetype fails on existing structure
Key: ARCHETYPE-566
URL: https://issues.apache.org/jira/browse/ARCHETYPE-566
Project: Maven Archetype
Issue Type: Bug
Components: Generator
Affects Versions: 3.1.0
Reporter: Pierre Remazeilles
Greetings,
When generating a partial archetype on an existing project which already
contains some of its files, the generation fails with the message "Don't
override file".
However, given the code, the generation should not fail in this case, but
rather display a warning message. It seems the problem lies in the fact that
the "failIfExists" parameter is inverted in the methods
"processArchetypeTemplates" and "processArchetypeTemplatesWithWarning". I think
"failIfExists" should be false for "processArchetypeTemplatesWithWarning" (as
the method name would imply), and true for "processArchetypeTemplates". This is
currently the opposite.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)