Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleDeploying Dependencies

If you are working with the jbi:projectDeploy you should not that you may want to disable dependency deployment, if you are deploying to a server which has other components sharing these dependencies they you can get problems while trying to undeploy and redeploy them. Look for the plugin section for the jbi-maven-plugin and under configuration add a new element called deployDependencies with a value of false, this is usually in your service assembly's pom.xml or your component's. This setting will stop the plugin for undeploying and redeploying dependencies.

Starting from 3.0.1, the following options are available for customizing either from the pom.xml or from the command line:

Info
titleOptions

Name

Description

Default value

deployDependencies

Deploy all dependencies. If set to false, the plugin will only deploy the current artifact.

true

deferExceptions

This option instructs the plugin to use ServiceMix hot deployer feature, so that you can update a shared-lbrary or component without having to shutdown all dependent components or assemblies. If this property is set to false, exceptions may occur if some of the deployed artifacts are already used by other previously deployed artifacts.

true

forceUpdate

If set to true, all artifacts will be deployed, even those already deployed. Using default value will only deploy missing dependencies

false

deployChildren

When using from the command line in a reactor build, the plugin will scan all modules for jbi artifacts to deploy.

true

To override a default value from the command line, use the following syntax example:

No Format

mvn jbi:projectDeploy -DforceUpdate=true

mvn jbi:servicemix

If you quickly want to get up and running with Apache ServiceMix the best way is to use this goal.  As an extension of the deployProject goal is works in much the same way,  the difference is that this goal downloads and starts a copy of Apache ServiceMix within Maven so you don't need to have a version installed,  this can be very useful if you are working on trying out functionality and want to simply test your projects. 

...