Brett Porter wrote:
Yes. Can you file it in JIRA?
Thanks,
Brett
On 9/26/05, Eric Jacob <[EMAIL PROTECTED]> wrote:
Hi,
I created a plugin skeleton using the following command:
m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-plugin
-DarchetypeArtifactId=maven-archetype-mojo
When I try to install the plugin, M2 gives me this error:
$ m2 install
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building Maven Mojo Archetype
[INFO] task-segment: [install]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [plugin:descriptor]
[INFO] [resources:resources]
[WARNING]
***** Using defaults for missing POM
org.apache.maven:maven-plugin-api:pom:2.0
-beta-1-SNAPSHOT *****
[INFO]
-------------------------------------------------------------------------
---
[INFO] BUILD FAILURE
[INFO]
-------------------------------------------------------------------------
---
[INFO] Main Error:
Unable to download the artifact from any repository
org.apache.maven:maven-plugin-api:2.0-beta-1-SNAPSHOT:jar
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
Path to dependency:
1) com.mycompany.app:my-plugin:maven-plugin:1.0-SNAPSHOT
2) org.apache.maven:maven-plugin-api:jar:2.0-beta-1-SNAPSHOT
Root error:
Unable to download the artifact from any repository
[INFO]
-------------------------------------------------------------------------
---
[INFO] Total time: 5 seconds
[INFO] Finished at: Sun Sep 25 13:49:00 EDT 2005
[INFO] Final Memory: 3M/6M
[INFO]
-------------------------------------------------------------------------
---
So I look at the generated pom.xml and I found this:
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0-beta-1-SNAPSHOT</version>
</dependency>
If I remove "-SNAPSHOT", the build completes successfully. Is this a bug?
Thanks,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Done!
Bug #:* *MNG-1016
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]