| <?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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>registry</artifactId> |
| <version>0.19-SNAPSHOT</version> |
| <relativePath>../pom.xml</relativePath> |
| </parent> |
| |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-registry-core</artifactId> |
| |
| <properties> |
| <derby.version>10.11.1.1</derby.version> |
| <surefire.version>2.18.1</surefire.version> |
| <skipTests>false</skipTests> |
| <mysql.connector.version>5.1.34</mysql.connector.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-data-models</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>net.sf.dozer</groupId> |
| <artifactId>dozer</artifactId> |
| <version>5.4.0</version> |
| <exclusions> |
| <exclusion> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa</artifactId> |
| <version>${openjpa.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <version>${mysql.connector.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derby</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derbyclient</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derbynet</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.derby</groupId> |
| <artifactId>derbytools</artifactId> |
| <version>${derby.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.12</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>${logback.version}</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-commons</artifactId> |
| <version>0.19-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-server-configuration</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.airavata</groupId> |
| <artifactId>airavata-registry-cpi</artifactId> |
| <version>0.19-SNAPSHOT</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ibatis</groupId> |
| <artifactId>ibatis-sqlmap</artifactId> |
| <version>2.3.0</version> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-compiler-plugin</artifactId> |
| <version>3.1</version> |
| <configuration> |
| <source>1.8</source> |
| <target>1.8</target> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-maven-plugin</artifactId> |
| <version>${openjpa.version}</version> |
| <configuration> |
| <includes>**/entities/*.class</includes> |
| <excludes>**/entities/XML*.class</excludes> |
| <addDefaultConstructor>true</addDefaultConstructor> |
| <enforcePropertyRestrictions>true</enforcePropertyRestrictions> |
| </configuration> |
| <executions> |
| <execution> |
| <id>enhancer</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>enhance</goal> |
| </goals> |
| </execution> |
| <execution> |
| <!-- execute with `mvn compile openjpa:sql@generate-sql` or `mvn process-classes` --> |
| <id>generate-sql</id> |
| <configuration> |
| <!-- openjpa:sql doesn't work well with multiple persistence-unit's in persistence.xml, so |
| use this single persistence-unit persistence.xml to list any classes for which SQL schema |
| generation is desired --> |
| <persistenceXmlFile>${basedir}/src/main/resources/META-INF/generate-sql-persistence.xml</persistenceXmlFile> |
| <sqlAction>build</sqlAction> |
| <connectionDriverName>org.apache.derby.jdbc.ClientDriver</connectionDriverName> |
| </configuration> |
| <goals> |
| <goal>sql</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa-maven-plugin</artifactId> |
| <version>2.2.0</version> |
| <configuration> |
| <includes>**/model/*.class</includes> |
| <addDefaultConstructor>true</addDefaultConstructor> |
| <enforcePropertyRestrictions>true</enforcePropertyRestrictions> |
| </configuration> |
| <executions> |
| <execution> |
| <id>enhancer</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>enhance</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.openjpa</groupId> |
| <artifactId>openjpa</artifactId> |
| <version>2.2.0</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <version>${surefire.version}</version> |
| <inherited>true</inherited> |
| <configuration> |
| <failIfNoTests>false</failIfNoTests> |
| <skipTests>${skipTests}</skipTests> |
| <workingDirectory>${project.build.testOutputDirectory}</workingDirectory> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |