ハドソン統合サーバーでSpringRooプロジェクト(= Spring MVC+アスペクトj+休止状態)のビルドを実行しようとしています。
プロジェクトは使用するように構成されています
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>com.springsource.javax.persistence</artifactId>
<version>1.0.0</version>
</dependency>
ローカルのMavenを使用したビルドは正常に機能しますが、サーバー上の環境が他のバージョンを注入しているようで、javax.persistence
これらのエラーが発生します。
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class<Long>)
[ERROR] The method createQuery(String) in the type EntityManager is not applicable for the arguments (String, Class<Folder>)
ビルドはMavenで実行され、構成は次のとおりです。
Apache Maven 2.2.1 (rdebian-4)
Java version: 1.6.0_18
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux" version: "2.6.32-5-amd64" arch: "amd64" Family: "unix"
編集:私はローカルとサーバーで同じバージョンのrooを使用していませんでした:)