pom.xml 3.38 KB
<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>
	<artifactId>moya-database</artifactId>
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<executions>
					<execution>
						<id>generate-entity-metamodel</id>
						<phase>generate-sources</phase>
					</execution>
				</executions>
			</plugin>


			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>3.0.0</version>
				<executions>
					<execution>
						<id>add-source</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>${project.build.directory}/generated-sources/annotations/</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>

        <configuration>
          <useIncrementalCompilation>false</useIncrementalCompilation>
        </configuration>
      </plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.eclipse.persistence</groupId>
			<artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId>
			<version>2.5.2-RC1</version>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>fi.codecrew.moya</groupId>
			<artifactId>moya-utils</artifactId>
			<version>1.2-SNAPSHOT</version>
		</dependency>
		<dependency>
			<groupId>org.ancoron.postgresql</groupId>
			<artifactId>org.ancoron.postgresql.jpa</artifactId>
			<version>9.1.901.jdbc4.1-rc9</version>
			<exclusions>
				<exclusion>
					<artifactId>javax.persistence</artifactId>
					<groupId>org.eclipse.persistence</groupId>
				</exclusion>
				<exclusion>
					<artifactId>org.eclipse.persistence.osgi</artifactId>
					<groupId>org.eclipse.persistence</groupId>
				</exclusion>
				<exclusion>
					<artifactId>org.eclipse.persistence.core</artifactId>
					<groupId>org.eclipse.persistence</groupId>
				</exclusion>
				<exclusion>
					<artifactId>org.postgresql</artifactId>
					<groupId>org.ancoron.postgresql</groupId>
				</exclusion>
				<exclusion>
					<artifactId>org.postgresql.net</artifactId>
					<groupId>org.ancoron.postgresql</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.postgresql</groupId>
			<artifactId>postgresql</artifactId>
			<version>9.3-1102-jdbc41</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.ancoron.postgresql</groupId>
			<artifactId>org.postgresql.net</artifactId>
			<version>9.1.901.jdbc4.1-rc9</version>
			<exclusions>
				<exclusion>
					<artifactId>org.postgresql</artifactId>
					<groupId>org.ancoron.postgresql</groupId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>org.eclipse.persistence</groupId>
			<artifactId>org.eclipse.persistence.core</artifactId>
			<version>2.5.2-RC1</version>
			<scope>provided</scope>
		</dependency>
	</dependencies>
	<parent>
		<groupId>fi.codecrew.moya</groupId>
		<artifactId>moya-parent</artifactId>
		<version>1.2-SNAPSHOT</version>
		<relativePath>../moya-parent/pom.xml</relativePath>
	</parent>
</project>