Page History
...
To use the maven archetype to generate the Maven project template and sample connector code, run the following command in the directory where you want to create the connector on your local machine:
Code Block mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeGroupId=org.wso2.carbon.extension.archetype -DarchetypeArtifactId=org.wso2.carbon.extension.esb.connector-archetype -DarchetypeVersion=2.0.4 -DgroupId=org.wso2.carbon.esb.connector -DartifactId=org.wso2.carbon.esb.connector.helloworld -Dversion=1.0.0 -DarchetypeRepository=http://maven.wso2.org/nexus/content/repositories/wso2-public/
Above is tested with Apache Maven 3.0.5.
Note If maven version is 2.x.x, use the following command in the directory where you want to create the connector on your local machine:
mvn archetype:generate -DarchetypeGroupId=org.wso2.carbon.extension.archetype -DarchetypeArtifactId=org.wso2.carbon.extension.esb.connector-archetype -DarchetypeVersion=
2.0
.4
-DgroupId=org.wso2.carbon.esb.connector -DartifactId=org.wso2.carbon.connector.helloworld -Dversion=
1.0
.
0
-DarchetypeRepository=http:
//maven.wso2.org/nexus/content/repositories/wso2-public/
- When prompted, enter a name for the connector. Specify the name in upper camel case, such as
HelloWorld
. Typey
to confirm.
...