pax:create-project

Create a new OSGi project tree that supports wrapping, compiling and provisioning of bundles

mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=... -DartifactId=... [-Dversion=...]

Mojo Attributes:

  • Executes as an aggregator plugin.

Required Parameters

Name Type Description
artifactId String The artifactId for the new project.
groupId String The groupId for the new project.

Optional Parameters

Name Type Description
archetypeVersion String The archetype version to use, defaults to a version compatible with the current plugin.
attachPom boolean When true, create the necessary POMs to attach it to the current project. Default value is true.
compactIds boolean When true, avoid duplicate elements when combining group and artifact ids. Default value is true.
contents String Comma-separated list of additional archetypes to merge with the current one (use artifactId for Pax-Construct archetypes and groupId:artifactId:version for external artifacts).
m_archetype Archetype Component factory for Maven archetypes.
m_defaultLayout ArtifactRepositoryLayout No description.
m_factory ArtifactFactory Component factory for Maven artifacts
m_repoFactory ArtifactRepositoryFactory Component factory for Maven repositories.
m_resolver ArtifactResolver Component for resolving Maven artifacts
m_source ArtifactMetadataSource Component for resolving Maven metadata
overwrite boolean When true, replace existing files with ones from the new project.
parentId String The logical parent of the new project (use artifactId or groupId:artifactId). Default is no parent.
remoteRepositories String Other remote repositories available for discovering dependencies and extensions.
targetDirectory File Target directory where the project should be created. Default value is ${project.basedir}.
version String The version for the new project. Default value is 1.0-SNAPSHOT.

Parameter Details

archetypeVersion

The archetype version to use, defaults to a version compatible with the current plugin.

  • Type: java.lang.String
  • Required: No
  • Expression: ${archetypeVersion}

artifactId The artifactId for the new project.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${artifactId}

attachPom When true, create the necessary POMs to attach it to the current project.
  • Type: boolean
  • Required: No
  • Expression: ${attachPom}
  • Default: true

compactIds When true, avoid duplicate elements when combining group and artifact ids.
  • Type: boolean
  • Required: No
  • Expression: ${compactIds}
  • Default: true

contents Comma-separated list of additional archetypes to merge with the current one (use artifactId for Pax-Construct archetypes and groupId:artifactId:version for external artifacts).
  • Type: java.lang.String
  • Required: No
  • Expression: ${contents}

groupId The groupId for the new project.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${groupId}

m_archetype Component factory for Maven archetypes.
  • Type: org.apache.maven.archetype.Archetype
  • Required: No

m_defaultLayout No Description.
  • Type: org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout
  • Required: No

m_factory Component factory for Maven artifacts
  • Type: org.apache.maven.artifact.factory.ArtifactFactory
  • Required: No

m_repoFactory Component factory for Maven repositories.
  • Type: org.apache.maven.artifact.repository.ArtifactRepositoryFactory
  • Required: No

m_resolver Component for resolving Maven artifacts
  • Type: org.apache.maven.artifact.resolver.ArtifactResolver
  • Required: No

m_source Component for resolving Maven metadata
  • Type: org.apache.maven.artifact.metadata.ArtifactMetadataSource
  • Required: No

overwrite When true, replace existing files with ones from the new project.
  • Type: boolean
  • Required: No
  • Expression: ${overwrite}

parentId The logical parent of the new project (use artifactId or groupId:artifactId). Default is no parent.
  • Type: java.lang.String
  • Required: No
  • Expression: ${parentId}

remoteRepositories Other remote repositories available for discovering dependencies and extensions.
  • Type: java.lang.String
  • Required: No
  • Expression: ${remoteRepositories}

targetDirectory Target directory where the project should be created.
  • Type: java.io.File
  • Required: No
  • Expression: ${targetDirectory}
  • Default: ${project.basedir}

version The version for the new project.
  • Type: java.lang.String
  • Required: No
  • Expression: ${version}
  • Default: 1.0-SNAPSHOT