mywork-model/pom.xml
changeset 16 2d6a668325f9
equal deleted inserted replaced
15:739f329b9e1e 16:2d6a668325f9
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       
     3 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
       
     4 	<modelVersion>4.0.0</modelVersion>
       
     5 	<groupId>ru.indvdum.mywork</groupId>
       
     6 	<artifactId>mywork-model</artifactId>
       
     7 	<name>mywork-model</name>
       
     8 	<packaging>jar</packaging>
       
     9 	<description>mywork-model</description>
       
    10 	<parent>
       
    11 		<groupId>ru.indvdum.mywork</groupId>
       
    12 		<artifactId>mywork-all</artifactId>
       
    13 		<version>0.0.1.0-SNAPSHOT</version>
       
    14 	</parent>
       
    15 	<build>
       
    16 		<plugins>
       
    17 			<plugin>
       
    18 				<artifactId>maven-compiler-plugin</artifactId>
       
    19 				<version>${maven-compiler-plugin.version}</version>
       
    20 				<configuration>
       
    21 					<compilerId>groovy-eclipse-compiler</compilerId>
       
    22 					<compilerArgument>nowarn</compilerArgument>
       
    23 					 <verbose>true</verbose>
       
    24 				</configuration>
       
    25 				<dependencies>
       
    26 					<dependency>
       
    27 						<groupId>org.codehaus.groovy</groupId>
       
    28 						<artifactId>groovy-eclipse-compiler</artifactId>
       
    29 						<version>${groovy-eclipse-compiler.version}</version>
       
    30 					</dependency>
       
    31 				</dependencies>
       
    32 			</plugin>
       
    33 			<plugin>
       
    34 				<groupId>org.codehaus.mojo</groupId>
       
    35 				<artifactId>build-helper-maven-plugin</artifactId>
       
    36 				<version>${build-helper-maven-plugin.version}</version>
       
    37 				<executions>
       
    38 					<execution>
       
    39 						<id>add-source</id>
       
    40 						<phase>generate-sources</phase>
       
    41 						<goals>
       
    42 							<goal>add-source</goal>
       
    43 						</goals>
       
    44 						<configuration>
       
    45 							<sources>
       
    46 								<source>src/main/groovy</source>
       
    47 								<source>src/test/groovy</source>
       
    48 							</sources>
       
    49 						</configuration>
       
    50 					</execution>
       
    51 				</executions>
       
    52 			</plugin>
       
    53 			<plugin>
       
    54 				<groupId>org.codehaus.mojo</groupId>
       
    55 				<artifactId>openjpa-maven-plugin</artifactId>
       
    56 				<configuration>
       
    57 					<includes>**/model/**/*.class</includes>
       
    58 					<addDefaultConstructor>true</addDefaultConstructor>
       
    59 					<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
       
    60 				</configuration>
       
    61 				<executions>
       
    62 					<execution>
       
    63 						<id>enhancer</id>
       
    64 						<phase>process-classes</phase>
       
    65 						<goals>
       
    66 							<goal>enhance</goal>
       
    67 						</goals>
       
    68 					</execution>
       
    69 				</executions>
       
    70 				<dependencies>
       
    71 					<dependency>
       
    72 						<groupId>org.apache.openjpa</groupId>
       
    73 						<artifactId>openjpa</artifactId>
       
    74 						<version>${openjpa.version}</version>
       
    75 					</dependency>
       
    76 				</dependencies>
       
    77 			</plugin>
       
    78 		</plugins>
       
    79 	</build>
       
    80 	<dependencies>
       
    81 		<dependency>
       
    82 			<groupId>org.codehaus.groovy</groupId>
       
    83 			<artifactId>groovy-all</artifactId>
       
    84 			<version>${groovy.version}</version>
       
    85 		</dependency>
       
    86 		<dependency>
       
    87 			<groupId>org.apache.openjpa</groupId>
       
    88 			<artifactId>openjpa</artifactId>
       
    89 			<version>${openjpa.version}</version>
       
    90 		</dependency>
       
    91 		<dependency>
       
    92 			<groupId>commons-dbcp</groupId>
       
    93 			<artifactId>commons-dbcp</artifactId>
       
    94 			<version>${commons-dbcp.version}</version>
       
    95 			<scope>test</scope>
       
    96 		</dependency>
       
    97 		<dependency>
       
    98 			<groupId>org.apache.derby</groupId>
       
    99 			<artifactId>derby</artifactId>
       
   100 			<version>${derby.version}</version>
       
   101 			<scope>test</scope>
       
   102 		</dependency>
       
   103 	</dependencies>
       
   104 </project>