Package org.apache.maven.archetype.model
Class ArchetypeModel
- java.lang.Object
-
- org.apache.maven.archetype.model.ArchetypeModel
-
- All Implemented Interfaces:
java.io.Serializable
public class ArchetypeModel extends java.lang.Object implements java.io.Serializable
Describes the assembly layout and packaging.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowPartial
Setting this option totrue
makes it possible to run thearchetype:create
even on existing projects.private java.lang.String
id
The value should be the same as the artifactId in the archetypepom.xml
.private java.lang.String
modelEncoding
Field modelEncoding.private java.util.List<Resource>
resources
Field resources.private java.util.List<Resource>
siteResources
Field siteResources.private java.util.List<Source>
sources
Field sources.private java.util.List<Resource>
testResources
Field testResources.private java.util.List<Source>
testSources
Field testSources.
-
Constructor Summary
Constructors Constructor Description ArchetypeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResource(Resource resource)
Method addResource.void
addSiteResource(Resource resource)
Method addSiteResource.void
addSource(Source source)
Method addSource.void
addTestResource(Resource resource)
Method addTestResource.void
addTestSource(Source source)
Method addTestSource.java.lang.String
getId()
Get the value should be the same as the artifactId in the archetypepom.xml
.java.lang.String
getModelEncoding()
Get the modelEncoding field.java.util.List<Resource>
getResources()
Method getResources.java.util.List<Resource>
getSiteResources()
Method getSiteResources.java.util.List<Source>
getSources()
Method getSources.java.util.List<Resource>
getTestResources()
Method getTestResources.java.util.List<Source>
getTestSources()
Method getTestSources.boolean
isAllowPartial()
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
setId(java.lang.String id)
Set the value should be the same as the artifactId in the archetypepom.xml
.void
setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.void
setResources(java.util.List<Resource> resources)
Set files that will go intosrc/main/resources
.void
setSiteResources(java.util.List<Resource> siteResources)
Set files that will go intosrc/site
.void
setSources(java.util.List<Source> sources)
Set files that will go intosrc/main/java
.void
setTestResources(java.util.List<Resource> testResources)
Set files that will go intosrc/test/resources
.void
setTestSources(java.util.List<Source> testSources)
Set files that will go intosrc/test/java
.
-
-
-
Field Detail
-
id
private java.lang.String id
The value should be the same as the artifactId in the archetypepom.xml
.
-
allowPartial
private boolean allowPartial
Setting this option totrue
makes it possible to run thearchetype:create
even on existing projects.
-
sources
private java.util.List<Source> sources
Field sources.
-
resources
private java.util.List<Resource> resources
Field resources.
-
testSources
private java.util.List<Source> testSources
Field testSources.
-
testResources
private java.util.List<Resource> testResources
Field testResources.
-
siteResources
private java.util.List<Resource> siteResources
Field siteResources.
-
modelEncoding
private java.lang.String modelEncoding
Field modelEncoding.
-
-
Method Detail
-
addResource
public void addResource(Resource resource)
Method addResource.- Parameters:
resource
-
-
addSiteResource
public void addSiteResource(Resource resource)
Method addSiteResource.- Parameters:
resource
-
-
addSource
public void addSource(Source source)
Method addSource.- Parameters:
source
-
-
addTestResource
public void addTestResource(Resource resource)
Method addTestResource.- Parameters:
resource
-
-
addTestSource
public void addTestSource(Source source)
Method addTestSource.- Parameters:
source
-
-
getId
public java.lang.String getId()
Get the value should be the same as the artifactId in the archetypepom.xml
.- Returns:
- String
-
getModelEncoding
public java.lang.String getModelEncoding()
Get the modelEncoding field.- Returns:
- String
-
getResources
public java.util.List<Resource> getResources()
Method getResources.- Returns:
- List
-
getSiteResources
public java.util.List<Resource> getSiteResources()
Method getSiteResources.- Returns:
- List
-
getSources
public java.util.List<Source> getSources()
Method getSources.- Returns:
- List
-
getTestResources
public java.util.List<Resource> getTestResources()
Method getTestResources.- Returns:
- List
-
getTestSources
public java.util.List<Source> 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
public void removeResource(Resource resource)
Method removeResource.- Parameters:
resource
-
-
removeSiteResource
public void removeSiteResource(Resource resource)
Method removeSiteResource.- Parameters:
resource
-
-
removeSource
public void removeSource(Source source)
Method removeSource.- Parameters:
source
-
-
removeTestResource
public void removeTestResource(Resource resource)
Method removeTestResource.- Parameters:
resource
-
-
removeTestSource
public void removeTestSource(Source source)
Method removeTestSource.- Parameters:
source
-
-
setAllowPartial
public void setAllowPartial(boolean allowPartial)
Set setting this option totrue
makes it possible to run thearchetype:create
even on existing projects.- Parameters:
allowPartial
-
-
setId
public void setId(java.lang.String id)
Set the value should be the same as the artifactId in the archetypepom.xml
.- Parameters:
id
-
-
setModelEncoding
public void setModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.- Parameters:
modelEncoding
-
-
setResources
public void setResources(java.util.List<Resource> resources)
Set files that will go intosrc/main/resources
.- Parameters:
resources
-
-
setSiteResources
public void setSiteResources(java.util.List<Resource> siteResources)
Set files that will go intosrc/site
.- Parameters:
siteResources
-
-
setSources
public void setSources(java.util.List<Source> sources)
Set files that will go intosrc/main/java
.- Parameters:
sources
-
-
setTestResources
public void setTestResources(java.util.List<Resource> testResources)
Set files that will go intosrc/test/resources
.- Parameters:
testResources
-
-
setTestSources
public void setTestSources(java.util.List<Source> testSources)
Set files that will go intosrc/test/java
.- Parameters:
testSources
-
-
-