...
1) To create a JBI component as you might have guessed by now - run the mvn command: (needless to say you should create a new directory where you want all your stuff to be generated generated and you have to remove the trailing backshlashes and make it one line)
Code Block |
---|
mvn archetype:create \ Â Â Â Â Â Â Â -DarchetypeGroupId=org.apache.servicemix.tooling \ Â Â Â Â Â Â Â -DarchetypeArtifactId=servicemix-service-engine \ Â Â Â Â Â Â Â -DarchetypeVersion=13.0-incubating-SNAPSHOT \ Â Â Â Â Â Â Â -DgroupId=org.apache.servicemix.package \ Â Â Â Â Â Â Â -DartifactId=servicemix-package |
...
Code Block |
---|
mvn archetype:create \ Â Â Â Â Â Â Â -DarchetypeGroupId=org.apache.servicemix.tooling \ Â Â Â Â Â Â Â -DarchetypeArtifactId=servicemix-service-engine \ Â Â Â Â Â Â Â -DarchetypeVersion=1.0-incubating-SNAPSHOT \ Â Â Â Â Â Â Â -DgroupId=org.apache.servicemix.xslt \ Â Â Â Â Â Â Â -DartifactId=servicemix-xslt |
The version information "3.0-incubating" may have to be changed; just look at any of ServiceMix' pom.xml for the version you are using.
2) After you have successfully run the above command this is what you would end up with
Code Block |
---|
servicemix-xslt\ pom.xml src\ main\ java\ org\ apache\ servicemix\ xslt\ MyBootstrap.java MyComponent.java MyDeployer.java MyEndpoint.java MyLifeCycle.java MySpringComponent.java test\ java\ org\ apache\ servicemix\ xslt\ MySpringComponentTest.java resources\ spring.xml xml |
Now you might be wondering why all the classes have the word "My" prefixed to them. Don't worry these are just driven from the template, you just need to rename them to whatever you want to. Just make sure you change the corresponding resource files, change "My" to whatever prefix that you used for the classes.
...