I am trying to perform the build of a Spring Roo project (= Spring MVC + aspectj + hibernate) on my hudson integration server.

The project is configured tu use 

```
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>com.springsource.javax.persistence</artifactId>
<version>1.0.0</version>
</dependency>

```

The build with my local maven works fine, but the environment on the server seems to inject some other version of `javax.persistence` which leads to these errors:

```
[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>)

```

The build is ran with maven and it's configuration is:

```
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"

```

edit: I wasn't using the same version of roo locally and on the server :)