[forge-issues] [JBoss JIRA] (FORGE-842) Add managed plugin support to MavenPluginFacet
charles SALMON (JIRA)
jira-events at lists.jboss.org
Fri Apr 5 11:46:47 EDT 2013
[ https://issues.jboss.org/browse/FORGE-842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765289#comment-12765289 ]
charles SALMON edited comment on FORGE-842 at 4/5/13 11:44 AM:
---------------------------------------------------------------
What about the plugin "resolution" :
{code:xml}
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
</plugins>
</build>
{code}
Should the {code:java}mavenPluginFacet.getPlugin(DependencyBuilder.create("org.apache.maven.plugins:maven-compiler-plugin")).getVersion(){code}
returns "2.0.2" (currently returns "null").
Or maybe we could implement a getResolvedPlugin() ??
was (Author: charless):
What about the plugin "resolution" :
{code:xml}
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
> Add managed plugin support to MavenPluginFacet
> ----------------------------------------------
>
> Key: FORGE-842
> URL: https://issues.jboss.org/browse/FORGE-842
> Project: Forge
> Issue Type: Story
> Components: Maven Integration
> Reporter: charles SALMON
> Assignee: charles SALMON
>
> Maven offers a way to handle plugins by using the "pluginManagement" feature (similar to the "dependencyManagement" one).
> The idea here is to enhance the MavenPluginFacet with the following methods:
> {code:java}
> List<MavenPlugin> listConfiguredManagedPlugins();
> boolean hasManagedPlugin(Dependency dependency);
> MavenPlugin getManagedPlugin(Dependency dependency);
> void addManagedPlugin(MavenPlugin plugin);
> void removeManagedPlugin(Dependency dependency);
> void updateManagedPlugin(final MavenPlugin plugin);
> {code}
--
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
More information about the forge-issues
mailing list