You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/07/25 13:48:26 UTC

[jira] Created: (MNG-3683) help plugin does not work under Maven 2.1

help plugin does not work under Maven 2.1
-----------------------------------------

                 Key: MNG-3683
                 URL: http://jira.codehaus.org/browse/MNG-3683
             Project: Maven 2
          Issue Type: Bug
          Components: Plugin Requests
    Affects Versions: 2.1-alpha-1
            Reporter: Brett Porter


The following command:

mvn help:describe -Dplugin=site

Gives the error:

[ERROR] 

Maven encountered an error while configuring one of the mojos for your build.

Mojo:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-help-plugin
Version: 2.0.2
Mojo: describe
brought in via: Direct invocation

While building project:
Group-Id: org.apache.continuum
Artifact-Id: continuum-docs
Version: 1.2-SNAPSHOT
>From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml


Here is the configuration it attempted to apply to the mojo:<configuration>
  <artifactId>${artifactId}</artifactId>

  <full>${full}</full>

  <groupId>${groupId}</groupId>

  <localRepository>${localRepository}</localRepository>

  <medium>${medium}</medium>

  <mojo>${mojo}</mojo>

  <output>${output}</output>

  <plugin>${plugin}</plugin>

  <project>${project}</project>

  <session>${session}</session>

  <settings>${settings}</settings>

  <version>${version}</version>
</configuration>


Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )




-- 
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: (MNG-3683) [regression] Help plugin does not work

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl updated MNG-3683:
-------------------------------

    Fix Version/s:     (was: 3.0-alpha-3)
                   3.0-alpha-4

> [regression] Help plugin does not work
> --------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Requests
>            Reporter: Brett Porter
>            Assignee: Jason van Zyl
>             Fix For: 3.0-alpha-4
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

-- 
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: (MNG-3683) [regression] Help plugin does not work

Posted by "Paul Benedict (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Benedict updated MNG-3683:
-------------------------------

    Summary: [regression] Help plugin does not work  (was: help plugin does not work under Maven 2.1)

> [regression] Help plugin does not work
> --------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Requests
>    Affects Versions: 3.0-alpha-1
>            Reporter: Brett Porter
>             Fix For: 3.0-alpha-1
>
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

-- 
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: (MNG-3683) help plugin does not work under Maven 2.1

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3683:
------------------------------

    Fix Version/s: 2.1-alpha-1

> help plugin does not work under Maven 2.1
> -----------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Requests
>    Affects Versions: 2.1-alpha-1
>            Reporter: Brett Porter
>             Fix For: 2.1-alpha-1
>
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

-- 
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: (MNG-3683) [regression] Help plugin does not work

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3683:
------------------------------

    Fix Version/s: 3.0-alpha-3

> [regression] Help plugin does not work
> --------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Requests
>            Reporter: Brett Porter
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

-- 
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: (MNG-3683) [regression] Help plugin does not work

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl updated MNG-3683:
-------------------------------

    Fix Version/s:     (was: 3.0-alpha-4)
                   3.0-alpha-3

> [regression] Help plugin does not work
> --------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Requests
>            Reporter: Brett Porter
>            Assignee: Jason van Zyl
>             Fix For: 3.0-alpha-3
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

-- 
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: (MNG-3683) [regression] Help plugin does not work

Posted by "Jason van Zyl (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason van Zyl updated MNG-3683:
-------------------------------

     Affects Version/s:     (was: 3.0-alpha-1)
         Fix Version/s:     (was: 3.0-alpha-1)
    Remaining Estimate: 0 minutes
     Original Estimate: 0 minutes

This is due to two separate issues. The first is that the plugin expression evaluator wasn't processing command line properties first and there is a field in the help plugin called "plugin" which interferes with the field in the plugin descriptor configuratino called "plugin". The command line was being processed first so this wasn't a problem anymore. The plugin plugin should block field names/setters that are the same as elements in the default plugin descriptor.

The second problem is that the plugin manager and lifecycle executor have been changed so much that most of the methods the help plugin needs are no longer there. The help:describe mojo is a chunk of core logic in a plugin. Something like this could probably be way smaller and in the embedder which would be useful to IDE integration pieces.

> [regression] Help plugin does not work
> --------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Requests
>            Reporter: Brett Porter
>            Assignee: Shane Isbell
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

-- 
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: (MNG-3683) [regression] Help plugin does not work

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

Benjamin Bentmann updated MNG-3683:
-----------------------------------

    Component/s:     (was: Plugin Requests)
                 Plugins and Lifecycle

> [regression] Help plugin does not work
> --------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugins and Lifecycle
>            Reporter: Brett Porter
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-3
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

-- 
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: (MNG-3683) [regression] Help plugin does not work

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

Benjamin Bentmann closed MNG-3683.
----------------------------------

      Assignee: Benjamin Bentmann  (was: Jason van Zyl)
    Resolution: Fixed

The trunk of the Help Plugin seems to work to a reasonable degree with 3.x. The last released version of the plugin bypassed interface abstractions and made assumptions about the underlying implementation, that's just a no go. We should get into the habbit of discussing problems and use cases that plugin authors experience on the dev list to see how this can eventually be solved with proper help of the core. All this code using implementation classes is just prone to break.

> [regression] Help plugin does not work
> --------------------------------------
>
>                 Key: MNG-3683
>                 URL: http://jira.codehaus.org/browse/MNG-3683
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Requests
>            Reporter: Brett Porter
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-alpha-3
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> The following command:
> mvn help:describe -Dplugin=site
> Gives the error:
> [ERROR] 
> Maven encountered an error while configuring one of the mojos for your build.
> Mojo:
> Group-Id: org.apache.maven.plugins
> Artifact-Id: maven-help-plugin
> Version: 2.0.2
> Mojo: describe
> brought in via: Direct invocation
> While building project:
> Group-Id: org.apache.continuum
> Artifact-Id: continuum-docs
> Version: 1.2-SNAPSHOT
> From file: /Users/brett/scm/continuum/continuum/continuum-docs/pom.xml
> Here is the configuration it attempted to apply to the mojo:<configuration>
>   <artifactId>${artifactId}</artifactId>
>   <full>${full}</full>
>   <groupId>${groupId}</groupId>
>   <localRepository>${localRepository}</localRepository>
>   <medium>${medium}</medium>
>   <mojo>${mojo}</mojo>
>   <output>${output}</output>
>   <plugin>${plugin}</plugin>
>   <project>${project}</project>
>   <session>${session}</session>
>   <settings>${settings}</settings>
>   <version>${version}</version>
> </configuration>
> Error message:org.codehaus.plexus.component.configurator.ComponentConfigurationException: Invalid parameter supplied while setting 'org.apache.maven.plugin.MojoExecution@a2f216' to org.apache.maven.plugins.help.DescribeMojo.setMojo( java.lang.Class )

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