[ 
https://issues.apache.org/jira/browse/ARTEMIS-3967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Clebert Suconic updated ARTEMIS-3967:
-------------------------------------
    Fix Version/s: 2.26.0
                       (was: 3.0.0)

> Camel WAR pom.xml file incorrect and incomplete
> -----------------------------------------------
>
>                 Key: ARTEMIS-3967
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3967
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>    Affects Versions: 2.24.0
>            Reporter: Aaron Steigerwald
>            Assignee: Justin Bertram
>            Priority: Major
>             Fix For: 2.26.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The Camel WAR {{pom.xml}} file uses Camel 3.16.0. However, the {{pom.xml}} 
> file is incorrect and incomplete. The incorrect part is it specifies 2.20.0 
> for camel-jms. The incomplete part is that Camel 3.x is much more modular 
> than 2.x and requires specifying individual modules. In addition to 
> camel-spring and camel-jms that are specified the following are needed for 
> everyone:
> * camel-spring-xml (for reading XML config files)
> * camel-jmx (for JMX integration, which allows Artemis's HawtIO UI to 
> interface with the Camel config)
>  
> The following are needed for my {{camelApplicationContext.xml}} file and may 
> be common enough to include for everyone:
> * camel-core-languages (for <simple> element filter rules)
> * camel-xpath (for <xpath> element filter rules).
> The following {{pom.xml}} file worked for me:
> {code:xml}
> <?xml version='1.0'?>
> <!--
> Licensed to the Apache Software Foundation (ASF) under one
> or more contributor license agreements.  See the NOTICE file
> distributed with this work for additional information
> regarding copyright ownership.  The ASF licenses this file
> to you under the Apache License, Version 2.0 (the
> "License"); you may not use this file except in compliance
> with the License.  You may obtain a copy of the License at
>   [http://www.apache.org/licenses/LICENSE-2.0]
> Unless required by applicable law or agreed to in writing,
> software distributed under the License is distributed on an
> "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> KIND, either express or implied.  See the License for the
> specific language governing permissions and limitations
> under the License.
> -->
> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> [http://maven.apache.org/maven-v4_0_0.x]
> sd">
>    <modelVersion>4.0.0</modelVersion>
>    <parent>
>       <groupId>org.apache.activemq.examples.broker.camel</groupId>
>       <artifactId>camel</artifactId>
>       <version>2.24.0</version>
>    </parent>
>    <artifactId>camel-war</artifactId>
>    <packaging>war</packaging>
>    <name>ActiveMQ Artemis Camel WAR Application</name>
>    <properties>
>       <activemq.basedir>${project.basedir}/../../../../..</activemq.basedir>
>    </properties>
>    <dependencies>
>       <dependency>
>          <groupId>org.springframework</groupId>
>          <artifactId>spring-web</artifactId>
>          <version>${spring.version}</version>
>       </dependency>
>       <dependency>
>          <groupId>org.springframework</groupId>
>          <artifactId>spring-tx</artifactId>
>          <version>${spring.version}</version>
>       </dependency>
>       <dependency>
>          <groupId>org.springframework</groupId>
>          <artifactId>spring-context</artifactId>
>       </dependency>
>       <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-spring</artifactId>
>          <version>3.16.0</version>
>          <exclusions>
>             <exclusion>
>                <groupId>org.slf4j</groupId>
>                <artifactId>slf4j-api</artifactId>
>             </exclusion>
>          </exclusions>
>       </dependency>
>       <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-spring-xml</artifactId>
>          <version>3.16.0</version>
>          <exclusions>
>             <exclusion>
>                <groupId>org.slf4j</groupId>
>                <artifactId>slf4j-api</artifactId>
>             </exclusion>
>          </exclusions>
>       </dependency>
>       <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-core-languages</artifactId>
>          <version>3.16.0</version>
>          <exclusions>
>             <exclusion>
>                <groupId>org.slf4j</groupId>
>                <artifactId>slf4j-api</artifactId>
>             </exclusion>
>          </exclusions>
>       </dependency>
>       <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-xpath</artifactId>
>          <version>3.16.0</version>
>          <exclusions>
>             <exclusion>
>                <groupId>org.slf4j</groupId>
>                <artifactId>slf4j-api</artifactId>
>             </exclusion>
>          </exclusions>
>       </dependency>
>       <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-jmx</artifactId>
>          <version>3.16.0</version>
>          <exclusions>
>             <exclusion>
>                <groupId>org.slf4j</groupId>
>                <artifactId>slf4j-api</artifactId>
>             </exclusion>
>          </exclusions>
>       </dependency>
>       <dependency>
>          <groupId>org.apache.camel</groupId>
>          <artifactId>camel-jms</artifactId>
>          <version>3.16.0</version>
>          <exclusions>
>             <exclusion>
>                <groupId>org.slf4j</groupId>
>                <artifactId>slf4j-api</artifactId>
>             </exclusion>
>             <exclusion>
>                <groupId>org.apache.geronimo.specs</groupId>
>                <artifactId>geronimo-jms_2.0_spec</artifactId>
>             </exclusion>
>          </exclusions>
>       </dependency>
>    </dependencies>
> </project>{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to