2009年5月15日金曜日

mvnsearch上のGAE/J関連の1.2.0から1.2.1への移行での変更

先のエントリでmvnsearchリポジトリも1.2.1への対応が云々書いたけど、なんかartifactIdがビミョーに見覚えあったり無かったりで「あれ?」てカンジだった。なのでよく確認してみると、結構な差があった。gae-mvn-archetypeプロジェクト/trunk/gae-mvn-archetype/src/main/resources/archetype-resources/pom.xmlのr33での変更内容を見るとよくわかるようだ。

ただしこのpom.xmlだとmaven-datanucleus-pluginの設定がされてないから、エンハンスもmavenでやるとすると以下のようになる。

<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>
<groupId>com.shin1ogawa</groupId>
<artifactId>gae-jdo-relationships</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>GAE JDO Relationships Sample</name>
<properties>
<maven.test.failure.ignore>true</maven.test.failure.ignore>
</properties>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo2-api</artifactId>
<version>2.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.1</version>
<scope>test</scope>
</dependency>
<!-- GAE for java(compile) -->
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-sdk</artifactId>
<version>1.2.1</version>
</dependency>
<!-- GAE for java(test) -->
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-stubs</artifactId>
<version>1.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-api-1.0-runtime</artifactId>
<version>1.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-tools-sdk</artifactId>
<version>1.2.1</version>
<scope>test</scope>
</dependency>
<!-- GAE for java(runtime) -->
<dependency>
<groupId>com.google.appengine.orm</groupId>
<artifactId>datanucleus-appengine</artifactId>
<version>1.0.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-core</artifactId>
<version>1.1.0</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<!-- http://www.datanucleus.org/products/accessplatform/enhancer.html#maven2 -->
<groupId>org.datanucleus</groupId>
<artifactId>maven-datanucleus-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<verbose>true</verbose>
<mappingIncludes>**/entity/*.class</mappingIncludes>
<fork>false</fork>
<enhancerName>ASM</enhancerName>
<api>JDO</api>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/TestEnvironment.java</exclude>
<exclude>**/Abstract*.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>DataNucleus</id>
<url>http://www.datanucleus.org/downloads/maven2</url>
</repository>
<repository>
<id>mvnsearch</id>
<url>http://www.mvnsearch.org/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>DataNucleus</id>
<url>http://www.datanucleus.org/downloads/maven2</url>
</pluginRepository>
</pluginRepositories>
</project>
view raw gistfile1.xsl hosted with ❤ by GitHub

0 件のコメント: