Error building project after minor change in POM

I am struggling with some JasperReport stuff so I decided to downgrade the version of the dependency from
6.2.1
to
5.6.0
, after modify the POM, the project doesn’t build anymore (on NetBeans),
if I back to 6.2.1 it works again
.
output:

Compiling module org.saos.ui.MyAppWidgetset
[ERROR]
Unexpected internal compiler error
java.lang.NoSuchFieldError: warningThreshold
at com.google.gwt.dev.javac.JdtCompiler$1.(JdtCompiler.java:605)
at com.google.gwt.dev.javac.JdtCompiler.getStandardCompilerOptions(JdtCompiler.java:603)
at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:633)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:983)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:339)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:580)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:499)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.dev.Compiler.run(Compiler.java:158)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:127)
[INFO]
NETBEANS-ExecEvent:{“exc”:{“msg”:"Q29tbWFuZCBbWwpDOlxQcm9ncm…

Seems like jasperreports 5.6.0 has a dependency on eclipse jdt compiler; try excluding it.

HTH
Marco

I got the version 5.6.0 running in another project (with exactly all the same dependencies and version except for Jasper) and there is no such problem.
My guess is that it is related with the generation of the widgetset.

PD: I could solve the issue related with the reports, so no need for futher searching

PD2: in another project it has a few exclusions


xml-apis
xml-apis


org.codehaus.castor
castor-core


bouncycastle
bcmail-jdk14


bouncycastle
bcprov-jdk14


org.bouncycastle
bctsp-jdk14


aopalliance
aopalliance


org.apache.lucene
lucene-queryparser


org.apache.lucene
lucene-analyzers-common


org.apache.lucene
lucene-core


org.springframework
spring-core


org.springframework
spring-context


org.codehaus.castor
castor-xml

Hi,
that’s weird.
I tried your exclusions but got your same probem.
Instead it is working for me when excluding
jdtcore
.

 <dependency>
     <groupId>net.sf.jasperreports</groupId>
     <artifactId>jasperreports</artifactId>
     <version>5.6.0</version>
     <exclusions>
         <exclusion>
             <groupId>eclipse</groupId>
              <artifactId>jdtcore</artifactId>
         </exclusion>
     </exclusions>
 </dependency>

Yes, I tried your suggestion and it works, there must be some other dependedy that also use jdtcore and jasper is replacing it with another version
thanks u!