[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-dev] [m2e-users] 'cannot output to distinct source folder' error in custom m2e connector
|
AbstractJavaProjectConfigurator assumes java sources are generated in
the directory specified by "outputDirectory" maven plugin parameter.
maven-jasperreports-plugin, however, uses "javaDirectory" to configure
locations of generated java sources according to [1], so you need to
override #getOutputFolderParameterName() method to return "javaDirectory".
Also, lets move this discussion to m2e-dev.
[1]
http://mojo.codehaus.org/jasperreports-maven-plugin/compile-reports-mojo.html
--
Regards,
Igor
On 11-06-29 1:57 AM, Tomasz Pik wrote:
Good morning/afternoon,
Using antlr connector as a sample I've tried to implement a connector
for running
maven-jasperreports-plugin as m2e extension/connector.
maven-jasperreports-plugin looks at it's sourceDirectory (src/main/jasperreports
as default) and compile reports (jrxml files) into binary files (java
serialization files),
by default storing them in ${project.build.outputDirectory}.
So it seems like a typical use case.
But, after adding plugin to eclipse (indigo with released 1.0 of m2e)
I'm getting:
"Source folder 'src/main/java' in project 'xxx' cannot output to
distinct source folder
'target/classes'" error and project is not building correctly in eclipse (while
'mvn package' works fine).
Could somebody let me know, what I'm doing incorrectly?
Source for plugin/feature can be found here:
https://github.com/pikus/m2eclipse-jasperreports
Sample/simple project: https://github.com/pikus/m2eclipse-jasperreports-sample
Thanks!
Tomek
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users