Even though the name is WSO2 Carbon Bundle Archetype which has been published to maven central, this is a generic OSGi bundle.
Eg:
Execute the following command. The groupID of the archetype is org.wso2.carbon,
The artifactID of the archetype is org.wso2.carbon.archetypes.bundle and the version of the archetype is 5.0.0
mvn archetype:generate -DarchetypeGroupId=org.wso2.carbon -DarchetypeArtifactId=org.wso2.carbon.archetypes.bundle -DarchetypeVersion=5.0.0 -DgroupId=org.sample -DartifactId=org.sample.project -Dversion=1.0.0 -Dpackage=org.sample.project
This will create a project with the following structure.
org.sample.project
├── pom.xml
└── src
├── main
│ └── java
│ └── org
│ └── sample
│ └── project
│ ├── Greeter.java
│ └── internal
│ └── Activator.java
└── test
└── java
└── org
└── sample
└── project
└── GreeterTest.java
If you do not pass the parameters for the project then the default values will be applied.
The source for the archetype can be found here.
No comments:
Post a Comment