archetype:create-from-project

Full name:

org.apache.maven.plugins:maven-archetype-plugin:2.1:create-from-project

Description:

Creates an archetype project from the current project, with a basic integration-test.

Attributes:

  • Requires a Maven project to be executed.
  • Executes as an aggregator plugin.
  • Invokes the execution of the lifecycle phase generate-sources prior to executing itself.

Optional Parameters

Name Type Since Description
archetypeFilteredExtentions String - File extensions which are checked for project's text files (vs binary files).
archetypeLanguages String - Directory names which are checked for project's sources main package.
archetypePostPhase String - The property telling which phase to call on the generated archetype. Interesting values are: package, integration-test, install and deploy.
Default value is: package.
archetypeRegistryFile File - The location of the registry file.
defaultEncoding String - Velocity templates encoding.
Default value is: UTF-8.
interactive boolean - Enable the interactive mode to define the archetype from the project.
Default value is: false.
keepParent boolean - POMs in archetype are created with their initial parent. This property is ignored when preserveCData is true.
localRepository ArtifactRepository - (no description)
outputDirectory File - The directory where the archetype should be created.
packageName String - (no description)
partialArchetype boolean - Create a partial archetype.
preserveCData boolean - Create pom's velocity templates with CDATA preservation. This uses the String.replaceAll() method and risks to have some overly replacement capabilities (beware of '1.0' value).
propertyFile File - The property file that holds the plugin configuration.
testMode boolean - (no description)

Parameter Details

archetypeFilteredExtentions:

File extensions which are checked for project's text files (vs binary files).
  • Type: java.lang.String
  • Required: No
  • Expression: ${archetype.filteredExtentions}

archetypeLanguages:

Directory names which are checked for project's sources main package.
  • Type: java.lang.String
  • Required: No
  • Expression: ${archetype.languages}

archetypePostPhase:

The property telling which phase to call on the generated archetype. Interesting values are: package, integration-test, install and deploy.
  • Type: java.lang.String
  • Required: No
  • Expression: ${archetype.postPhase}
  • Default: package

archetypeRegistryFile:

The location of the registry file.
  • Type: java.io.File
  • Required: No
  • Expression: ${user.home}/.m2/archetype.xml

defaultEncoding:

Velocity templates encoding.
  • Type: java.lang.String
  • Required: No
  • Expression: ${archetype.encoding}
  • Default: UTF-8

interactive:

Enable the interactive mode to define the archetype from the project.
  • Type: boolean
  • Required: No
  • Expression: ${interactive}
  • Default: false

keepParent:

POMs in archetype are created with their initial parent. This property is ignored when preserveCData is true.
  • Type: boolean
  • Required: No
  • Expression: ${archetype.keepParent}

localRepository:

(no description)
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: No
  • Expression: ${localRepository}

outputDirectory:

The directory where the archetype should be created.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/generated-sources/archetype

packageName:

(no description)
  • Type: java.lang.String
  • Required: No
  • Expression: ${packageName}

partialArchetype:

Create a partial archetype.
  • Type: boolean
  • Required: No
  • Expression: ${archetype.partialArchetype}

preserveCData:

Create pom's velocity templates with CDATA preservation. This uses the String.replaceAll() method and risks to have some overly replacement capabilities (beware of '1.0' value).
  • Type: boolean
  • Required: No
  • Expression: ${archetype.preserveCData}

propertyFile:

The property file that holds the plugin configuration.
  • Type: java.io.File
  • Required: No
  • Expression: ${archetype.properties}

testMode:

(no description)
  • Type: boolean
  • Required: No
  • Expression: ${testMode}