Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
OS: Windows, Linux
Maven: 3.0.5, 3.2.1
Java 7
Description
If "mvn install" is executed on a clean repository without first executing "mvn clean" then the following error in project "Brooklyn Quick-Start Project Archetype" breaks the build.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:integration-test (default-integration-test) on project brooklyn-archetype-quickstart: [ERROR] Archetype IT 'integration-test-1' failed: org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Error merging velocity templates: Unable to find resource 'archetype-resources/pom.xml' [ERROR] -> [Help 1]
The reason is that the the plugin "maven-replacer-plugin" is executed in the clean phase which creates the necessary files for the build.