| <?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>camel-parent</artifactId> |
| <version>2.7.4</version> |
| <relativePath>../../parent</relativePath> |
| </parent> |
| |
| <artifactId>camel-spring</artifactId> |
| <name>Camel :: Spring</name> |
| <description>Camel Spring support</description> |
| <packaging>bundle</packaging> |
| |
| <properties> |
| <camel.osgi.import> |
| !org.apache.camel.spring.*, |
| !org.apache.camel.osgi.*, |
| !org.apache.camel.component, |
| !org.apache.camel.component.event, |
| !org.apache.camel.component.test, |
| !org.apache.camel.component.validator, |
| !org.apache.camel.component.xslt, |
| org.apache.camel.*;${camel.osgi.import.strict.version}, |
| org.osgi.framework;version="[1.3,2)", |
| org.osgi.service.event;resolution:=optional, |
| org.springframework.osgi.*;version="[1.2,2)", |
| org.springframework.*;version="[3,4)", |
| * |
| </camel.osgi.import> |
| <camel.osgi.export> |
| org.apache.camel.spring.*;${camel.osgi.version}, |
| org.apache.camel.osgi.*;${camel.osgi.version}, |
| org.apache.camel.component;${camel.osgi.split.pkg};${camel.osgi.version}, |
| org.apache.camel.component.event;${camel.osgi.split.pkg};${camel.osgi.version}, |
| org.apache.camel.component.test;${camel.osgi.split.pkg};${camel.osgi.version}, |
| org.apache.camel.component.validator;${camel.osgi.split.pkg};${camel.osgi.version}, |
| org.apache.camel.component.xslt;${camel.osgi.split.pkg};${camel.osgi.version}, |
| org.apache.camel.language;${camel.osgi.split.pkg};${camel.osgi.version}, |
| org.apache.camel.language.spel;${camel.osgi.split.pkg};${camel.osgi.version} |
| </camel.osgi.export> |
| <camel.osgi.private.pkg> |
| org.apache.camel.core.osgi*, |
| org.apache.camel.core.xml* |
| </camel.osgi.private.pkg> |
| <camel.osgi.activator> |
| org.apache.camel.osgi.Activator |
| </camel.osgi.activator> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core-xml</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-context</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-aop</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-tx</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core-osgi</artifactId> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.compendium</artifactId> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.osgi</groupId> |
| <artifactId>org.osgi.core</artifactId> |
| <scope>provided</scope> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework.osgi</groupId> |
| <artifactId>spring-osgi-core</artifactId> |
| <optional>true</optional> |
| <exclusions> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>org.springframework.aop</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>org.springframework.beans</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>org.springframework.context</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>org.springframework</groupId> |
| <artifactId>org.springframework.core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- for testing --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-test</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>jsr250-api</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core</artifactId> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring-jdbc</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>hsqldb</groupId> |
| <artifactId>hsqldb</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- for testing Spring AOP at class level --> |
| <dependency> |
| <groupId>org.aspectj</groupId> |
| <artifactId>aspectjrt</artifactId> |
| <version>1.6.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.aspectj</groupId> |
| <artifactId>aspectjweaver</artifactId> |
| <version>1.6.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>cglib</groupId> |
| <artifactId>cglib</artifactId> |
| <version>2.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>asm</groupId> |
| <artifactId>asm</artifactId> |
| <version>3.1</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <!-- for testing with osgi --> |
| <dependency> |
| <groupId>org.springframework.osgi</groupId> |
| <artifactId>spring-osgi-mock</artifactId> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>target/schema</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </resource> |
| <resource> |
| <directory>src/main/resources</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| |
| <plugins> |
| |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <childDelegation>false</childDelegation> |
| <useFile>true</useFile> |
| <forkMode>once</forkMode> |
| <includes> |
| <include>**/*Test.java</include> |
| </includes> |
| <excludes> |
| <!-- TODO FIXME ASAP --> |
| <exclude>**/XXXTest.*</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>package</id> |
| <phase>package</phase> |
| <configuration> |
| <tasks> |
| <echo>Deleting unwanted resources from the test-jar</echo> |
| <delete file="${project.build.directory}/test-classes/log4j.properties" verbose="true" /> |
| <delete file="${project.build.directory}/test-classes/META-INF/spring/*" verbose="true" /> |
| |
| <jar destfile="${project.build.directory}/${project.artifactId}-${project.version}-sources.jar" update="true"> |
| <fileset dir="${basedir}/../camel-core-osgi/src/main/java" includes="**/*" /> |
| <fileset dir="${basedir}/../camel-core-xml/src/main/java" includes="**/*" /> |
| </jar> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- add the sources from camel-core-osgi and camel-core-xml as source code in the camel-spring-sources.jar --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-artifacts</id> |
| <phase>package</phase> |
| <goals> |
| <goal>attach-artifact</goal> |
| </goals> |
| <configuration> |
| <artifacts> |
| <artifact> |
| <file>${project.build.directory}/schema/camel-spring.xsd</file> |
| <type>xsd</type> |
| </artifact> |
| </artifacts> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- generate the attached tests jar --> |
| <plugin> |
| <artifactId>maven-jar-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <!-- TODO: this doesn't work - if ever we can figure out the maven ninja to get it working --> |
| <!-- TODO: we can zap the Ant package phase stuff above --> |
| <excludes> |
| <exclude>**/*/log4j.properties</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| </plugins> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <configuration> |
| <artifactItems> |
| <artifactItem> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-spring</artifactId> |
| <version>${project.version}</version> |
| <type>jar</type> |
| <overWrite>false</overWrite> |
| <outputDirectory>${project.build.directory}/schema</outputDirectory> |
| <includes>*.xsd</includes> |
| </artifactItem> |
| </artifactItems> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>release</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>package</id> |
| <phase>package</phase> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <links> |
| <link>http://download.oracle.com/javase/6/docs/api/</link> |
| <link>http://download.oracle.com/javaee/6/api/</link> |
| <link>http://static.springsource.org/spring/docs/3.0.5.RELEASE/api/</link> |
| </links> |
| <stylesheetfile>${basedir}/../../etc/css/stylesheet.css</stylesheetfile> |
| <linksource>true</linksource> |
| <source>1.6</source> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <!-- The next three profiles are used to bypass the schemagen plugin on HP and IBM JDKs. |
| |
| TODO: Whenever Maven supports profile activations based on multiple properties, we |
| should combine the on-ibmjdk and on-hpjdk profiles as they do exactly the same thing. --> |
| |
| <profile> |
| <id>enable-schemagen</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <inherited>true</inherited> |
| <executions> |
| <execution> |
| <id>process-sources</id> |
| <phase>process-sources</phase> |
| <configuration> |
| <tasks> |
| <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask" classpathref="maven.plugin.classpath" /> |
| |
| <echo>Copying code together for the XSD generation</echo> |
| <mkdir dir="${project.build.directory}/schema-src" /> |
| <copy todir="${project.build.directory}/schema-src"> |
| <fileset dir="${basedir}/src/main/java"> |
| <include name="org/apache/camel/spring/Camel*.java" /> |
| <include name="org/apache/camel/spring/ErrorHandler*.java" /> |
| <include name="org/apache/camel/spring/package-info.java" /> |
| </fileset> |
| <fileset dir="${basedir}/../camel-core-xml/src/main/java"> |
| <include name="org/apache/camel/core/xml/*.java" /> |
| </fileset> |
| <fileset dir="${basedir}/../../camel-core/src/main/java"> |
| <include name="org/apache/camel/model/**/*.java" /> |
| <include name="org/apache/camel/ExchangePattern.java" /> |
| <include name="org/apache/camel/LoggingLevel.java" /> |
| <include name="org/apache/camel/ManagementStatisticsLevel.java" /> |
| <include name="org/apache/camel/ShutdownRoute.java" /> |
| <include name="org/apache/camel/ShutdownRunningTask.java" /> |
| <include name="org/apache/camel/ThreadPoolRejectedPolicy.java" /> |
| <include name="org/apache/camel/WaitForTaskToComplete.java" /> |
| <include name="org/apache/camel/package-info.java" /> |
| </fileset> |
| </copy> |
| |
| <echo>Generating XSD schema</echo> |
| <mkdir dir="${project.build.directory}/schema" /> |
| <schemagen srcdir="${project.build.directory}/schema-src" destdir="${project.build.directory}/schema"> |
| <schema namespace="http://camel.apache.org/schema/spring" file="camel-spring.xsd" /> |
| <classpath refid="maven.compile.classpath" /> |
| </schemagen> |
| <copy file="${project.build.directory}/schema/camel-spring.xsd" tofile="${project.build.directory}/schema/camel-spring-v${camel.schema.version}.xsd" /> |
| <replace file="${project.build.directory}/schema/camel-spring-v${camel.schema.version}.xsd" token="http://camel.apache.org/schema/spring" value="http://camel.apache.org/schema/spring/v${camel.schema.version}" /> |
| |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>on-ibmjdk</id> |
| <activation> |
| <property> |
| <name>java.vendor</name> |
| <value>IBM Corporation</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>on-hpjdk</id> |
| <activation> |
| <property> |
| <name>java.vendor</name> |
| <value>Hewlett-Packard Co.</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>unpack</id> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>unpack</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <configuration> |
| <links> |
| <link>http://download.oracle.com/javase/6/docs/api/</link> |
| <link>http://download.oracle.com/javaee/6/api/</link> |
| <link>http://static.springsource.org/spring/docs/3.0.5.RELEASE/api/</link> |
| <link>http://camel.apache.org/maven/camel-core/apidocs/</link> |
| </links> |
| <stylesheetfile>${basedir}/../../etc/css/stylesheet.css</stylesheetfile> |
| <linksource>true</linksource> |
| <maxmemory>256m</maxmemory> |
| <source>1.6</source> |
| |
| <groups> |
| <group> |
| <title>Camel Spring Classes</title> |
| <packages>org.apache.camel.spring</packages> |
| </group> |
| <group> |
| <title>Spring Remoting Classes</title> |
| <packages>org.apache.camel.spring.remoting</packages> |
| </group> |
| <group> |
| <title>Camel Components</title> |
| <packages>org.apache.camel.component:org.apache.camel.component.*</packages> |
| </group> |
| <group> |
| <title>Camel SPI implementations for Spring</title> |
| <packages>org.apache.camel.spring.spi</packages> |
| </group> |
| <group> |
| <title>Spring Namespace Handling Code</title> |
| <packages>org.apache.camel.spring.handler</packages> |
| </group> |
| <group> |
| <title>Utility classes</title> |
| <packages>org.apache.camel.spring.util:org.apache.camel.spring.factory</packages> |
| </group> |
| </groups> |
| </configuration> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| </project> |