You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andrew Waterman (JIRA)" <ji...@codehaus.org> on 2007/10/02 23:18:08 UTC

[jira] Created: (ARCHETYPE-107) maven archetype missing dependency versions breaks archetype:create

maven archetype missing dependency versions breaks archetype:create 
--------------------------------------------------------------------

                 Key: ARCHETYPE-107
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-107
             Project: Maven Archetype
          Issue Type: Bug
          Components: Archetypes
         Environment: linux 2.6 (Xubuntu)
            Reporter: Andrew Waterman
            Priority: Critical


When I try to invoke the "create" goal in the 2.0.7 version of maven, I receive the following error message when invoked from a directory with an existing pom.xml:

Project ID: org.apache.maven.plugins:maven-archetype-plugin
POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
Validation Messages:

    [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator


Reason: Failed to validate POM for project org.apache.maven.plugins:maven-archetype-plugin at Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]

The currently staged version of the maven-archetype-creator dependency contains a missing version reference:

<dependency>
<groupId>org.apache.maven.archetype</groupId>
<artifactId>maven-archetype-model</artifactId>
</dependency>
[source:  http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom]

This effectively breaks the archetype:create goal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (ARCHETYPE-107) maven archetype missing dependency versions breaks archetype:create

Posted by "Dave Minter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_119823 ] 

Dave Minter commented on ARCHETYPE-107:
---------------------------------------

Still an issue as of Maven versions 2.0.7 and 2.0.8.

Is there some obvious work-around aside from temporarily renaming the top level pom, hacking the generated poms to refer to the parent, and putting the parent back again?

As I understand this is a result of a bad pom in the archives. Is there a corrected pom that I could put into my local respository? (Hacking the pom directory to add an explicit version to the maven-archetype-model artifact didn't fix the problem).

It seems strange that this isn't a problem for more people if there isn't a simple work-around...?

> maven archetype missing dependency versions breaks archetype:create 
> --------------------------------------------------------------------
>
>                 Key: ARCHETYPE-107
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-107
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes
>         Environment: linux 2.6 (Xubuntu)
>            Reporter: Andrew Waterman
>            Priority: Critical
>
> When I try to invoke the "create" goal in the 2.0.7 version of maven, I receive the following error message when invoked from a directory with an existing pom.xml:
> Project ID: org.apache.maven.plugins:maven-archetype-plugin
> POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator
> Reason: Failed to validate POM for project org.apache.maven.plugins:maven-archetype-plugin at Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> The currently staged version of the maven-archetype-creator dependency contains a missing version reference:
> <dependency>
> <groupId>org.apache.maven.archetype</groupId>
> <artifactId>maven-archetype-model</artifactId>
> </dependency>
> [source:  http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom]
> This effectively breaks the archetype:create goal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (ARCHETYPE-107) maven archetype missing dependency versions breaks archetype:create

Posted by "JR Boyens (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120358 ] 

JR Boyens commented on ARCHETYPE-107:
-------------------------------------

I was just informed that a total rewrite of the archetype plugin has taken place and it is available as archetypeng

i.e.: $ mvn archetypeng:create

> maven archetype missing dependency versions breaks archetype:create 
> --------------------------------------------------------------------
>
>                 Key: ARCHETYPE-107
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-107
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes
>         Environment: linux 2.6 (Xubuntu)
>            Reporter: Andrew Waterman
>            Priority: Critical
>
> When I try to invoke the "create" goal in the 2.0.7 version of maven, I receive the following error message when invoked from a directory with an existing pom.xml:
> Project ID: org.apache.maven.plugins:maven-archetype-plugin
> POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator
> Reason: Failed to validate POM for project org.apache.maven.plugins:maven-archetype-plugin at Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> The currently staged version of the maven-archetype-creator dependency contains a missing version reference:
> <dependency>
> <groupId>org.apache.maven.archetype</groupId>
> <artifactId>maven-archetype-model</artifactId>
> </dependency>
> [source:  http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom]
> This effectively breaks the archetype:create goal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (ARCHETYPE-107) maven archetype missing dependency versions breaks archetype:create

Posted by "Kris Beaumont (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116700 ] 

Kris Beaumont commented on ARCHETYPE-107:
-----------------------------------------

I think he can't handle the SNAPSHOT default value in some archetypes.
He first says he's ignoring the value and then he says it missing and therefor fails to validate the POM.


below is the output on my screen (and my maven version).


[INFO] Searching repository for plugin with prefix: 'archetype'.
[WARNING] POM for 'org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT' is invalid. It will be ig
nored for artifact resolution. Reason: Failed to validate POM
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-archetype-plugin
POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
Validation Messages:

    [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator


Reason: Failed to validate POM


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project information for plugin 'org.ap
ache.maven.plugins:maven-archetype-plugin': Failed to validate POM
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274
)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java
:1522)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecy
cleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project information for plugin 'org
.apache.maven.plugins:maven-archetype-plugin': Failed to validate POM
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersion
Manager.java:704)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersi
onManager.java:186)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersi
onManager.java:90)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:166)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257
)
        ... 14 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate POM
        at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.
java:1005)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:8
08)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.
java:236)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersion
Manager.java:698)
        ... 18 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 13 14:55:30 CET 2007
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

D:\struts2\multimoduletest\myProject>mvn -version
Maven version: 2.0.6





