| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>examples</artifactId> |
| <version>2.18.1</version> |
| </parent> |
| |
| <artifactId>camel-example-cdi-rest-servlet</artifactId> |
| <name>Camel :: Example :: CDI :: REST :: Servlet</name> |
| <description>REST DSL / Servlet with CDI example</description> |
| <packaging>war</packaging> |
| |
| <dependencies> |
| |
| <!-- CDI API --> |
| <dependency> |
| <groupId>javax.enterprise</groupId> |
| <artifactId>cdi-api</artifactId> |
| <version>${cdi-api-1.2-version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- Camel --> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-cdi</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-servlet</artifactId> |
| <scope>runtime</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.tomcat.embed</groupId> |
| <artifactId>tomcat-embed-logging-juli</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- logging --> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-api</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-core</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-slf4j-impl</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-jcl</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-web</artifactId> |
| <scope>runtime</scope> |
| </dependency> |
| |
| <!-- test --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.hamcrest</groupId> |
| <artifactId>java-hamcrest</artifactId> |
| <version>${hamcrest-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.junit</groupId> |
| <artifactId>arquillian-junit-container</artifactId> |
| <version>${arquillian-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.testenricher</groupId> |
| <artifactId>arquillian-testenricher-resource</artifactId> |
| <version>${arquillian-version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.shrinkwrap.descriptors</groupId> |
| <artifactId>shrinkwrap-descriptors-depchain</artifactId> |
| <version>${shrinkwrap-descriptors-version}</version> |
| <type>pom</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.weld.servlet</groupId> |
| <artifactId>weld-servlet</artifactId> |
| <version>${weld2-version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <profiles> |
| <profile> |
| <id>jetty</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-webapp</artifactId> |
| <version>${jetty9-version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-annotations</artifactId> |
| <version>${jetty9-version}</version> |
| <scope>runtime</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-jetty-embedded-9</artifactId> |
| <version>1.0.0.CR2</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>org.jboss.arquillian.container</groupId> |
| <artifactId>arquillian-container-spi</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| |
| <build> |
| <plugins> |
| <!-- allows running this example with mvn jetty:run --> |
| <plugin> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-maven-plugin</artifactId> |
| <version>${jetty9-version}</version> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |