pax-create-project -g groupId -a artifactId [-v version] [-o] [-- mvnOpts ...]

Creates a Maven project layout to build and manage an OSGi application, use -o to overwrite an existing project.

  • if no version is given, it is assumed to be 1.0-SNAPSHOT.

Additional Maven options

-DparentId=groupId:artifactIdlook for a different parent POM
-DtargetDirectory=pathalternative location of the project
-Dcontents=groupId:artifactId:version,...include content from selected archetypes
-DremoteRepositories=url listwhere to download the project archetype(s)
-DarchetypeVersion=versionuse a different release of the Pax archetype
-DattachPom=falsedon't add this project as a module
-DcompactIds=falsedon't try to combine name segments

-DparentId is useful when you want to link the new project into an existing non Pax-Construct build.

Examples

pax-create-project -g examples -a spring-osgi-example