In maven 2.0.9 with jasperreports plugin 1.0-beta-1,
the jasperreports doesn't put my dependencies in the classpath for jrxml
compiling.
I get a ClassNotFoundException:
23-mei-2008 9:22:41 org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Caused by: java.lang.NoClassDefFoundError
at
net.sf.jasperreports.engine.query.JRJpaQueryExecuterFactory.class$(JRJpaQueryExecuterFactory.java:67)
...
Caused by: java.lang.ClassNotFoundException: javax.persistence.EntityManager
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
This is my pom.xml:
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<goals>
<goal>compile-reports</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>2.0.5</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<!-- version inherited from parent pom -->
</dependency>
</dependencies>
So the class EntityManager is definitly a dependency.
--
With kind regards,
Geoffrey De Smet
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email