Vaadin 8.1.1 Maven Spring-Boot and DynamicReports Error

Good Day everyone,
I’m trying to implement dynamic reports(net.sourceforge.dynamicreports) with Vaadin 8.1.1 running on maven Spring-boot but an error occurs on gwt-compilation.
Here’s the pom:[code]

<?xml version="1.0" encoding="UTF-8"?>


4.0.0
com.jit
material_inventory
0.0.1-SNAPSHOT
war
Material Inventory
Material Inventory Project using Vaadin

org.springframework.boot
spring-boot-starter-parent
1.5.6.RELEASE



<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<vaadin.version>8.1.0</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>



sonatype-snapshots
https://oss.sonatype.org/content/repositories/snapshots/


spring-releases
https://repo.spring.io/libs-release


jasperreports
http://jasperreports.sourceforge.net/maven2




spring-releases
https://repo.spring.io/libs-release

org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-mail com.vaadin vaadin-spring-boot-starter mysql mysql-connector-java runtime org.springframework.boot spring-boot-starter-test test commons-codec commons-codec org.apache.commons commons-lang3 3.4 org.apache.poi poi-ooxml 3.10-FINAL net.sourceforge.dynamicreports dynamicreports-core 4.1.1 net.sourceforge.dynamicreports dynamicreports-adhoc 4.1.1 net.sourceforge.dynamicreports dynamicreports-googlecharts 4.1.1 com.lowagie itext 2.1.7.js5 com.vaadin vaadin-bom ${vaadin.version} pom import org.springframework.boot spring-boot-maven-plugin org.apache.maven.plugins maven-war-plugin false com.vaadin vaadin-maven-plugin ${vaadin.plugin.version} -Xmx512M -Xss1024k ${basedir}/target/classes/VAADIN/widgetsets false false OBF true resources update-widgetset compile [/code] The error in the pom is:[code] Command [[ C:\Program Files\Java\jre1.8.0_131\bin\java -Xmx512M -Xss1024k -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\.generated com.jit.material_inventory.MaterialInventoryWidgetset ]] failed with status 1 (com.vaadin:vaadin-maven-plugin:8.1.0:compile:default:process-classes) org.apache.maven.plugin.MojoExecutionException: Command [[ C:\Program Files\Java\jre1.8.0_131\bin\java -Xmx512M -Xss1024k -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\.generated com.jit.material_inventory.MaterialInventoryWidgetset ]] failed with status 1 at org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:582) at org.codehaus.mojo.gwt.shell.CompileMojo.doExecute(CompileMojo.java:435) at org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:182) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331) at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362) at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1) at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176) at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112) at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360) at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52) at com.vaadin.integration.eclipse.maven.VaadinMojoExecutionBuildParticipant.build(VaadinMojoExecutionBuildParticipant.java:87) at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137) at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172) at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1) at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115) at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176) at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112) at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105) at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176) at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151) at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99) at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86) at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304) at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383) at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144) at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: org.codehaus.mojo.gwt.shell.JavaCommandException: Command [[ C:\Program Files\Java\jre1.8.0_131\bin\java -Xmx512M -Xss1024k -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\.generated com.jit.material_inventory.MaterialInventoryWidgetset ]] failed with status 1 at org.codehaus.mojo.gwt.shell.JavaCommand.execute(JavaCommand.java:330) at org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:578) ... 35 more [/code] And during compilation of the widgetset, if it helps:
[INFO]
 Scanning for projects...
[INFO]
                                                                         
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Building Material Inventory 0.0.1-SNAPSHOT
[INFO]
 ------------------------------------------------------------------------
[INFO]
 
[INFO]
 --- vaadin-maven-plugin:8.1.0:update-widgetset (default-cli) @ material_inventory ---
[INFO]
 auto discovered modules [com.jit.material_inventory.MaterialInventoryWidgetset]

[INFO]
 Updating widgetset com.jit.material_inventory.MaterialInventoryWidgetset
[INFO]
 Adding resource directory to command classpath: C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\src\main\resources
[INFO]
 Adding resource directory to command classpath: C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\src\main\resources
[INFO]
 Using com.vaadin:vaadin-client version 8.1.0
[INFO]
 Using com.vaadin:vaadin-client-compiler version 8.1.0
[INFO]
 Widgetsets found from classpath:
[INFO]
 com.jit.material_inventory.MaterialInventoryWidgetset in file:/C:/Users/FOUNTAINHEAD/Desktop/Projects/Java/MaterialInventory/material_inventory/src/main/resources
[INFO]
 com.vaadin.DefaultWidgetSet in jar:file:C:/Users/FOUNTAINHEAD/.m2/repository/com/vaadin/vaadin-client/8.1.0/vaadin-client-8.1.0.jar!/
