[ 
http://jira.codehaus.org/browse/MNG-3042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_118272
 ] 

Petar Tahchiev commented on MNG-3042:
-------------------------------------

I have the same problem - I want to extend the surefire plugin and every time I 
run it, I get a null-pointer exception, because the instant variables are null. 
According to maven-inherit plugin I have to propagate the fields using 
reflection. Well, propagation in my case does not work, because the fields in 
the surefire plugin are all private :-(, and I get a:
 
can not access a member of class 
org.apache.maven.plugin.surefire.SurefirePlugin with modifiers "private"

exception. 

Any other suggestions?

> Extending a Mojo Class and used in a new Mojo Project, parameter fields in 
> the parent mojo are not set, this disables reuse of existing mojo project.
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-3042
>                 URL: http://jira.codehaus.org/browse/MNG-3042
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugin API
>            Reporter: Leopoldo Agdeppa III
>             Fix For: Reviewed Pending Version Assignment
>
>
> I have an Existing maven-plugin-a and I want to extend its functionality and 
> put it in maven-plugin-b, so what i did is I put the the maven-plugin-a as a 
> dependecy in maven-plugin-b and extended the mojo class from A, the issue on 
> this is that paramter fields from A is not set, when I used plugin-B, I think 
> this disables reusing and extending of mojos

-- 
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 via email to