Class ArchetypeModel
java.lang.Object
org.apache.maven.archetype.model.ArchetypeModel
- All Implemented Interfaces:
Serializable
Describes the assembly layout and packaging.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanSetting this option totruemakes it possible to run thearchetype:createeven on existing projects.private StringThe value should be the same as the artifactId in the archetypepom.xml.private StringField modelEncoding.Field resources.Field siteResources.Field sources.Field testResources.Field testSources. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResource(Resource resource) Method addResource.voidaddSiteResource(Resource resource) Method addSiteResource.voidMethod addSource.voidaddTestResource(Resource resource) Method addTestResource.voidaddTestSource(Source source) Method addTestSource.getId()Get the value should be the same as the artifactId in the archetypepom.xml.Get the modelEncoding field.Method getResources.Method getSiteResources.Method getSources.Method getTestResources.Method getTestSources.booleanGet setting this option totruemakes it possible to run thearchetype:createeven on existing projects.voidremoveResource(Resource resource) Method removeResource.voidremoveSiteResource(Resource resource) Method removeSiteResource.voidremoveSource(Source source) Method removeSource.voidremoveTestResource(Resource resource) Method removeTestResource.voidremoveTestSource(Source source) Method removeTestSource.voidsetAllowPartial(boolean allowPartial) Set setting this option totruemakes it possible to run thearchetype:createeven on existing projects.voidSet the value should be the same as the artifactId in the archetypepom.xml.voidsetModelEncoding(String modelEncoding) Set the modelEncoding field.voidsetResources(List<Resource> resources) Set files that will go intosrc/main/resources.voidsetSiteResources(List<Resource> siteResources) Set files that will go intosrc/site.voidsetSources(List<Source> sources) Set files that will go intosrc/main/java.voidsetTestResources(List<Resource> testResources) Set files that will go intosrc/test/resources.voidsetTestSources(List<Source> testSources) Set files that will go intosrc/test/java.
-
Field Details
-
id
The value should be the same as the artifactId in the archetypepom.xml. -
allowPartial
private boolean allowPartialSetting this option totruemakes it possible to run thearchetype:createeven on existing projects. -
sources
-
resources
-
testSources
-
testResources
-
siteResources
-
modelEncoding
Field modelEncoding.
-
-
Constructor Details
-
ArchetypeModel
public ArchetypeModel()
-
-
Method Details
-
addResource
Method addResource.- Parameters:
resource- a resource object.
-
addSiteResource
Method addSiteResource.- Parameters:
resource- a resource object.
-
addSource
-
addTestResource
Method addTestResource.- Parameters:
resource- a resource object.
-
addTestSource
Method addTestSource.- Parameters:
source- a source object.
-
getId
Get the value should be the same as the artifactId in the archetypepom.xml.- Returns:
- String
-
getModelEncoding
-
getResources
-
getSiteResources
-
getSources
-
getTestResources
-
getTestSources
-
isAllowPartial
public boolean isAllowPartial()Get setting this option totruemakes it possible to run thearchetype:createeven on existing projects.- Returns:
- boolean
-
removeResource
Method removeResource.- Parameters:
resource- a resource object.
-
removeSiteResource
Method removeSiteResource.- Parameters:
resource- a resource object.
-
removeSource
-
removeTestResource
Method removeTestResource.- Parameters:
resource- a resource object.
-
removeTestSource
Method removeTestSource.- Parameters:
source- a source object.
-
setAllowPartial
public void setAllowPartial(boolean allowPartial) Set setting this option totruemakes it possible to run thearchetype:createeven on existing projects.- Parameters:
allowPartial- a allowPartial object.
-
setId
Set the value should be the same as the artifactId in the archetypepom.xml.- Parameters:
id- a id object.
-
setModelEncoding
Set the modelEncoding field.- Parameters:
modelEncoding- a modelEncoding object.
-
setResources
-
setSiteResources
-
setSources
-
setTestResources
-
setTestSources
-