pom.xml 5.5 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4 5 6 7 8 9 10 11 12 13 14
<!-- 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>
15

16 17 18
	<parent>
		<groupId>com.iluwatar</groupId>
		<artifactId>naked-objects</artifactId>
19
		<version>1.14.0-SNAPSHOT</version>
20
	</parent>
21

22
	<artifactId>naked-objects-dom</artifactId>
23

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
			</resource>
			<resource>
				<directory>src/main/java</directory>
				<includes>
					<include>**</include>
				</includes>
				<excludes>
					<exclude>**/*.java</exclude>
				</excludes>
			</resource>
		</resources>
	</build>
40

41 42 43 44 45
	<dependencies>
		<dependency>
			<groupId>org.apache.isis.core</groupId>
			<artifactId>isis-core-applib</artifactId>
		</dependency>
46

47 48 49 50 51
		<dependency>
			<groupId>org.apache.isis.core</groupId>
			<artifactId>isis-core-unittestsupport</artifactId>
			<scope>test</scope>
		</dependency>
52

53 54 55 56 57 58
		<!-- Bytecode libraries (for mocking) -->
		<dependency>
			<groupId>org.objenesis</groupId>
			<artifactId>objenesis</artifactId>
			<scope>test</scope>
		</dependency>
59

60 61 62 63 64
		<dependency>
			<groupId>org.assertj</groupId>
			<artifactId>assertj-core</artifactId>
			<scope>test</scope>
		</dependency>
65

66
	</dependencies>
67

68 69 70 71 72 73 74
	<profiles>
		<profile>
			<id>enhance</id>
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
75
                <datanucleus-maven-plugin.version>4.0.1</datanucleus-maven-plugin.version>
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
			</properties>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<!--This plugin's configuration is used to store Eclipse m2e settings 
								only. It has no influence on the Maven build itself. -->
							<groupId>org.eclipse.m2e</groupId>
							<artifactId>lifecycle-mapping</artifactId>
							<version>1.0.0</version>
							<configuration>
								<lifecycleMappingMetadata>
									<pluginExecutions>
										<pluginExecution>
											<pluginExecutionFilter>
												<groupId>org.datanucleus</groupId>
												<artifactId>datanucleus-maven-plugin</artifactId>
												<versionRange>[${datanucleus-maven-plugin.version},)</versionRange>
												<goals>
													<goal>enhance</goal>
												</goals>
											</pluginExecutionFilter>
											<action>
												<ignore></ignore>
											</action>
										</pluginExecution>
									</pluginExecutions>
								</lifecycleMappingMetadata>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
				<plugins>
					<plugin>
						<groupId>org.datanucleus</groupId>
						<artifactId>datanucleus-maven-plugin</artifactId>
						<version>${datanucleus-maven-plugin.version}</version>
						<configuration>
							<fork>false</fork>
							<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
							<verbose>true</verbose>
							<props>${basedir}/datanucleus.properties</props>
						</configuration>
						<executions>
							<execution>
								<phase>process-classes</phase>
								<goals>
									<goal>enhance</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
			<dependencies>
				<dependency>
					<groupId>org.datanucleus</groupId>
					<artifactId>datanucleus-core</artifactId>
				</dependency>
				<dependency>
					<groupId>org.datanucleus</groupId>
					<artifactId>datanucleus-jodatime</artifactId>
				</dependency>
				<dependency>
					<groupId>org.datanucleus</groupId>
					<artifactId>datanucleus-api-jdo</artifactId>
				</dependency>
			</dependencies>
		</profile>
		<profile>
			<id>isis-validate</id>
			<activation>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.isis.tool</groupId>
						<artifactId>isis-maven-plugin</artifactId>
						<version>1.9.0-SNAPSHOT</version>
						<configuration>
							<isisConfigDir>../webapp/src/main/webapp/WEB-INF</isisConfigDir>
						</configuration>
						<dependencies>
							<dependency>
								<groupId>org.apache.isis.example.application</groupId>
								<artifactId>simpleapp-dom</artifactId>
								<version>1.9.0-SNAPSHOT</version>
							</dependency>
							<!-- ... workaround to avoid conflict with plexus-default (not sure 
								why exclusions in the isis-maven-plugin aren't sufficient, though ... -->
							<dependency>
								<groupId>com.google.guava</groupId>
								<artifactId>guava</artifactId>
								<version>16.0.1</version>
							</dependency>
						</dependencies>
						<executions>
							<execution>
								<phase>test</phase>
								<goals>
									<goal>validate</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
185 186

</project>