...
Once you have configured these steps you can run mvn install and you should find that both a jar and zip version of the service unit are created, this is to allow you to reference the SU as a dependency on the Service Assembly.
Code Block |
---|
Maven Log - Missing
|
Remember that a Service Unit is pretty useless outside a Service Assembly
The maven plugin will generate the ServiceUnit jbi descritor if the component contains a ServiceUnitAnalyzer. In some cases, the ServiceUnitAnalyzer may fail to create the needed informations and generate an exception (if the service unit requires some runtime dependencies, such as JNDI objects for example). When such a problem happen, you can disable the jbi.xml
generation by using the following configuration:
Code Block | ||
---|---|---|
| ||
<plugin>
<groupId>org.apache.servicemix.tooling</groupId>
<artifactId>jbi-maven-plugin</artifactId>
<version>1.0-incubating-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<useServiceUnitAnalyzer>false</useServiceUnitAnalyzer>
</configuration>
</plugin>
|