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

Partial archetype fails on existing structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 3.1.0
    • None
    • Generator
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            peteus Pierre Remazeilles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: