You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Jacob <er...@sympatico.ca> on 2005/09/25 20:13:21 UTC

[m2] Archetype Plugin problem generating Mojo type project (beta-1)

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Archetype Plugin problem generating Mojo type project (beta-1)

Posted by Eric Jacob <er...@sympatico.ca>.
Brett Porter wrote:

>Yes. Can you file it in JIRA?
>
>Thanks,
>Brett
>
>On 9/26/05, Eric Jacob <er...@sympatico.ca> 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: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>

Done!
Bug #:* *MNG-1016

Eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Archetype Plugin problem generating Mojo type project (beta-1)

Posted by Brett Porter <br...@gmail.com>.
Yes. Can you file it in JIRA?

Thanks,
Brett

On 9/26/05, Eric Jacob <er...@sympatico.ca> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org