[INFO]
 Addon styles found from classpath:
[INFO]
 
[INFO]
 Search took 16ms
[INFO]
 
[INFO]
 --- vaadin-maven-plugin:8.1.0:compile (default-cli) @ material_inventory ---
[INFO]
 auto discovered modules [com.jit.material_inventory.MaterialInventoryWidgetset]

[INFO]
 Using com.vaadin:vaadin-client version 8.1.0
[INFO]
 Using com.vaadin:vaadin-client-compiler version 8.1.0
[ERROR]
 Aug 10, 2017 11:22:14 AM java.util.prefs.WindowsPreferences <init>
[ERROR]
 WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
[INFO]
 Compiling module com.jit.material_inventory.MaterialInventoryWidgetset
[INFO]
 [ERROR]
 An internal compiler exception occurred
[INFO]
 com.google.gwt.dev.jjs.InternalCompilerException: Error constructing Java AST
[INFO]
 at com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3980)
[INFO]
 at com.google.gwt.dev.jjs.impl.GwtAstBuilder.getInternalCompilerException(GwtAstBuilder.java:4387)
[INFO]
 at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4079)
[INFO]
 at com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3912)
[INFO]
 at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3954)
[INFO]
 at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129)
[INFO]
 at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384)
[INFO]
 at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
[INFO]
 at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1092)
[INFO]
 at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325)
[INFO]
 at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548)
[INFO]
 at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479)
[INFO]
 at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465)
[INFO]
 at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[INFO]
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:222)
[INFO]
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
[INFO]
 at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
[INFO]
 at com.google.gwt.dev.Compiler.compile(Compiler.java:204)
[INFO]
 at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
[INFO]
 at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
[INFO]
 at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
[INFO]
 at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]
 at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]
 at com.google.gwt.dev.Compiler.main(Compiler.java:125)
[INFO]
 Caused by: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.lookup.MethodBinding.isDefaultMethod()Z
[INFO]
 at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMethod(GwtAstBuilder.java:4174)
[INFO]
 at com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4069)
[INFO]
 ... 21 more
[INFO]
    [ERROR]
 at VEmbedded.java(37): public class VEmbedded extends HTML
[INFO]
       org.eclipse.jdt.internal.compiler.ast.TypeDeclaration
[INFO]
 ------------------------------------------------------------------------
[INFO]
 BUILD FAILURE
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Total time: 27.473 s
[INFO]
 Finished at: 2017-08-10T11:22:29+08:00
[INFO]
 Final Memory: 28M/360M
[INFO]
 ------------------------------------------------------------------------
[ERROR]
 Failed to execute goal com.vaadin:vaadin-maven-plugin:8.1.0:compile (default-cli) on project material_inventory: Command [[
[ERROR]
 C:\Program Files\Java\jre1.8.0_131\bin\java -Xmx512M -Xss1024k -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\target\.generated com.jit.material_inventory.MaterialInventoryWidgetset
[ERROR]
 ]] failed with status 1
[ERROR]
 -> [Help 1]

[ERROR]
 
[ERROR]
 To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR]
 Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
 
[ERROR]
 For more information about the errors and possible solutions, please read the following articles:
