[forge-issues] [JBoss JIRA] (FORGE-167) Add support for ProfileBuilder in MavenCoreFacet (or create MavenProfileFacet)

George Gastaldi (JIRA) jira-events at lists.jboss.org
Fri May 3 00:59:53 EDT 2013


     [ https://issues.jboss.org/browse/FORGE-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi closed FORGE-167.
---------------------------------

    Fix Version/s:     (was: 1.2.4.Final)
       Resolution: Won't Fix


Not needed, as the Maven model already provides this feature (as illustrated by the code in the description)
                
> Add support for ProfileBuilder in MavenCoreFacet (or create MavenProfileFacet)
> ------------------------------------------------------------------------------
>
>                 Key: FORGE-167
>                 URL: https://issues.jboss.org/browse/FORGE-167
>             Project: Forge
>          Issue Type: Enhancement
>          Components: Maven Integration
>    Affects Versions: 1.0.0.Beta2
>            Reporter: Lincoln Baxter III
>            Assignee: Paul Bakker
>            Priority: Minor
>              Labels: Starter
>
> {code} MavenPluginFacet mavenPluginFacet = getProject().getFacet(MavenPluginFacet.class);
>       int nrOfPlugins = getNumberOfPlugins();
>       MavenPluginBuilder plugin = MavenPluginBuilder.create()
>                 .setDependency(
>                          DependencyBuilder.create()
>                                   .setGroupId("org.apache.maven.plugins")
>                                   .setArtifactId("maven-site-plugin")
>                                   .setVersion("3.0")
>                 );
>        MavenPluginAdapter mvnPlugin = new MavenPluginAdapter(plugin);
> MavenCoreFacet facet = project.getFacet(MavenCoreFacet.class);
>       Profile profile = new Profile();
>       profile.setId(profileId);
>        profile.getBuild().addPlugin(theplugin);
>      
>       Model pom = facet.getPOM();
>       pom.addProfile(profile);
>        
>       facet.setPOM(pom);
> {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