[jira] Created: (MNG-2545) [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (MNG-2545) [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)

JIRA jira@codehaus.org
[maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: MNG-2545
                 URL: http://jira.codehaus.org/browse/MNG-2545
             Project: Maven 2
          Issue Type: Bug
          Components: Plugin Creation Tools
    Affects Versions: 2.0.4
         Environment: Maven 2.0.4
maven-plugin-testing-harness-1.0-beta-1
            Reporter: Jimisola Laursen
            Priority: Minor


AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin. configuration section under executions/execution doesn't work.

Exception is thrown on line 209 since pluginConfigurationElement  == null which is due to

pluginConfigurationElement = pluginElement.getChild( "configuration" )

A fix should check for configuration section under plugin/configuration and then plugin/executions/execution/configuration.

AbstractMojoTestCase.extractPluginConfiguration:201

        for ( int i = 0; i < pluginElements.length; i++ )
        {
            Xpp3Dom pluginElement = pluginElements[i];

            String pluginElementArtifactId = pluginElement.getChild( "artifactId" ).getValue();

            if ( pluginElementArtifactId.equals( artifactId ) )
            {
                pluginConfigurationElement = pluginElement.getChild( "configuration" );

                break;
            }
        }

        if ( pluginConfigurationElement == null )
        {
            throw new ConfigurationException( "Cannot find a configuration element for a plugin with an artifactId of " + artifactId + "." );
        }

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (MNG-2545) [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)

JIRA jira@codehaus.org
    [ http://jira.codehaus.org/browse/MNG-2545?page=comments#action_81733 ]
           
iosif commented on MNG-2545:
----------------------------

AbstractMojoTestCase seems to look up mojos/plugins listed in the <build> section only.  Mojo lookup does not check the configuration section in <reporting>.

> [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-2545
>                 URL: http://jira.codehaus.org/browse/MNG-2545
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin Creation Tools
>    Affects Versions: 2.0.4
>         Environment: Maven 2.0.4
> maven-plugin-testing-harness-1.0-beta-1
>            Reporter: Jimisola Laursen
>            Priority: Minor
>
> AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin. configuration section under executions/execution doesn't work.
> Exception is thrown on line 209 since pluginConfigurationElement  == null which is due to
> pluginConfigurationElement = pluginElement.getChild( "configuration" )
> A fix should check for configuration section under plugin/configuration and then plugin/executions/execution/configuration.
> AbstractMojoTestCase.extractPluginConfiguration:201
>         for ( int i = 0; i < pluginElements.length; i++ )
>         {
>             Xpp3Dom pluginElement = pluginElements[i];
>             String pluginElementArtifactId = pluginElement.getChild( "artifactId" ).getValue();
>             if ( pluginElementArtifactId.equals( artifactId ) )
>             {
>                 pluginConfigurationElement = pluginElement.getChild( "configuration" );
>                 break;
>             }
>         }
>         if ( pluginConfigurationElement == null )
>         {
>             throw new ConfigurationException( "Cannot find a configuration element for a plugin with an artifactId of " + artifactId + "." );
>         }

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Moved: (MPLUGIN-46) [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

     [ http://jira.codehaus.org/browse/MPLUGIN-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MNG-2545 to MPLUGIN-46:
------------------------------------------

    Affects Version/s:     (was: 2.0.4)
        Fix Version/s:     (was: Reviewed Pending Version Assignment)
          Component/s:     (was: Plugin Creation Tools)
                  Key: MPLUGIN-46  (was: MNG-2545)
              Project: Maven 2.x Plugin Tools  (was: Maven 2)

> [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MPLUGIN-46
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-46
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>         Environment: Maven 2.0.4
> maven-plugin-testing-harness-1.0-beta-1
>            Reporter: Jimisola Laursen
>            Priority: Minor
>
> AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin. configuration section under executions/execution doesn't work.
> Exception is thrown on line 209 since pluginConfigurationElement  == null which is due to
> pluginConfigurationElement = pluginElement.getChild( "configuration" )
> A fix should check for configuration section under plugin/configuration and then plugin/executions/execution/configuration.
> AbstractMojoTestCase.extractPluginConfiguration:201
>         for ( int i = 0; i < pluginElements.length; i++ )
>         {
>             Xpp3Dom pluginElement = pluginElements[i];
>             String pluginElementArtifactId = pluginElement.getChild( "artifactId" ).getValue();
>             if ( pluginElementArtifactId.equals( artifactId ) )
>             {
>                 pluginConfigurationElement = pluginElement.getChild( "configuration" );
>                 break;
>             }
>         }
>         if ( pluginConfigurationElement == null )
>         {
>             throw new ConfigurationException( "Cannot find a configuration element for a plugin with an artifactId of " + artifactId + "." );
>         }

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (MPLUGIN-46) [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

     [ http://jira.codehaus.org/browse/MPLUGIN-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton updated MPLUGIN-46:
-----------------------------------

    Description:
AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin. configuration section under executions/execution doesn't work.

Exception is thrown on line 209 since pluginConfigurationElement  == null which is due to

{noformat}
pluginConfigurationElement = pluginElement.getChild( "configuration" )
{noformat}

A fix should check for configuration section under plugin/configuration and then plugin/executions/execution/configuration.

{noformat}
AbstractMojoTestCase.extractPluginConfiguration:201

        for ( int i = 0; i < pluginElements.length; i++ )
        {
            Xpp3Dom pluginElement = pluginElements[i];

            String pluginElementArtifactId = pluginElement.getChild( "artifactId" ).getValue();

            if ( pluginElementArtifactId.equals( artifactId ) )
            {
                pluginConfigurationElement = pluginElement.getChild( "configuration" );

                break;
            }
        }

        if ( pluginConfigurationElement == null )
        {
            throw new ConfigurationException( "Cannot find a configuration element for a plugin with an artifactId of " + artifactId + "." );
        }
{noformat}

  was:
AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin. configuration section under executions/execution doesn't work.

Exception is thrown on line 209 since pluginConfigurationElement  == null which is due to

pluginConfigurationElement = pluginElement.getChild( "configuration" )

A fix should check for configuration section under plugin/configuration and then plugin/executions/execution/configuration.

AbstractMojoTestCase.extractPluginConfiguration:201

        for ( int i = 0; i < pluginElements.length; i++ )
        {
            Xpp3Dom pluginElement = pluginElements[i];

            String pluginElementArtifactId = pluginElement.getChild( "artifactId" ).getValue();

            if ( pluginElementArtifactId.equals( artifactId ) )
            {
                pluginConfigurationElement = pluginElement.getChild( "configuration" );

                break;
            }
        }

        if ( pluginConfigurationElement == null )
        {
            throw new ConfigurationException( "Cannot find a configuration element for a plugin with an artifactId of " + artifactId + "." );
        }


> [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MPLUGIN-46
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-46
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>         Environment: Maven 2.0.4
> maven-plugin-testing-harness-1.0-beta-1
>            Reporter: Jimisola Laursen
>            Priority: Minor
>
> AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin. configuration section under executions/execution doesn't work.
> Exception is thrown on line 209 since pluginConfigurationElement  == null which is due to
> {noformat}
> pluginConfigurationElement = pluginElement.getChild( "configuration" )
> {noformat}
> A fix should check for configuration section under plugin/configuration and then plugin/executions/execution/configuration.
> {noformat}
> AbstractMojoTestCase.extractPluginConfiguration:201
>         for ( int i = 0; i < pluginElements.length; i++ )
>         {
>             Xpp3Dom pluginElement = pluginElements[i];
>             String pluginElementArtifactId = pluginElement.getChild( "artifactId" ).getValue();
>             if ( pluginElementArtifactId.equals( artifactId ) )
>             {
>                 pluginConfigurationElement = pluginElement.getChild( "configuration" );
>                 break;
>             }
>         }
>         if ( pluginConfigurationElement == null )
>         {
>             throw new ConfigurationException( "Cannot find a configuration element for a plugin with an artifactId of " + artifactId + "." );
>         }
> {noformat}

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

       
Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (MPLUGIN-46) [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)

JIRA jira@codehaus.org
In reply to this post by JIRA jira@codehaus.org

     [ http://jira.codehaus.org/browse/MPLUGIN-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincent Siveton closed MPLUGIN-46.
----------------------------------

         Assignee: Vincent Siveton
       Resolution: Fixed
    Fix Version/s: 2.4

applied

> [maven-plugin-testing-harness-1.0-beta-1] AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin (configuration under executions/execution doesn't work)
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MPLUGIN-46
>                 URL: http://jira.codehaus.org/browse/MPLUGIN-46
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>         Environment: Maven 2.0.4
> maven-plugin-testing-harness-1.0-beta-1
>            Reporter: Jimisola Laursen
>            Assignee: Vincent Siveton
>            Priority: Minor
>             Fix For: 2.4
>
>
> AbstractMojoTestCase.extractPluginConfiguration expects plugin configuration directly under plugin. configuration section under executions/execution doesn't work.
> Exception is thrown on line 209 since pluginConfigurationElement  == null which is due to
> {noformat}
> pluginConfigurationElement = pluginElement.getChild( "configuration" )
> {noformat}
> A fix should check for configuration section under plugin/configuration and then plugin/executions/execution/configuration.
> {noformat}
> AbstractMojoTestCase.extractPluginConfiguration:201
>         for ( int i = 0; i < pluginElements.length; i++ )
>         {
>             Xpp3Dom pluginElement = pluginElements[i];
>             String pluginElementArtifactId = pluginElement.getChild( "artifactId" ).getValue();
>             if ( pluginElementArtifactId.equals( artifactId ) )
>             {
>                 pluginConfigurationElement = pluginElement.getChild( "configuration" );
>                 break;
>             }
>         }
>         if ( pluginConfigurationElement == null )
>         {
>             throw new ConfigurationException( "Cannot find a configuration element for a plugin with an artifactId of " + artifactId + "." );
>         }
> {noformat}

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