[
http://jira.codehaus.org/browse/MOJO-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=217099#action_217099
]
Jeff Jensen commented on MOJO-1141:
-----------------------------------
I've been trying to make the compile goal work, but see this issue still with
1.0-beta-2. As with others, iReport compiles correctly. Also, Java code to
dynamically compile worked fine too. But compiling with the plugin causes
ClassNotFoundException of a class in the project deps, the first one on
EntityManager.
This is the definition in parent pom:
{code:xml}
<pluginManagement>
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<version>1.0-beta-2</version>
<configuration>
<outputDirectory>${jasperReportsPluginOutputDir}</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>compile-reports</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>${jasperReportsVersion}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
{code}
{code:xml}
This is definition in child pom:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
</plugin>
{code}
If I add the JPA dep into the jasperreports plugin deps section (along with the
jasperreports dep) in the parent, the EntityManager CNFE goes away:
{code:xml}
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>${jpaVersion}</version>
</dependency>
{code}
The above dep is also in the child pom.
Is this expected? The config seems straight forward - but am I missing
something? Is this expected? This issue is closed...am I experiencing this
one or a different one?
> Jasperreports plugin can't compile when the jrxml uses a class from one of
> the project dependencies
> ---------------------------------------------------------------------------------------------------
>
> Key: MOJO-1141
> URL: http://jira.codehaus.org/browse/MOJO-1141
> Project: Mojo
> Issue Type: Bug
> Components: jasperreports
> Environment: windows XP
> Reporter: Geoffrey De Smet
> Assignee: Dan Tran
> Attachments: patch.txt, patch2.txt
>
>
> The plugin does build a correct classpath with buildClasspathString(), for
> example:
> d:\projects\ggg-report\target\classes;C:\Documents and
> Settings\ge0ffrey\.m2\repository\be\ggg\ggg-api\1.1.3-SNAPSHOT\ggg-api-1.1.3-SNAPSHOT.jar;...
> Notice that it contains spaces, but that shouldn't be a problem as far as I
> know.
> It nicely does
> JRProperties.setProperty( JRProperties.COMPILER_CLASSPATH,
> classpath );
> But apparently jasperreports ignores that parameter:
> http://www.jasperforge.org/sf/go/artf1817
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email