1.1 --- a/pom.xml Tue Aug 23 18:12:31 2011 +0300
1.2 +++ b/pom.xml Wed Nov 23 17:25:20 2011 +0300
1.3 @@ -10,33 +10,17 @@
1.4 <gwt.version>2.1.1</gwt.version>
1.5 <oracle.jdbc.version>10.1.0.5.0</oracle.jdbc.version>
1.6 <openjpa.version>2.1.1</openjpa.version>
1.7 + <commons-dbcp.version>1.4</commons-dbcp.version>
1.8 + <derby.version>10.8.2.2</derby.version>
1.9 + <groovy.version>1.8.0</groovy.version>
1.10 + <maven-compiler-plugin.version>2.3.2</maven-compiler-plugin.version>
1.11 + <groovy-eclipse-compiler.version>2.5.1-1</groovy-eclipse-compiler.version>
1.12 + <build-helper-maven-plugin.version>1.5</build-helper-maven-plugin.version>
1.13 + <slf4j-simple.version>1.6.4</slf4j-simple.version>
1.14 + <commons-configuration.version>1.7</commons-configuration.version>
1.15 + <maven-resources-plugin.version>2.5</maven-resources-plugin.version>
1.16 + <junit.version>4.10</junit.version>
1.17 </properties>
1.18 - <repositories>
1.19 - <repository>
1.20 - <id>archiva.internal</id>
1.21 - <url>http://10.17.0.7/archiva/repository/internal</url>
1.22 - <releases>
1.23 - <enabled>true</enabled>
1.24 - </releases>
1.25 - <snapshots>
1.26 - <enabled>true</enabled>
1.27 - </snapshots>
1.28 - </repository>
1.29 - <repository>
1.30 - <id>vaadin</id>
1.31 - <url>http://oss.sonatype.org/content/repositories/vaadin/</url>
1.32 - <releases>
1.33 - <enabled>true</enabled>
1.34 - </releases>
1.35 - <snapshots>
1.36 - <enabled>false</enabled>
1.37 - </snapshots>
1.38 - </repository>
1.39 - <repository>
1.40 - <id>vaadin-addons</id>
1.41 - <url>http://maven.vaadin.com/vaadin-addons</url>
1.42 - </repository>
1.43 - </repositories>
1.44 <build>
1.45 <resources>
1.46 <resource>
1.47 @@ -46,38 +30,38 @@
1.48 </resources>
1.49 <plugins>
1.50 <plugin>
1.51 - <groupId>org.apache.maven.plugins</groupId>
1.52 - <artifactId>maven-eclipse-plugin</artifactId>
1.53 + <artifactId>maven-compiler-plugin</artifactId>
1.54 + <version>${maven-compiler-plugin.version}</version>
1.55 <configuration>
1.56 - <downloadSources>true</downloadSources>
1.57 - <buildcommands>
1.58 - <buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
1.59 - </buildcommands>
1.60 - <classpathContainers>
1.61 - <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
1.62 - </classpathContainers>
1.63 + <compilerId>groovy-eclipse-compiler</compilerId>
1.64 + <compilerArgument>nowarn</compilerArgument>
1.65 + <verbose>true</verbose>
1.66 </configuration>
1.67 + <dependencies>
1.68 + <dependency>
1.69 + <groupId>org.codehaus.groovy</groupId>
1.70 + <artifactId>groovy-eclipse-compiler</artifactId>
1.71 + <version>${groovy-eclipse-compiler.version}</version>
1.72 + </dependency>
1.73 + </dependencies>
1.74 </plugin>
1.75 <plugin>
1.76 - <artifactId>maven-compiler-plugin</artifactId>
1.77 - <configuration>
1.78 - <source>1.6</source>
1.79 - <target>1.6</target>
1.80 - <debug>true</debug>
1.81 - <encoding>utf-8</encoding>
1.82 - </configuration>
1.83 - </plugin>
1.84 - <plugin>
1.85 - <artifactId>maven-source-plugin</artifactId>
1.86 - <configuration>
1.87 - <attach>true</attach>
1.88 - </configuration>
1.89 + <groupId>org.codehaus.mojo</groupId>
1.90 + <artifactId>build-helper-maven-plugin</artifactId>
1.91 + <version>${build-helper-maven-plugin.version}</version>
1.92 <executions>
1.93 <execution>
1.94 + <id>add-source</id>
1.95 <phase>generate-sources</phase>
1.96 <goals>
1.97 - <goal>jar</goal>
1.98 + <goal>add-source</goal>
1.99 </goals>
1.100 + <configuration>
1.101 + <sources>
1.102 + <source>src/main/groovy</source>
1.103 + <source>src/test/groovy</source>
1.104 + </sources>
1.105 + </configuration>
1.106 </execution>
1.107 </executions>
1.108 </plugin>
1.109 @@ -85,7 +69,7 @@
1.110 <groupId>org.codehaus.mojo</groupId>
1.111 <artifactId>openjpa-maven-plugin</artifactId>
1.112 <configuration>
1.113 - <includes>ru/indvdum/mywork/openjpa/model/**/*.class</includes>
1.114 + <includes>**/model/**/*.class</includes>
1.115 <addDefaultConstructor>true</addDefaultConstructor>
1.116 <enforcePropertyRestrictions>true</enforcePropertyRestrictions>
1.117 </configuration>
1.118 @@ -107,6 +91,28 @@
1.119 </dependencies>
1.120 </plugin>
1.121 <plugin>
1.122 + <groupId>org.apache.maven.plugins</groupId>
1.123 + <artifactId>maven-resources-plugin</artifactId>
1.124 + <version>${maven-resources-plugin.version}</version>
1.125 + <configuration>
1.126 + <encoding>UTF-8</encoding>
1.127 + </configuration>
1.128 + </plugin>
1.129 + <plugin>
1.130 + <artifactId>maven-source-plugin</artifactId>
1.131 + <configuration>
1.132 + <attach>true</attach>
1.133 + </configuration>
1.134 + <executions>
1.135 + <execution>
1.136 + <phase>generate-sources</phase>
1.137 + <goals>
1.138 + <goal>jar</goal>
1.139 + </goals>
1.140 + </execution>
1.141 + </executions>
1.142 + </plugin>
1.143 + <plugin>
1.144 <groupId>org.codehaus.mojo</groupId>
1.145 <artifactId>exec-maven-plugin</artifactId>
1.146 <version>1.2</version>
1.147 @@ -122,15 +128,60 @@
1.148 <arguments>
1.149 <argument>-classpath</argument>
1.150 <classpath/>
1.151 - <argument>-javaagent:${settings.localRepository}/org/apache/openjpa/openjpa/${openjpa.version}/openjpa-${openjpa.version}.jar</argument>
1.152 <argument>ru.indvdum.mywork.MyWork</argument>
1.153 </arguments>
1.154 </configuration>
1.155 </plugin>
1.156 </plugins>
1.157 + <pluginManagement>
1.158 + <plugins>
1.159 + <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
1.160 + <plugin>
1.161 + <groupId>org.eclipse.m2e</groupId>
1.162 + <artifactId>lifecycle-mapping</artifactId>
1.163 + <version>1.0.0</version>
1.164 + <configuration>
1.165 + <lifecycleMappingMetadata>
1.166 + <pluginExecutions>
1.167 + <pluginExecution>
1.168 + <pluginExecutionFilter>
1.169 + <groupId>
1.170 + org.codehaus.mojo
1.171 + </groupId>
1.172 + <artifactId>
1.173 + openjpa-maven-plugin
1.174 + </artifactId>
1.175 + <versionRange>
1.176 + [1.2,)
1.177 + </versionRange>
1.178 + <goals>
1.179 + <goal>enhance</goal>
1.180 + </goals>
1.181 + </pluginExecutionFilter>
1.182 + <action>
1.183 + <ignore></ignore>
1.184 + </action>
1.185 + </pluginExecution>
1.186 + </pluginExecutions>
1.187 + </lifecycleMappingMetadata>
1.188 + </configuration>
1.189 + </plugin>
1.190 + </plugins>
1.191 + </pluginManagement>
1.192 </build>
1.193 <dependencies>
1.194 <dependency>
1.195 + <groupId>org.slf4j</groupId>
1.196 + <artifactId>slf4j-simple</artifactId>
1.197 + <version>${slf4j-simple.version}</version>
1.198 + </dependency>
1.199 + <dependency>
1.200 + <groupId>junit</groupId>
1.201 + <artifactId>junit</artifactId>
1.202 + <version>${junit.version}</version>
1.203 + <scope>test</scope>
1.204 + </dependency>
1.205 + <dependency>
1.206 <groupId>org.mortbay.jetty</groupId>
1.207 <artifactId>jetty</artifactId>
1.208 <version>${jetty.version}</version>
1.209 @@ -166,5 +217,22 @@
1.210 <artifactId>openjpa</artifactId>
1.211 <version>${openjpa.version}</version>
1.212 </dependency>
1.213 + <dependency>
1.214 + <groupId>org.codehaus.groovy</groupId>
1.215 + <artifactId>groovy-all</artifactId>
1.216 + <version>${groovy.version}</version>
1.217 + </dependency>
1.218 + <dependency>
1.219 + <groupId>commons-dbcp</groupId>
1.220 + <artifactId>commons-dbcp</artifactId>
1.221 + <version>${commons-dbcp.version}</version>
1.222 + <scope>test</scope>
1.223 + </dependency>
1.224 + <dependency>
1.225 + <groupId>org.apache.derby</groupId>
1.226 + <artifactId>derby</artifactId>
1.227 + <version>${derby.version}</version>
1.228 + <scope>test</scope>
1.229 + </dependency>
1.230 </dependencies>
1.231 </project>