archetype:create-from-project

Full name:

org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create-from-project

Description:

Creates sample archetype from current project.

Attributes:

  • Requires a Maven 2.0 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.
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 - (no description)
packageName String - (no description)
partialArchetype boolean - Create a partial archetype.
preserveCData boolean - Create pom's velocity templates with CDATA preservasion. This uses the String replaceAll method and risk 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}

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 :

(no description)

  • Type: java.io.File
  • Required: No
  • Expression: ${basedir}/target

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 preservasion. This uses the String replaceAll method and risk 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}