You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "James Carman (JIRA)" <ji...@codehaus.org> on 2008/03/19 16:10:46 UTC

[jira] Created: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

The 2.4 Release Breaks Previously-Working Builds
------------------------------------------------

                 Key: MPLUGIN-102
                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
             Project: Maven 2.x Plugin Tools
          Issue Type: Bug
          Components: Plugin Plugin
    Affects Versions: 2.4
         Environment: Maven version: 2.0.8
Java version: 1.5.0_14
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
            Reporter: James Carman


We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:

[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 0 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'

However, if I add this to my pom.xml file for that module:

<pluginManagement>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-plugin-plugin</artifactId>
      <version>2.3</version>
    </plugin>
  </plugins>
</pluginManagement>

the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127915 ] 

Benjamin Bentmann commented on MPLUGIN-102:
-------------------------------------------

The plugin-plugin works in other cases so the problem is likely caused by something specific to your project/environment. Could you please attach a debug log of Maven and if possible some test project to reproduce this? Just from your description it's really hard to start the bug search.

As a side note: For best build reproducibility, consider to always specify fixed versions for the plugins you employ during the build. This adds a little more clutter to the POM but frees you from such surprises. If you have a parent POM, its <pluginManagement> section is a good place to do this centrally.

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127946 ] 

Benjamin Bentmann commented on MPLUGIN-102:
-------------------------------------------

Caused by change for MPLUGIN-103 applied in [r543359|http://svn.apache.org/viewvc?view=rev&revision=543359].

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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] Updated: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Carman updated MPLUGIN-102:
---------------------------------

    Attachment: archetype-test.zip

Here's an example project.

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128141 ] 

James Carman commented on MPLUGIN-102:
--------------------------------------

Because I followed the directions here when I created it:

http://maven.apache.org/guides/mini/guide-creating-archetypes.html


> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128157 ] 

James Carman commented on MPLUGIN-102:
--------------------------------------

But, it's not a jar module.  It's an archetype.  It seems like there might be support for a "maven-archetype" packaging:

http://jira.codehaus.org/browse/ARCHETYPE-88

However, this worked in the past just fine and apparently was the way we were supposed to do it.  So, I guess this is a backward compatibility issue?  If the packaging must change because of this code change, maybe the error message could give us a little hint?

Error extracting plugin descriptor: 'No mojo descriptors found in plugin (for archetypes, please use packaging jar/maven-archetype).'

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128137 ] 

Dennis Lundberg commented on MPLUGIN-102:
-----------------------------------------

James, why do you have this in the pom of your archetype?
{code}
<packaging>maven-plugin</packaging>
{code}

That's what is pulling in the plugin-plugin. But your code doesn't have any plugin in it so plugin-plugin (correctly IMO) reports the error.

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127933 ] 

James Carman commented on MPLUGIN-102:
--------------------------------------

By the way, the Tapestry folks also ran into this issue.  Have a look:

https://issues.apache.org/jira/browse/TAPESTRY-1914


> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128215 ] 

James Carman commented on MPLUGIN-102:
--------------------------------------

I like it!  Thanks.  

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>            Assignee: Brian Fox
>             Fix For: 2.4.1
>
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127932 ] 

James Carman commented on MPLUGIN-102:
--------------------------------------

Yes, I'm currently in the process of locking down all versions of our project's plugins.  This seems to be quite tedious.  I was trying to use the enforcer plugin, but it has its own problems:

http://jira.codehaus.org/browse/MENFORCER-25

Is there an easy way to ask "what are all my plugins I'm using and what are the current versions"?  Better yet, I'd love to be able to do:

mvn plugin:lockdown-current

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128168 ] 

James Carman commented on MPLUGIN-102:
--------------------------------------

Ok, so the old documentation was wrong?  That means that there are probably lots (as many people who were willing to write their own archetypes for maven :-) of folks out there using maven-plugin as their packaging in their archetypes.  The unfortunate thing is that this actually worked in the past and now it doesn't.

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128156 ] 

Dennis Lundberg commented on MPLUGIN-102:
-----------------------------------------

It turns out that that page is not correct. You should change the packaging to "jar" to solve your problem. I've committed a change to said document  in svn.

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128160 ] 

Dennis Lundberg commented on MPLUGIN-102:
-----------------------------------------

I did go and ask the developers about this before I replied.

You can read the thread here:
http://www.nabble.com/Is-an-archetype-really-a-plugin--to16198757s177.html

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Leonardo Uribe (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127953 ] 

Leonardo Uribe commented on MPLUGIN-102:
----------------------------------------