[ERROR]
 [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[/code]The MaterialInventoryWidgetset.gwt.xml:[code]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
        "http://gwtproject.org/doctype/2.5.1/gwt-module.dtd">
<module>
<inherits name="com.vaadin.DefaultWidgetSet" />
</module>

I’m pretty sure it’s not a problem with Spring-Boot or maven, since I have another project that uses dynamic reports and the only difference between this and the other one is the Vaadin Version. The working one is on 7.7.0 and while this one is on 8.1.1.

Does anyone have a fix for this?
Thanks!

If I recall right Vaadin and DynamicReports both have transient dependency to codehaus.mojo At starters you should check in your dependencies that vaadin-client parts used only compile time in order to avoid version clashes. Also it is adviced to have client part as separate maven module. See also here:

https://vaadin.com/forum/#!/thread/15952928/15952927

And here

https://github.com/gwtproject/gwt/issues/9411

I tried separating the DynamicReports module in a different project, and still giving me the same errors. Any tips on how to fix this?

Material Inventory Module:
[code]

<?xml version="1.0" encoding="UTF-8"?>


4.0.0
com.jit
material_inventory
0.0.1-SNAPSHOT
war
Material Inventory
Material Inventory Project using Vaadin

org.springframework.boot
spring-boot-starter-parent
1.5.6.RELEASE



<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<vaadin.version>8.1.0</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>



sonatype-snapshots
https://oss.sonatype.org/content/repositories/snapshots/


spring-releases
https://repo.spring.io/libs-release




spring-releases
https://repo.spring.io/libs-release

com.jit jit-components 1.0.0-SNAPSHOT org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-mail com.vaadin vaadin-spring-boot-starter mysql mysql-connector-java runtime org.springframework.boot spring-boot-starter-test test commons-codec commons-codec org.apache.commons commons-lang3 3.4 org.apache.poi poi-ooxml 3.10-FINAL com.vaadin vaadin-bom ${vaadin.version} pom import org.springframework.boot spring-boot-maven-plugin org.apache.maven.plugins maven-war-plugin false com.vaadin vaadin-maven-plugin ${vaadin.plugin.version} -Xmx512M -Xss1024k ${basedir}/target/classes/VAADIN/widgetsets false false OBF true resources update-widgetset compile [/code][b] Dynamic Reports module [/b]
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>jit-components</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Inventory Default Components</name>
<description>Default Components</description>
<parent>
<groupId>com.jit</groupId>
<artifactId>inventory-module</artifactId>
<version>1.0.0</version>
</parent>
  
<repositories>
<repository>
        <id>jasperreports</id>
        <url>http://jasperreports.sourceforge.net/maven2</url>
    </repository>
</repositories>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
  <groupId>net.sourceforge.dynamicreports</groupId>
<artifactId>dynamicreports-core</artifactId>
<version>4.1.1</version>
</dependency>
<dependency>
<groupId>net.sourceforge.dynamicreports</groupId>
<artifactId>dynamicreports-adhoc</artifactId>
<version>4.1.1</version>
</dependency>  
<dependency>
<groupId>net.sourceforge.dynamicreports</groupId>
<artifactId>dynamicreports-googlecharts</artifactId>
<version>4.1.1</version>
</dependency> 
<dependency>
    <groupId>com.lowagie</groupId>
    <artifactId>itext</artifactId>
    <version>2.1.7.js5</version>
</dependency>
       
</dependencies>
</project>

Error:

Command [[
C:\Program Files\Java\jre1.8.0_131\bin\java -Xmx512M -Xss1024k -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\jit-core\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\jit-core\target\.generated com.jit.material_inventory.MaterialInventoryWidgetset
]] failed with status 1 (com.vaadin:vaadin-maven-plugin:8.1.0:compile:default:process-classes)
org.apache.maven.plugin.MojoExecutionException: Command [[
C:\Program Files\Java\jre1.8.0_131\bin\java -Xmx512M -Xss1024k -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\jit-core\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\jit-core\target\.generated com.jit.material_inventory.MaterialInventoryWidgetset
]] failed with status 1
at org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:582)
at org.codehaus.mojo.gwt.shell.CompileMojo.doExecute(CompileMojo.java:435)
at org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:182)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:331)
at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1362)
at org.eclipse.m2e.core.internal.embedder.MavenImpl$11.call(MavenImpl.java:1)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1360)
at org.eclipse.m2e.core.project.configurator.MojoExecutionBuildParticipant.build(MojoExecutionBuildParticipant.java:52)
at com.vaadin.integration.eclipse.maven.VaadinMojoExecutionBuildParticipant.build(VaadinMojoExecutionBuildParticipant.java:87)
at org.eclipse.m2e.core.internal.builder.MavenBuilderImpl.build(MavenBuilderImpl.java:137)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:172)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$1.method(MavenBuilder.java:1)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1$1.call(MavenBuilder.java:115)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:112)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod$1.call(MavenBuilder.java:105)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:176)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)
at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)
at org.eclipse.m2e.core.internal.builder.MavenBuilder$BuildMethod.execute(MavenBuilder.java:86)
at org.eclipse.m2e.core.internal.builder.MavenBuilder.build(MavenBuilder.java:200)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.codehaus.mojo.gwt.shell.JavaCommandException: Command [[
C:\Program Files\Java\jre1.8.0_131\bin\java -Xmx512M -Xss1024k -Dgwt.persistentunitcache=false com.google.gwt.dev.Compiler -logLevel INFO -style OBF -war C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\jit-core\target\classes\VAADIN\widgetsets -localWorkers 4 -failOnError -XfragmentCount -1 -sourceLevel auto -gen C:\Users\FOUNTAINHEAD\Desktop\Projects\Java\MaterialInventory\material_inventory\jit-core\target\.generated com.jit.material_inventory.MaterialInventoryWidgetset
]] failed with status 1
at org.codehaus.mojo.gwt.shell.JavaCommand.execute(JavaCommand.java:330)
at org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:578)
... 35 more

Hi, another common problem with jasperreports is its dependency on eclipse jdt compiler that clashes with gwt dependency. Check if you have a transitive dependency to eclipse jdt on jasperreports and, if so, exclude it.

HTH
Marco

Tried excluding in the DynamicReports core, still no dice. :confused:


EDIT

I’d really appreciate it if maybe someone could try to replicate the issue?
My Pom.xml is at the first post if anyone wanted to try.


