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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResource
(Resource resource) Method addResource.void
addSiteResource
(Resource resource) Method addSiteResource.void
Method addSource.void
addTestResource
(Resource resource) Method addTestResource.void
addTestSource
(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.boolean
Get setting this option totrue
makes it possible to run thearchetype:create
even on existing projects.void
removeResource
(Resource resource) Method removeResource.void
removeSiteResource
(Resource resource) Method removeSiteResource.void
removeSource
(Source source) Method removeSource.void
removeTestResource
(Resource resource) Method removeTestResource.void
removeTestSource
(Source source) Method removeTestSource.void
setAllowPartial
(boolean allowPartial) Set setting this option totrue
makes it possible to run thearchetype:create
even on existing projects.void
Set the value should be the same as the artifactId in the archetypepom.xml
.void
setModelEncoding
(String modelEncoding) Set the modelEncoding field.void
setResources
(List<Resource> resources) Set files that will go intosrc/main/resources
.void
setSiteResources
(List<Resource> siteResources) Set files that will go intosrc/site
.void
setSources
(List<Source> sources) Set files that will go intosrc/main/java
.void
setTestResources
(List<Resource> testResources) Set files that will go intosrc/test/resources
.void
setTestSources
(List<Source> testSources) Set files that will go intosrc/test/java
.
-
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 totrue
makes it possible to run thearchetype:create
even 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 totrue
makes it possible to run thearchetype:create
even 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.
-