Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Finding artifacts for plugin dependencies.

Ian,

call the getPluginArtifacts method: it returns a Set<Artifact> for the plugins.

Regards
Jeff MAURY

On Wed, Jul 13, 2011 at 6:51 PM, Ian Robertson <irobertson@xxxxxxxxxxxxx> wrote:
I'm writing a ProjectConfigurator (extending
AbstractProjectConfigurator), and one of the things I need to be able to
do is to locate an artifact which is a dependency of a maven plugin. If
request is the ProjectConfigurationRequest parameter passed to
configure, then I can locate the plugin via
request.getMavenProject().getBuildPlugins(), and I can further get
dependencies from the plugin by calling getDependencies on the plugin.
However, what I need is the actual resolved
org.apache.maven.artifact.Artifact. If these were dependencies of the
project, I could call get getArtifacts; what's the solution for plugin
dependencies?

 - Ian


CONFIDENTIALITY NOTICE:  This message is intended only for the use and review of the individual or entity to which it is addressed and may contain information that is privileged and confidential.  If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message solely to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify sender immediately by telephone or return email.  Thank you.
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev



--
"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top