Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
7.2. Deploy a WAR file for SwitchYard
To prepare a WAR file for deployment to SwitchYard, the SwitchYard component dependencies (switchyard-*.jar) must be excluded as they are provided by the Fuse Service Works container. There are two methods of excluding the SwitchYard dependencies:
Mark the SwitchYard dependencies as provided.To do this, edit the pom.xml file for the WAR file. Mark theswitchyard-*.jardependiencies asprovided.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Next, configureswitchyard-pluginin the pom.xml file:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Configure the Maven WAR plugin to exclude SwitchYard dependenciesAn alternative to marking the SwitchYard dependencies as provided, is to use the Maven WAR plugin to exclude SwitchYard dependencies. Edit the pom.xml file to include the following entry:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Note
The preferred method is option 1, Mark the SwitchYard dependencies as provided.