You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Kenney Westerhof (JIRA)" <ji...@codehaus.org> on 2005/08/25 01:30:02 UTC

[jira] Updated: (MNG-781) Plugin configuration reset to null when configuration specified in tag

     [ http://jira.codehaus.org/browse/MNG-781?page=all ]

Kenney Westerhof updated MNG-781:
---------------------------------

    Summary: Plugin configuration reset to null when configuration specified in <execution> tag  (was: NPE in maven-eclipse-plugin when binds maven-compiler-plugin in initialize phase)

The specific problem itself is now fixed in svn.

However, in general the resetting of the plugin configuration to null instead of the
default specified in plugin.xml when config is specified in <execution> could be a coding error.
My guess is that the assumption is made (implicitly, in code) that once configuration is specified in an execution
element, that plugin is not bound to the lifecycle and hence has no 'general' configuration anymore
(or some reasoning like that - but I'd have to investigate to make sure).

> Plugin configuration reset to null when configuration specified in <execution> tag
> ----------------------------------------------------------------------------------
>
>          Key: MNG-781
>          URL: http://jira.codehaus.org/browse/MNG-781
>      Project: Maven 2
>         Type: Bug
>   Components: maven-plugins
>     Versions: 2.0-beta-1
>  Environment: xp
>     Reporter: Dan Tran
>      Fix For: 2.0-beta-1
>  Attachments: pom.xml, stacktrace.txt
>
>
> When I bind maven-compiler-plugin in initialize phase, eclispe plugin throws NPE.
> When I remove the binding. It is ok
> Note in pom.xml, I compile all of other plugins except the compiler plugin.
> the NPE was thru because plugin.configuration return null

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


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