[
https://issues.jboss.org/browse/FORGE-167?page=com.atlassian.jira.plugin....
]
George Gastaldi updated FORGE-167:
----------------------------------
Fix Version/s: 1.2.3.Final
(was: 1.2.2.Final)
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
Fix For: 1.2.3.Final
{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