EDIT 2

I can confirm that the problem exists with jasperreports, tried adding JasperReports only as a depedency but the same problem still persists. I did try to exclude eclipse jdt but the error still persists. Any ideas on this? <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.4.1</version> <exclusions> <exclusion> <groupId>eclipse</groupId> <artifactId>jdtcore</artifactId> </exclusion> </exclusions> </dependency>

Hi Joshua,
the artifact to exclude is
org.eclipse.jdt.core.compiler:ejc

 <dependency>
   <groupId>net.sf.jasperreports</groupId>
   <artifactId>jasperreports</artifactId>
   <version>6.4.1</version>
            <exclusions>
                <exclusion>
                    <groupId>org.eclipse.jdt.core.compiler</groupId>
                    <artifactId>ecj</artifactId>
                </exclusion>
            </exclusions>
</dependency>

I tried it with your pom and widgetset and got compilation working

HTH
Marco

First, I’m truly sorry for the very late reply. I’ve been bogged down from a different project and I never had a chance in trying this solution until now.

Excluding the eclipse jdt compiler DOES work with dynamic reports. Please note that there are slight changes on the build plugins, name and description but I do not think that they have an effect on fixing the problem. The main parts you should focus on are on the repositories for jasper reports, the dependencies and the exclusion.
Here’s my pom:

​<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mis</groupId>
<artifactId>mis</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>mis</name>
<description>Material Inventory System</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<vaadin.version>8.1.0</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
</properties>
<repositories>
        <repository>
            <id>jaspersoft-third-party</id>
            <url>http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/</url>
        </repository>
<repository>
        <id>jasperreports</id>
        <url>http://jasperreports.sourceforge.net/maven2</url>
    </repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-integration</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
<dependency>
   <groupId>org.apache.commons</groupId>
   <artifactId>commons-lang3</artifactId>
   <version>3.4</version>
</dependency>
<dependency>
   <groupId>org.apache.poi</groupId>
   <artifactId>poi-ooxml</artifactId>
   <version>3.10-FINAL</version>
</dependency>
<dependency>
    <groupId>com.lowagie</groupId>
    <artifactId>itext</artifactId>
    <version>2.1.7.js5</version>
</dependency>
<!--  
<dependency>
  <groupId>net.sf.jasperreports</groupId>
  <artifactId>jasperreports</artifactId>
  <version>6.4.1</version>
</dependency>
-->
<dependency>
  <groupId>net.sourceforge.dynamicreports</groupId>
<artifactId>dynamicreports-core</artifactId>
<version>4.1.1</version>
       <exclusions>
           <exclusion>
               <groupId>org.eclipse.jdt.core.compiler</groupId>
               <artifactId>ecj</artifactId>
           </exclusion>
       </exclusions>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<version>${vaadin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin> 
<plugin>
                <groupId>com.vaadin</groupId>
                <artifactId>vaadin-maven-plugin</artifactId>
                <version>${vaadin.plugin.version}</version>
                <configuration>
                    <extraJvmArgs>-Xmx1g -Xss1024k</extraJvmArgs>
                    <!-- We are doing "inplace" gwt compilation
                    but into subdir VAADIN/widgetsets -->
                    <webappDirectory>src/main/resources/VAADIN/widgetsets
                    </webappDirectory>
                    <hostedWebapp>src/main/resources/VAADIN/widgetsets
                    </hostedWebapp>
                    <noServer>true</noServer>
                    <!-- Remove draftCompile when project is ready -->
                    <draftCompile>true</draftCompile>
                    <persistentunitcachedir>${project.build.directory}/gwtdirt</persistentunitcachedir>
                    <compileReport>false</compileReport>
                    <style>OBF</style>
                    <strict>true</strict>
                    <!-- Symbol maps etc, not needed in vaadin app, just target them outside war -->
                    <deploy>${project.build.directory}/gwt-deploy</deploy>
                </configuration>
                <executions>
                    <execution>
                        <configuration>
                            <!-- if you don't specify any modules, the plugin will find them -->
                            <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module>
                            </modules> -->
                        </configuration>
                        <goals>
                            <goal>clean</goal>
                            <goal>resources</goal>
                            <!-- These are non functional currently with spring boot directory structure
                            <goal>update-theme</goal>
                            <goal>compile-theme</goal>
                             -->
                            <goal>update-widgetset</goal>
                            <goal>compile</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <!-- ensure fresly compiled widgetset to jar, TODO check
                    vaadin plugin configuration could get rid of this -->
                    <execution>
                        <id>copy-resources</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${basedir}/target/classes/VAADIN</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${basedir}/src/main/resources/VAADIN</directory>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
</plugins>
</build>

</project>


Many thanks to Marco Collovati for this fix.