I have the same error running archetypes with 2.4

The log is this:

[INFO]   Apache MyFaces Trinidad Archetype
[INFO]   MyFaces Archetype
[INFO]   MyFaces Archetype Facelets
[INFO]   MyFaces Portlet Archetype
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache MyFaces Buildtools Maven2 Archetype Parent
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing C:\GSOC\workspace\maven2-archetypes\pom.xml to C:\Documents and Settings\Leonardo\.m2\repository\org\apache\myfaces\buildtools\myfaces-archetype-parent\1.0.1-SNAPSHOT\myfaces-archetype-parent-1.0.1-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building JSF Components Library Archetype
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\GSOC\workspace\maven2-archetypes\myfaces-archetype-jsfcomponents\target
[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] Extractor for language: java found 0 mojo descriptors.
[INFO] Applying extractor for language: bsh
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
	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:585)
	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.MojoExecutionException: Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
	at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:149)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
	... 16 more
Caused by: org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException: No mojo descriptors found in plugin.
	at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:107)
	at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:137)
	... 18 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Mar 19 20:32:46 COT 2008
[INFO] Final Memory: 11M/254M
[INFO] ------------------------------------------------------------------------

getting back to 2.3 make this work again

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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] Updated: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Carman updated MPLUGIN-102:
---------------------------------

    Attachment: debug.log

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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] Closed: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox closed MPLUGIN-102.
-----------------------------

    Resolution: Fixed

We're restoring the old functionality for one release with a huge warning:

{noformat}
[INFO] Extractor for language: bsh found 0 mojo descriptors.
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING] *******************************************************
[WARNING] Deprecation Alert:
[WARNING] No mojo descriptors were found in this project, which has a packaging type of maven-plugin.
[WARNING] In future versions of the plugin tools, this will fail the build.
[WARNING] If this project is an archetype, change the packaging type from maven-plugin to maven-archetype.
[WARNING] ********************************************************
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
[WARNING]
{noformat}

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>            Assignee: Brian Fox
>             Fix For: 2.4.1
>
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "James Carman (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128168 ] 

jwcarman edited comment on MPLUGIN-102 at 3/21/08 11:00 AM:
----------------------------------------------------------------

Ok, so the old documentation was wrong?  That means that there are probably lots (as many people who were willing to write their own archetypes for maven) of folks out there using maven-plugin as their packaging in their archetypes.  The unfortunate thing is that this actually worked in the past and now it doesn't.

      was (Author: jwcarman):
    Ok, so the old documentation was wrong?  That means that there are probably lots (as many people who were willing to write their own archetypes for maven :-) of folks out there using maven-plugin as their packaging in their archetypes.  The unfortunate thing is that this actually worked in the past and now it doesn't.
  
> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127951 ] 

Vincent Siveton commented on MPLUGIN-102:
-----------------------------------------

Other comments on your test case:

Adding the following 

{noformat}
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-plugin-plugin</artifactId>
                <version>2.4</version>
            </plugin>
        </plugins>
    </reporting>
{noformat}

mvn site fails with a NPE on maven-plugin-plugin 2.3 or bellow but produces your error on 2.4


> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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] Updated: (MPLUGIN-102) The 2.4 Release Breaks Previously-Working Builds

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPLUGIN-102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox updated MPLUGIN-102:
------------------------------

    Fix Version/s: 2.5

> The 2.4 Release Breaks Previously-Working Builds
> ------------------------------------------------
>
>                 Key: MPLUGIN-102
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-102
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: Plugin Plugin
>    Affects Versions: 2.4
>         Environment: Maven version: 2.0.8
> Java version: 1.5.0_14
> OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
>            Reporter: James Carman
>             Fix For: 2.5
>
>         Attachments: archetype-test.zip, debug.log
>
>
> We have an archetype contained within our project.  Today, when I tried to run our build, I got the following error:
> [INFO] [plugin:descriptor]
> [INFO] Using 2 extractors.
> [INFO] Applying extractor for language: java
> [INFO] Extractor for language: java found 0 mojo descriptors.
> [INFO] Applying extractor for language: bsh
> [INFO] Extractor for language: bsh found 0 mojo descriptors.
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error extracting plugin descriptor: 'No mojo descriptors found in plugin.'
> However, if I add this to my pom.xml file for that module:
> <pluginManagement>
>   <plugins>
>     <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-plugin-plugin</artifactId>
>       <version>2.3</version>
>     </plugin>
>   </plugins>
> </pluginManagement>
> the build works just fine, as usual (understandable since the 2.4 release came out yesterday).

-- 
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