[
http://jira.codehaus.org/browse/MOJO-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=183092#action_183092
]
Felipe Cypriano commented on MOJO-1141:
---------------------------------------
Hi,
I'm having problems with classpath and pom dependencies. I get this errors:
Error compiling report design :
D:\Projetos\Java\vc-web\vc-grails\src\main\jasperreports\PedidoVendaResumo.jrxml
: Report design not valid :
1. java.lang.ClassNotFoundException: vc.entity.Transportadora
2. java.lang.ClassNotFoundException: vc.commons.OrigemEstoque
3. java.lang.ClassNotFoundException: entity.CondicaoPagamento
All theses classes are pom dependencies:
{code:xml}
<!-- omitted code -->
<dependency>
<groupId>br.com.litoraltextil.vc</groupId>
<artifactId>vc-entities</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<!-- omitted code -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jasperreports-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile-reports</goal>
</goals>
</execution>
</executions>
<dependencies>
<!--note this must be repeated here to pick up correct xml
validation -->
<dependency>
<groupId>jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>${jasperreports.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- omitted code -->
{code}
Is the fix already released? How could I fix this problem?
> 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