> maven archetype missing dependency versions breaks archetype:create 
> --------------------------------------------------------------------
>
>                 Key: ARCHETYPE-107
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-107
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes
>         Environment: linux 2.6 (Xubuntu)
>            Reporter: Andrew Waterman
>            Priority: Critical
>
> When I try to invoke the "create" goal in the 2.0.7 version of maven, I receive the following error message when invoked from a directory with an existing pom.xml:
> Project ID: org.apache.maven.plugins:maven-archetype-plugin
> POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator
> Reason: Failed to validate POM for project org.apache.maven.plugins:maven-archetype-plugin at Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> The currently staged version of the maven-archetype-creator dependency contains a missing version reference:
> <dependency>
> <groupId>org.apache.maven.archetype</groupId>
> <artifactId>maven-archetype-model</artifactId>
> </dependency>
> [source:  http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom]
> This effectively breaks the archetype:create goal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Issue Comment Edited: (ARCHETYPE-107) maven archetype missing dependency versions breaks archetype:create

Posted by "Kris Beaumont (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116700 ] 

beaumkr edited comment on ARCHETYPE-107 at 12/13/07 8:54 AM:
-------------------------------------------------------------------

[edit]
tried upgrading, same result: environment:

D:\struts2\multimoduletest\MyProject>mvn -version
Maven version: 2.0.8
Java version: 1.6.0_03
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
[/edit]


I think he can't handle the SNAPSHOT default value in some archetypes.
He first says he's ignoring the value and then he says it missing and therefor fails to validate the POM.


below is the output on my screen (and my maven version).


[INFO] Searching repository for plugin with prefix: 'archetype'.
[WARNING] POM for 'org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT' is invalid. It will be ig
nored for artifact resolution. Reason: Failed to validate POM
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-archetype-plugin
POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
Validation Messages:

    [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator


Reason: Failed to validate POM


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project information for plugin 'org.ap
ache.maven.plugins:maven-archetype-plugin': Failed to validate POM
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274
)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java
:1522)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecy
cleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project information for plugin 'org
.apache.maven.plugins:maven-archetype-plugin': Failed to validate POM
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersion
Manager.java:704)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersi
onManager.java:186)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersi
onManager.java:90)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:166)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257
)
        ... 14 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate POM
        at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.
java:1005)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:8
08)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.
java:236)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersion
Manager.java:698)
        ... 18 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 13 14:55:30 CET 2007
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

D:\struts2\multimoduletest\myProject>mvn -version
Maven version: 2.0.6





      was (Author: beaumkr):
    I think he can't handle the SNAPSHOT default value in some archetypes.
He first says he's ignoring the value and then he says it missing and therefor fails to validate the POM.


below is the output on my screen (and my maven version).


[INFO] Searching repository for plugin with prefix: 'archetype'.
[WARNING] POM for 'org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT' is invalid. It will be ig
nored for artifact resolution. Reason: Failed to validate POM
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-archetype-plugin
POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
Validation Messages:

    [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator


Reason: Failed to validate POM


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project information for plugin 'org.ap
ache.maven.plugins:maven-archetype-plugin': Failed to validate POM
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274
)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java
:1522)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecy
cleExecutor.java:386)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:138)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build project information for plugin 'org
.apache.maven.plugins:maven-archetype-plugin': Failed to validate POM
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersion
Manager.java:704)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersi
onManager.java:186)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersi
onManager.java:90)
        at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:166)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1257
)
        ... 14 more
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate POM
        at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.
java:1005)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:8
08)
        at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.
java:236)
        at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveMetaVersion(DefaultPluginVersion
Manager.java:698)
        ... 18 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Dec 13 14:55:30 CET 2007
[INFO] Final Memory: 1M/4M
[INFO] ------------------------------------------------------------------------

D:\struts2\multimoduletest\myProject>mvn -version
Maven version: 2.0.6




  
> maven archetype missing dependency versions breaks archetype:create 
> --------------------------------------------------------------------
>
>                 Key: ARCHETYPE-107
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-107
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes
>         Environment: linux 2.6 (Xubuntu)
>            Reporter: Andrew Waterman
>            Priority: Critical
>
> When I try to invoke the "create" goal in the 2.0.7 version of maven, I receive the following error message when invoked from a directory with an existing pom.xml:
> Project ID: org.apache.maven.plugins:maven-archetype-plugin
> POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator
> Reason: Failed to validate POM for project org.apache.maven.plugins:maven-archetype-plugin at Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> The currently staged version of the maven-archetype-creator dependency contains a missing version reference:
> <dependency>
> <groupId>org.apache.maven.archetype</groupId>
> <artifactId>maven-archetype-model</artifactId>
> </dependency>
> [source:  http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom]
> This effectively breaks the archetype:create goal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (ARCHETYPE-107) maven archetype missing dependency versions breaks archetype:create

Posted by "JR Boyens (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/ARCHETYPE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120357 ] 

JR Boyens commented on ARCHETYPE-107:
-------------------------------------

The easiest workaround I've found is to explicitly name the version of the archetype plugin like this:

$ mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-4:create

Note that you'll also have to explicitly specify the archetypeVersion too

> maven archetype missing dependency versions breaks archetype:create 
> --------------------------------------------------------------------
>
>                 Key: ARCHETYPE-107
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-107
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Archetypes
>         Environment: linux 2.6 (Xubuntu)
>            Reporter: Andrew Waterman
>            Priority: Critical
>
> When I try to invoke the "create" goal in the 2.0.7 version of maven, I receive the following error message when invoked from a directory with an existing pom.xml:
> Project ID: org.apache.maven.plugins:maven-archetype-plugin
> POM Location: Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven.archetype:maven-archetype-creator
> Reason: Failed to validate POM for project org.apache.maven.plugins:maven-archetype-plugin at Artifact [org.apache.maven.plugins:maven-archetype-plugin:pom:1.0-SNAPSHOT]
> The currently staged version of the maven-archetype-creator dependency contains a missing version reference:
> <dependency>
> <groupId>org.apache.maven.archetype</groupId>
> <artifactId>maven-archetype-model</artifactId>
> </dependency>
> [source:  http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-creator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom]
> This effectively breaks the archetype:create goal.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira