Class CreateProjectBuilder
java.lang.Object
org.netbeans.modules.maven.spi.newproject.CreateProjectBuilder
builder for creating a new pom file/project.
- Since:
- 2.98
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static final class
static interface
create pom modeloperations based on the passed context -
Constructor Summary
ConstructorsConstructorDescriptionCreateProjectBuilder
(File projectDir, String groupId, String artifactId, String version) -
Method Summary
Modifier and TypeMethodDescriptionvoid
create()
setPackageName
(String packageName) setPackaging
(String packaging) setParentProject
(org.apache.maven.project.MavenProject parent) sets the parent project, expected to be of "pom" packaging.setProgressHandle
(org.netbeans.api.progress.ProgressHandle handle) setUpdateParent
(boolean update) if true will update the parent project (if found) with the relevant module section addition
-
Constructor Details
-
CreateProjectBuilder
-
-
Method Details
-
setPackaging
-
setPackageName
-
setUpdateParent
if true will update the parent project (if found) with the relevant module section addition- Parameters:
update
-- Returns:
-
setParentProject
sets the parent project, expected to be of "pom" packaging. if not set explicitly, will attempt to find the parent pom in the directory hierarchy- Parameters:
parent
-- Returns:
-
setAdditionalOperations
-
setAdditionalNonPomWork
public CreateProjectBuilder setAdditionalNonPomWork(CreateProjectBuilder.AdditionalChangeHandle action) -
setProgressHandle
-
create
public void create()
-