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:
| Name | Type | Description |
|---|---|---|
| artifactId | String |
The artifactId for the new project. |
| groupId | String |
The groupId for the new project. |
| 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. |
The archetype version to use, defaults to a version compatible with the current plugin.
java.lang.StringNo${archetypeVersion}java.lang.StringYes${artifactId}booleanNo${attachPom}truebooleanNo${compactIds}truejava.lang.StringNo${contents}java.lang.StringYes${groupId}org.apache.maven.archetype.ArchetypeNoorg.apache.maven.artifact.repository.layout.ArtifactRepositoryLayoutNoorg.apache.maven.artifact.factory.ArtifactFactoryNoorg.apache.maven.artifact.repository.ArtifactRepositoryFactoryNoorg.apache.maven.artifact.resolver.ArtifactResolverNoorg.apache.maven.artifact.metadata.ArtifactMetadataSourceNobooleanNo${overwrite}java.lang.StringNo${parentId}java.lang.StringNo${remoteRepositories}java.io.FileNo${targetDirectory}${project.basedir}java.lang.StringNo${version}1.0-SNAPSHOT