| <?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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-parent</artifactId> |
| <version>1.3-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>camel-jpa</artifactId> |
| <packaging>bundle</packaging> |
| <name>Camel :: JPA</name> |
| <description>Camel JPA support</description> |
| |
| <properties> |
| <camel.osgi.export.pkg>org.apache.camel.component.jpa.*</camel.osgi.export.pkg> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-spring</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.camel</groupId> |
| <artifactId>camel-core</artifactId> |
| <type>test-jar</type> |
| <optional>true</optional> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.springframework</groupId> |
| <artifactId>spring</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging-api</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.persistence</groupId> |
| <artifactId>persistence-api</artifactId> |
| <version>1.0</version> |
| </dependency> |
| |
| |
| <!-- testing --> |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-persistence-jdbc</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-dbcp</groupId> |
| <artifactId>commons-dbcp</artifactId> |
| <version>1.2.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>commons-collections</groupId> |
| <artifactId>commons-collections</artifactId> |
| <version>3.2</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| |
| <!-- lets enhance the classes for OpenJPA (shame it can't do it at runtime!) --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-persistence-jdbc</artifactId> |
| <version>${openjpa-version}</version> |
| </dependency> |
| </dependencies> |
| |
| <executions> |
| <execution> |
| <phase>process-test-classes</phase> |
| <configuration> |
| <tasks> |
| <path id="cp"> |
| <path refid="maven.test.classpath"/> |
| <path refid="maven.compile.classpath"/> |
| <path refid="maven.dependency.classpath"/> |
| </path> |
| <taskdef name="openjpac" classname="org.apache.openjpa.ant.PCEnhancerTask"> |
| <classpath refid="cp"/> |
| </taskdef> |
| |
| <mkdir dir="${basedir}/target/jpa-classes"/> |
| <mkdir dir="${basedir}/target/jpa-test-classes"/> |
| |
| <openjpac directory="${basedir}/target/jpa-classes"> |
| <classpath refid="cp"/> |
| <fileset dir="${basedir}/target/classes"> |
| <include name="org/apache/camel/processor/**/M*.class"/> |
| </fileset> |
| </openjpac> |
| <openjpac directory="${basedir}/target/jpa-test-classes"> |
| <classpath refid="cp"/> |
| <fileset dir="${basedir}/target/test-classes"> |
| <include name="org/apache/camel/examples/*.class"/> |
| </fileset> |
| </openjpac> |
| |
| <copy overwrite="true" todir="${basedir}/target/classes"> |
| <fileset dir="${basedir}/target/jpa-classes"/> |
| </copy> |
| <copy overwrite="true" todir="${basedir}/target/test-classes"> |
| <fileset dir="${basedir}/target/jpa-test-classes"/> |
| </copy> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |