You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pablo <pa...@terra.es> on 2005/09/19 12:46:06 UTC

[m2] Error in Hello plugin

Hi all!!

    I'm having some troubles in developing Hello plugin as stated in 
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.html.
The version I'm working with is 2.0-beta-1, although with 2.0-alpha-3 
there was the same problem.
Bellow I explained project structure, sources and so on.

Project structure
-------------------------------------------------
- src/main/scripts/hello.mmld
- pom.xml

Sources
----------------------------------------------
***** hello.mmld ********************
<mojo xmlns="marmalade:mojo">
  <metadata>
    <goal>hello</goal>
    <description>Say Hello to the World.</description>
  </metadata>
  <execute>
    <c:out xmlns:c="marmalade:core">Hello, World</c:out>
  </execute>
</mojo>

***** pom.xml *********************
<project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-hello-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>maven-plugin</packaging>
    <name>Hello World plugin</name>
    <build>
        <resources>
            <resource>
                <directory>src/main/scripts</directory>
                <includes>
                    <include>**/*.mmld</include>
                </includes>
            </resource>
        </resources>
    </build>
</project>

Actions
----------------------------------------------------------------------------
 > m2 clean:clean install
[INFO] Searching repository for plugin with prefix: 'clean'.
[INFO] 
----------------------------------------------------------------------------
[INFO] Building 
org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
[INFO]    task-segment: [clean:clean, install]
[INFO] 
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/maven/maven2plugin/target
[INFO] [plugin:descriptor]
[INFO] [resources:resources]
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] Setting reports dir: /home/maven/maven2plugin/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
There are no test to run.

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

[INFO] [jar:jar]
[INFO] Building jar: 
/home/maven/maven2plugin/target/maven-hello-plugin-1.0-SNAPSHOT.jar
[INFO] [plugin:addPluginArtifactMetadata]
[INFO] [install:install]
[INFO] Installing 
/home/maven/maven2plugin/target/maven-hello-plugin-1.0-SNAPSHOT.jar to 
/home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello-plugin-1.0-SNAPSHOT.jar
[INFO] 
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Sep 19 12:42:00 CEST 2005
[INFO] Final Memory: 3M/7M
[INFO] 
----------------------------------------------------------------------------


 >m2 hello:hello
[INFO] Searching repository for plugin with prefix: 'hello'.
Downloading: 
file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.pom
[WARNING]
  ***** Using defaults for missing POM 
org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *****

Downloading: 
file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
[INFO] Cannot find mojo descriptor for: 'hello:hello' - Treating as 
non-aggregator.
[INFO] 
----------------------------------------------------------------------------
[INFO] Building 
org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
[INFO]    task-segment: [hello:hello]
[INFO] 
----------------------------------------------------------------------------
Downloading: 
file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
[INFO] 
----------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
----------------------------------------------------------------------------
[INFO] Main Error:
  Mojo could not be found - check that the goal name is correct
  org.apache.maven.plugins:maven-hello-plugin:RELEASE:maven-plugin

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Root error:
  File: 
/home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar 
does not exist
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Sep 19 12:42:57 CEST 2005
[INFO] Final Memory: 1M/2M
[INFO] 
----------------------------------------------------------------------------


Instead of looking for maven-hello-plugin-1.0-SNAPSHOT.jar it looks for 
maven-hello-plugin-RELEASE.jar

I'm a bit confused with this issue. Any comment?

Thanks in advance.

Best regards,

Pablo.

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


Re: [m2] Error in Hello plugin

Posted by Pablo Muñiz <pa...@terra.es>.
Thanks Yann,

    by modifying <userVersion> tag in plugin-registry.xml from my local 
repository I've solved this issue until it's fixed in further releases.

Pablo.

Yann Le Du escribió:

>Hi Pablo,
>
>This seems to be a known issue :
>http://jira.codehaus.org/browse/MNG-916
>
>Yann
>
>
>
>--- Pablo <pa...@terra.es> a écrit :
>
>  
>
>>Hi all!!
>>
>>    I'm having some troubles in developing Hello plugin as stated in 
>>
>>    
>>
>http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.html.
>  
>
>>The version I'm working with is 2.0-beta-1, although with 2.0-alpha-3 
>>there was the same problem.
>>Bellow I explained project structure, sources and so on.
>>
>>Project structure
>>-------------------------------------------------
>>- src/main/scripts/hello.mmld
>>- pom.xml
>>
>>Sources
>>----------------------------------------------
>>***** hello.mmld ********************
>><mojo xmlns="marmalade:mojo">
>>  <metadata>
>>    <goal>hello</goal>
>>    <description>Say Hello to the World.</description>
>>  </metadata>
>>  <execute>
>>    <c:out xmlns:c="marmalade:core">Hello, World</c:out>
>>  </execute>
>></mojo>
>>
>>***** pom.xml *********************
>><project xmlns="http://maven.apache.org/POM/4.0.0"
>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>>http://maven.apache.org/maven-v4_0_0.xsd">
>>
>>    <modelVersion>4.0.0</modelVersion>
>>    <groupId>org.apache.maven.plugins</groupId>
>>    <artifactId>maven-hello-plugin</artifactId>
>>    <version>1.0-SNAPSHOT</version>
>>    <packaging>maven-plugin</packaging>
>>    <name>Hello World plugin</name>
>>    <build>
>>        <resources>
>>            <resource>
>>                <directory>src/main/scripts</directory>
>>                <includes>
>>                    <include>**/*.mmld</include>
>>                </includes>
>>            </resource>
>>        </resources>
>>    </build>
>></project>
>>
>>Actions
>>----------------------------------------------------------------------------
>> > m2 clean:clean install
>>[INFO] Searching repository for plugin with prefix: 'clean'.
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] Building 
>>org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
>>[INFO]    task-segment: [clean:clean, install]
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] [clean:clean]
>>[INFO] Deleting directory /home/maven/maven2plugin/target
>>[INFO] [plugin:descriptor]
>>[INFO] [resources:resources]
>>[INFO] [compiler:compile]
>>[INFO] Nothing to compile - all classes are up to date
>>[INFO] [resources:testResources]
>>[INFO] [compiler:testCompile]
>>[INFO] No sources to compile
>>[INFO] [surefire:test]
>>[INFO] Setting reports dir: /home/maven/maven2plugin/target/surefire-reports
>>
>>-------------------------------------------------------
>> T E S T S
>>-------------------------------------------------------
>>There are no test to run.
>>
>>Results :
>>[surefire] Tests run: 0, Failures: 0, Errors: 0
>>
>>[INFO] [jar:jar]
>>[INFO] Building jar: 
>>/home/maven/maven2plugin/target/maven-hello-plugin-1.0-SNAPSHOT.jar
>>[INFO] [plugin:addPluginArtifactMetadata]
>>[INFO] [install:install]
>>[INFO] Installing 
>>/home/maven/maven2plugin/target/maven-hello-plugin-1.0-SNAPSHOT.jar to 
>>
>>    
>>
>/home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello-plugin-1.0-SNAPSHOT.jar
>  
>
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] BUILD SUCCESSFUL
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] Total time: 2 seconds
>>[INFO] Finished at: Mon Sep 19 12:42:00 CEST 2005
>>[INFO] Final Memory: 3M/7M
>>[INFO] 
>>----------------------------------------------------------------------------
>>
>>
>> >m2 hello:hello
>>[INFO] Searching repository for plugin with prefix: 'hello'.
>>Downloading: 
>>
>>    
>>
>file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.pom
>  
>
>>[WARNING]
>>  ***** Using defaults for missing POM 
>>org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *****
>>
>>Downloading: 
>>
>>    
>>
>file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
>  
>
>>[INFO] Cannot find mojo descriptor for: 'hello:hello' - Treating as 
>>non-aggregator.
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] Building 
>>org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
>>[INFO]    task-segment: [hello:hello]
>>[INFO] 
>>----------------------------------------------------------------------------
>>Downloading: 
>>
>>    
>>
>file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
>  
>
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] BUILD FAILURE
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] Main Error:
>>  Mojo could not be found - check that the goal name is correct
>>  org.apache.maven.plugins:maven-hello-plugin:RELEASE:maven-plugin
>>
>>from the specified remote repositories:
>>  central (http://repo1.maven.org/maven2)
>>
>>Root error:
>>  File: 
>>
>>    
>>
>/home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
>  
>
>>does not exist
>>[INFO] 
>>----------------------------------------------------------------------------
>>[INFO] Total time: < 1 second
>>[INFO] Finished at: Mon Sep 19 12:42:57 CEST 2005
>>[INFO] Final Memory: 1M/2M
>>[INFO] 
>>----------------------------------------------------------------------------
>>
>>
>>Instead of looking for maven-hello-plugin-1.0-SNAPSHOT.jar it looks for 
>>maven-hello-plugin-RELEASE.jar
>>
>>I'm a bit confused with this issue. Any comment?
>>
>>Thanks in advance.
>>
>>Best regards,
>>
>>Pablo.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>    
>>
>
>
>
>	
>
>	
>		
>___________________________________________________________________________ 
>Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
>Téléchargez cette version sur http://fr.messenger.yahoo.com
>
>---------------------------------------------------------------------
>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


RE: [m2] Error in Hello plugin

Posted by Yann Le Du <le...@yahoo.com>.
Hi Pablo,

This seems to be a known issue :
http://jira.codehaus.org/browse/MNG-916

Yann



--- Pablo <pa...@terra.es> a écrit :

> Hi all!!
> 
>     I'm having some troubles in developing Hello plugin as stated in 
>
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.html.
> The version I'm working with is 2.0-beta-1, although with 2.0-alpha-3 
> there was the same problem.
> Bellow I explained project structure, sources and so on.
> 
> Project structure
> -------------------------------------------------
> - src/main/scripts/hello.mmld
> - pom.xml
> 
> Sources
> ----------------------------------------------
> ***** hello.mmld ********************
> <mojo xmlns="marmalade:mojo">
>   <metadata>
>     <goal>hello</goal>
>     <description>Say Hello to the World.</description>
>   </metadata>
>   <execute>
>     <c:out xmlns:c="marmalade:core">Hello, World</c:out>
>   </execute>
> </mojo>
> 
> ***** pom.xml *********************
> <project xmlns="http://maven.apache.org/POM/4.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd">
> 
>     <modelVersion>4.0.0</modelVersion>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-hello-plugin</artifactId>
>     <version>1.0-SNAPSHOT</version>
>     <packaging>maven-plugin</packaging>
>     <name>Hello World plugin</name>
>     <build>
>         <resources>
>             <resource>
>                 <directory>src/main/scripts</directory>
>                 <includes>
>                     <include>**/*.mmld</include>
>                 </includes>
>             </resource>
>         </resources>
>     </build>
> </project>
> 
> Actions
> ----------------------------------------------------------------------------
>  > m2 clean:clean install
> [INFO] Searching repository for plugin with prefix: 'clean'.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building 
> org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
> [INFO]    task-segment: [clean:clean, install]
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory /home/maven/maven2plugin/target
> [INFO] [plugin:descriptor]
> [INFO] [resources:resources]
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir: /home/maven/maven2plugin/target/surefire-reports
> 
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> There are no test to run.
> 
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
> 
> [INFO] [jar:jar]
> [INFO] Building jar: 
> /home/maven/maven2plugin/target/maven-hello-plugin-1.0-SNAPSHOT.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [install:install]
> [INFO] Installing 
> /home/maven/maven2plugin/target/maven-hello-plugin-1.0-SNAPSHOT.jar to 
>
/home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello-plugin-1.0-SNAPSHOT.jar
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Sep 19 12:42:00 CEST 2005
> [INFO] Final Memory: 3M/7M
> [INFO] 
> ----------------------------------------------------------------------------
> 
> 
>  >m2 hello:hello
> [INFO] Searching repository for plugin with prefix: 'hello'.
> Downloading: 
>
file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.pom
> [WARNING]
>   ***** Using defaults for missing POM 
> org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *****
> 
> Downloading: 
>
file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
> [INFO] Cannot find mojo descriptor for: 'hello:hello' - Treating as 
> non-aggregator.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building 
> org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
> [INFO]    task-segment: [hello:hello]
> [INFO] 
> ----------------------------------------------------------------------------
> Downloading: 
>
file:///home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Main Error:
>   Mojo could not be found - check that the goal name is correct
>   org.apache.maven.plugins:maven-hello-plugin:RELEASE:maven-plugin
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2)
> 
> Root error:
>   File: 
>
/home/maven/.m2/repository/org/apache/maven/plugins/maven-hello-plugin/RELEASE/maven-hello-plugin-RELEASE.jar
> 
> does not exist
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Sep 19 12:42:57 CEST 2005
> [INFO] Final Memory: 1M/2M
> [INFO] 
> ----------------------------------------------------------------------------
> 
> 
> Instead of looking for maven-hello-plugin-1.0-SNAPSHOT.jar it looks for 
> maven-hello-plugin-RELEASE.jar
> 
> I'm a bit confused with this issue. Any comment?
> 
> Thanks in advance.
> 
> Best regards,
> 
> Pablo.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 



	

	
		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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