archetype:create-from-project

Builds archetype containers based from an existing Maven project (currently under development).

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.

Required Parameters

Name Type Description
archetypeProperties File Contains Archetype Properties. Default value is ${basedir}/src/main/archetype/archetype.properties.
localRepository ArtifactRepository Maven's local repository.
project MavenProject The Maven Project to be used as the basis for the creating of the archetype.
targetDirectory File Output build directory. Default value is ${project.build.directory}.

Optional Parameters

Name Type Description
archetypeCreator ArchetypeCreator Maven ArchetypeCreator
projectHelper MavenProjectHelper Maven ProjectHelper

Parameter Details

archetypeCreator

Maven ArchetypeCreator

  • Type: org.apache.maven.archetype.ArchetypeCreator
  • Required: No

archetypeProperties Contains Archetype Properties.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${archetypeProperties}
  • Default: ${basedir}/src/main/archetype/archetype.properties

localRepository Maven's local repository.
  • Type: org.apache.maven.artifact.repository.ArtifactRepository
  • Required: Yes
  • Expression: ${localRepository}

project The Maven Project to be used as the basis for the creating of the archetype.
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • Expression: ${project}

projectHelper Maven ProjectHelper
  • Type: org.apache.maven.project.MavenProjectHelper
  • Required: No

targetDirectory Output build directory.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${targetDirectory}
  • Default: ${project.build.directory}