Package org.apache.maven.archetype.model
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
Field sources. -
resources
Field resources. -
testSources
Field testSources. -
testResources
Field testResources. -
siteResources
Field 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
Method addSource.- Parameters:
source- a source object.
-
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
Get the modelEncoding field.- Returns:
- String
-
getResources
Method getResources.- Returns:
- List
-
getSiteResources
Method getSiteResources.- Returns:
- List
-
getSources
Method getSources.- Returns:
- List
-
getTestResources
Method getTestResources.- Returns:
- List
-
getTestSources
Method getTestSources.- Returns:
- List
-
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
Method removeSource.- Parameters:
source- a source object.
-
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
Set files that will go intosrc/main/resources.- Parameters:
resources- a resources object.
-
setSiteResources
Set files that will go intosrc/site.- Parameters:
siteResources- a siteResources object.
-
setSources
Set files that will go intosrc/main/java.- Parameters:
sources- a sources object.
-
setTestResources
Set files that will go intosrc/test/resources.- Parameters:
testResources- a testResources object.
-
setTestSources
Set files that will go intosrc/test/java.- Parameters:
testSources- a testSources object.
-