[
https://jira.codehaus.org/browse/MNG-5328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=321715#comment-321715
]
Robert Scholte commented on MNG-5328:
-------------------------------------
{quote}@execute phase="compile"{quote}
I think you mean {{@phase "compile"}}
With the {{@execute}} you will start/fork a new lifecycle, whereas {{@phase}}
will bind this goal by default to the specified phase. For that reason the name
has changed been changed to {{defaultPhase}} when using annotations.
> maven plugin annotation requiresDependencyResolution
> ----------------------------------------------------
>
> Key: MNG-5328
> URL: https://jira.codehaus.org/browse/MNG-5328
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Plugin API
> Reporter: Jie Wu
>
> maven plugin need to use current project classpath, i tried add dependency
> node under plugin in the {{pom.xml}}. it works fine, but once i tried the
> following:
> {code}
> /**
> * @goal generateDL
> * @threadSafe
> * @requiresDependencyResolution test
> * @execute phase="compile"
> *
> */
> public class GenerateDlMojo extends AbstractMojo {
> {code}
> the current project classpath wasn't added to classloader. Would you please
> help me to resolve this issue?
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira