This content has been marked as final.
Show 1 reply
-
1. Re: How to add Parent POM to an existing POM using Forge API
jyothiprasadb Apr 25, 2015 11:44 AM (in response to jyothiprasadb)I found the answer after some trail and errors...
Parent p = new Parent(); p.setGroupId("org.codehaus.griffon"); p.setArtifactId("application-master-pom"); p.setVersion("1.0.0"); MavenFacet mavenFacet = getFaceted().getFacet(MavenFacet.class); Model model = mavenFacet.getModel(); model.setParent(p); mavenFacet.setModel(model);