pom.xml
author indvdum (gotoindvdum@gmail.com)
Wed, 23 Nov 2011 17:25:20 +0300
changeset 15 739f329b9e1e
parent 13 ad6ffc054537
child 16 2d6a668325f9
permissions -rw-r--r--
pom
     1 <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">
     2 	<modelVersion>4.0.0</modelVersion>
     3 	<groupId>ru.indvdum</groupId>
     4 	<artifactId>mywork</artifactId>
     5 	<version>0.0.1-SNAPSHOT</version>
     6 	<description>My Work</description>
     7 	<properties>
     8 		<jetty.version>6.1.26</jetty.version>
     9 		<vaadin.version>6.5.0</vaadin.version>
    10 		<gwt.version>2.1.1</gwt.version>
    11 		<oracle.jdbc.version>10.1.0.5.0</oracle.jdbc.version>
    12 		<openjpa.version>2.1.1</openjpa.version>
    13 		<commons-dbcp.version>1.4</commons-dbcp.version>
    14 		<derby.version>10.8.2.2</derby.version>
    15 		<groovy.version>1.8.0</groovy.version>
    16 		<maven-compiler-plugin.version>2.3.2</maven-compiler-plugin.version>
    17 		<groovy-eclipse-compiler.version>2.5.1-1</groovy-eclipse-compiler.version>
    18 		<build-helper-maven-plugin.version>1.5</build-helper-maven-plugin.version>
    19 		<slf4j-simple.version>1.6.4</slf4j-simple.version>
    20 		<commons-configuration.version>1.7</commons-configuration.version>
    21 		<maven-resources-plugin.version>2.5</maven-resources-plugin.version>
    22 		<junit.version>4.10</junit.version>
    23 	</properties>
    24 	<build>
    25 		<resources>
    26 			<resource>
    27 				<directory>src/main/resources</directory>
    28 				<filtering>false</filtering>
    29 			</resource>
    30 		</resources>
    31 		<plugins>
    32 			<plugin>
    33 				<artifactId>maven-compiler-plugin</artifactId>
    34 				<version>${maven-compiler-plugin.version}</version>
    35 				<configuration>
    36 					<compilerId>groovy-eclipse-compiler</compilerId>
    37 					<compilerArgument>nowarn</compilerArgument>
    38 					 <verbose>true</verbose>
    39 				</configuration>
    40 				<dependencies>
    41 					<dependency>
    42 						<groupId>org.codehaus.groovy</groupId>
    43 						<artifactId>groovy-eclipse-compiler</artifactId>
    44 						<version>${groovy-eclipse-compiler.version}</version>
    45 					</dependency>
    46 				</dependencies>
    47 			</plugin>
    48 			<plugin>
    49 				<groupId>org.codehaus.mojo</groupId>
    50 				<artifactId>build-helper-maven-plugin</artifactId>
    51 				<version>${build-helper-maven-plugin.version}</version>
    52 				<executions>
    53 					<execution>
    54 						<id>add-source</id>
    55 						<phase>generate-sources</phase>
    56 						<goals>
    57 							<goal>add-source</goal>
    58 						</goals>
    59 						<configuration>
    60 							<sources>
    61 								<source>src/main/groovy</source>
    62 								<source>src/test/groovy</source>
    63 							</sources>
    64 						</configuration>
    65 					</execution>
    66 				</executions>
    67 			</plugin>
    68 			<plugin>
    69 				<groupId>org.codehaus.mojo</groupId>
    70 				<artifactId>openjpa-maven-plugin</artifactId>
    71 				<configuration>
    72 					<includes>**/model/**/*.class</includes>
    73 					<addDefaultConstructor>true</addDefaultConstructor>
    74 					<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
    75 				</configuration>
    76 				<executions>
    77 					<execution>
    78 						<id>enhancer</id>
    79 						<phase>process-classes</phase>
    80 						<goals>
    81 							<goal>enhance</goal>
    82 						</goals>
    83 					</execution>
    84 				</executions>
    85 				<dependencies>
    86 					<dependency>
    87 						<groupId>org.apache.openjpa</groupId>
    88 						<artifactId>openjpa</artifactId>
    89 						<version>${openjpa.version}</version>
    90 					</dependency>
    91 				</dependencies>
    92 			</plugin>
    93 			<plugin>
    94 				<groupId>org.apache.maven.plugins</groupId>
    95 				<artifactId>maven-resources-plugin</artifactId>
    96 				<version>${maven-resources-plugin.version}</version>
    97 				<configuration>
    98 					<encoding>UTF-8</encoding>
    99 				</configuration>
   100 			</plugin>
   101 			<plugin>
   102 				<artifactId>maven-source-plugin</artifactId>
   103 				<configuration>
   104 					<attach>true</attach>
   105 				</configuration>
   106 				<executions>
   107 					<execution>
   108 						<phase>generate-sources</phase>
   109 						<goals>
   110 							<goal>jar</goal>
   111 						</goals>
   112 					</execution>
   113 				</executions>
   114 			</plugin>
   115 			<plugin>
   116 				<groupId>org.codehaus.mojo</groupId>
   117 				<artifactId>exec-maven-plugin</artifactId>
   118 				<version>1.2</version>
   119 				<executions>
   120 					<execution>
   121 						<goals>
   122 							<goal>exec</goal>
   123 						</goals>
   124 					</execution>
   125 				</executions>
   126 				<configuration>
   127 					<executable>java</executable>
   128 					<arguments>
   129 						<argument>-classpath</argument>
   130 						<classpath/>
   131 						<argument>ru.indvdum.mywork.MyWork</argument>
   132 					</arguments>
   133 				</configuration>
   134 			</plugin>
   135 		</plugins>
   136 		<pluginManagement>
   137 			<plugins>
   138 				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
   139 				<plugin>
   140 					<groupId>org.eclipse.m2e</groupId>
   141 					<artifactId>lifecycle-mapping</artifactId>
   142 					<version>1.0.0</version>
   143 					<configuration>
   144 						<lifecycleMappingMetadata>
   145 							<pluginExecutions>
   146 								<pluginExecution>
   147 									<pluginExecutionFilter>
   148 										<groupId>
   149 											org.codehaus.mojo
   150 										</groupId>
   151 										<artifactId>
   152 											openjpa-maven-plugin
   153 										</artifactId>
   154 										<versionRange>
   155 											[1.2,)
   156 										</versionRange>
   157 										<goals>
   158 											<goal>enhance</goal>
   159 										</goals>
   160 									</pluginExecutionFilter>
   161 									<action>
   162 										<ignore></ignore>
   163 									</action>
   164 								</pluginExecution>
   165 							</pluginExecutions>
   166 						</lifecycleMappingMetadata>
   167 					</configuration>
   168 				</plugin>
   169 			</plugins>
   170 		</pluginManagement>
   171 	</build>
   172 	<dependencies>
   173 		<dependency>
   174 			<groupId>org.slf4j</groupId>
   175 			<artifactId>slf4j-simple</artifactId>
   176 			<version>${slf4j-simple.version}</version>
   177 		</dependency>
   178 		<dependency>
   179 			<groupId>junit</groupId>
   180 			<artifactId>junit</artifactId>
   181 			<version>${junit.version}</version>
   182 			<scope>test</scope>
   183 		</dependency>
   184 		<dependency>
   185 			<groupId>org.mortbay.jetty</groupId>
   186 			<artifactId>jetty</artifactId>
   187 			<version>${jetty.version}</version>
   188 		</dependency>
   189 		<dependency>
   190 			<groupId>com.vaadin</groupId>
   191 			<artifactId>vaadin</artifactId>
   192 			<version>${vaadin.version}</version>
   193 		</dependency>
   194 		<dependency>
   195 			<groupId>com.vaadin.addon</groupId>
   196 			<artifactId>jpacontainer-addon-agpl-3.0</artifactId>
   197 			<version>1.2.0</version>
   198 			<exclusions>
   199 				<exclusion>
   200 					<groupId>javax.persistence</groupId>
   201 					<artifactId>persistence-api</artifactId>
   202 				</exclusion>
   203 			</exclusions>
   204 		</dependency>
   205 		<dependency>
   206 			<groupId>com.google.gwt</groupId>
   207 			<artifactId>gwt-user</artifactId>
   208 			<version>${gwt.version}</version>
   209 		</dependency>
   210 		<dependency>
   211 			<groupId>com.oracle</groupId>
   212 			<artifactId>ojdbc14</artifactId>
   213 			<version>${oracle.jdbc.version}</version>
   214 		</dependency>
   215 		<dependency>
   216 			<groupId>org.apache.openjpa</groupId>
   217 			<artifactId>openjpa</artifactId>
   218 			<version>${openjpa.version}</version>
   219 		</dependency>
   220 		<dependency>
   221 			<groupId>org.codehaus.groovy</groupId>
   222 			<artifactId>groovy-all</artifactId>
   223 			<version>${groovy.version}</version>
   224 		</dependency>
   225 		<dependency>
   226 			<groupId>commons-dbcp</groupId>
   227 			<artifactId>commons-dbcp</artifactId>
   228 			<version>${commons-dbcp.version}</version>
   229 			<scope>test</scope>
   230 		</dependency>
   231 		<dependency>
   232 			<groupId>org.apache.derby</groupId>
   233 			<artifactId>derby</artifactId>
   234 			<version>${derby.version}</version>
   235 			<scope>test</scope>
   236 		</dependency>
   237 	</dependencies>
   238 </project>