[forge-issues] [JBoss JIRA] Created: (SEAMFORGE-331) Add support for ProfileBuilder in MavenCoreFacet (or create MavenProfileFacet)

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Tue Sep 27 19:01:26 EDT 2011


Add support for ProfileBuilder in MavenCoreFacet (or create MavenProfileFacet)
------------------------------------------------------------------------------

                 Key: SEAMFORGE-331
                 URL: https://issues.jboss.org/browse/SEAMFORGE-331
             Project: Seam Forge
          Issue Type: Enhancement
          Components: Maven Integration
    Affects Versions: 1.0.0.Beta2
            Reporter: Lincoln Baxter III
            Priority: Minor


{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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the forge-issues mailing list