You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alex Heneveld (JIRA)" <ji...@codehaus.org> on 2013/09/21 01:03:52 UTC
[jira] (ARCHETYPE-422) Unable to find resource
'archetype-resources/*/pom.xml'
[ https://jira.codehaus.org/browse/ARCHETYPE-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=333121#comment-333121 ]
Alex Heneveld commented on ARCHETYPE-422:
-----------------------------------------
In case it helps, I hit this error in a different way: I was using the `maven-replace-plugin` to copy from a known-good copy of the project into the `archetype-resources` tree in the `compile` phase.
I switched it to do the copy in the `clean` phase instead and all is okay.
So maybe the error here is happening because the `archetype-resources/pom.xml` file which maven opens (at the start of compile phase?) is replaced when it later goes to read from it.
> Unable to find resource 'archetype-resources/*/pom.xml'
> -------------------------------------------------------
>
> Key: ARCHETYPE-422
> URL: https://jira.codehaus.org/browse/ARCHETYPE-422
> Project: Maven Archetype
> Issue Type: Bug
> Components: Generator
> Environment: Windows 7, Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
> Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
> Reporter: Aleksei Serov
> Priority: Minor
> Attachments: archetype.zip
>
>
> I am running a mvn archetype:generate on multi-module project archetype I have created using mvn archetype:create-from-project and mvn install. Archetype attached.
> I get:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Error merging velocity templates: Unable to find resource 'archetype-resources/*/pom.xml' -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Error merging velocity templates: Unable to find resource 'archetype-resources/*/pom.xml'
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira