profile
viewpoint

auke-/bazel 0

a fast, scalable, multi-language and extensible build system

auke-/gerrit-code-review-plugin 0

Gerrit SCM plugin for Jenkins CI

auke-/gwt-maven-plugin 0

Starting fresh on building GWT projects with Maven

auke-/immutables 0

Annotation processor to create immutable objects and builders. Feels like Guava's immutable collections but for regular value objects. JSON, Jackson, Gson, JAX-RS integrations included

auke-/java-jaxrs 0

OpenTracing Java JAX-RS instrumentation

auke-/javawriter 0

A utility class which aids in generating Java source files.

auke-/jib 0

:sailboat: Build container images for your Java applications.

auke-/micronaut-graphql 0

A repository for Micronaut and GraphQL integrations

auke-/micronaut-grpc-graal 0

Repository to investigate Micronaut GRPC on Graal

auke-/protoc-jar-maven-plugin 0

Protocol Buffers protobuf maven plugin - based on protoc-jar multi-platform executable protoc JAR

issue closedtbroyer/gwt-maven-plugin

GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0

Hi Thomas,

Sorry for creating new issue, with your suggestion provided in https://github.com/tbroyer/gwt-maven-plugin/issues/144

I have been able to reached to below error message

I have guice 3.0 and guava 18.0

[ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:83)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO] 	at com.google.gwt.dev.jjs.ast.JIfStatement.traverse(JIfStatement.java:53)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
[INFO] 	at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
[INFO] 	at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
[INFO] 	at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:206)
[INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:158)
[INFO] 	at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
[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:127)
[INFO] Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
[INFO] 	at com.google.inject.internal.Annotations$AnnotationChecker.<init>(Annotations.java:104)

Originally posted by @pratikthaker84 in https://github.com/tbroyer/gwt-maven-plugin/issues/144#issuecomment-728986006

closed time in 7 days

pratikthaker84

issue commenttbroyer/gwt-maven-plugin

GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0

I see you posted to https://groups.google.com/g/google-web-toolkit/c/YCTcC6rkgAc Let's close the issue for now, we'll reopen if the discussion proves that there's a bug in the plugin.

pratikthaker84

comment created time in 7 days

issue commenttbroyer/gwt-maven-plugin

GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0

Same troubleshooting hint: https://github.com/tbroyer/gwt-maven-plugin/issues/144#issuecomment-721751276

pratikthaker84

comment created time in 10 days

issue commenttbroyer/gwt-maven-plugin

GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0

After upgrading guice and guava, i started getting below error,

[ERROR] Unable to find 'com/google/common/collect/Collect.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

The above is already there in my gwt.xml

<inherits name="com.google.common.collect.Collect"/>

pratikthaker84

comment created time in 10 days

issue openedtbroyer/gwt-maven-plugin

GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0

Hi Thomas,

Sorry for creating new issue, with your suggestion provided in https://github.com/tbroyer/gwt-maven-plugin/issues/144

I have been able to reached to below error message

I have guice 3.0 and guava 18.0

[ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:83)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO] 	at com.google.gwt.dev.jjs.ast.JIfStatement.traverse(JIfStatement.java:53)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
[INFO] 	at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
[INFO] 	at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
[INFO] 	at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:206)
[INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:158)
[INFO] 	at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
[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:127)
[INFO] Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
[INFO] 	at com.google.inject.internal.Annotations$AnnotationChecker.<init>(Annotations.java:104)

Originally posted by @pratikthaker84 in https://github.com/tbroyer/gwt-maven-plugin/issues/144#issuecomment-728986006

created time in 10 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Trying with guice 4.0, i was using 3.0

pratikthaker84

comment created time in 10 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

It is failing with below error,

[ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:121)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:296)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:67)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:83)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:128)
[INFO] 	at com.google.gwt.dev.jjs.ast.JExpressionStatement.traverse(JExpressionStatement.java:42)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO] 	at com.google.gwt.dev.jjs.ast.JIfStatement.traverse(JIfStatement.java:53)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor$ListContext.traverse(JModVisitor.java:95)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove(JModVisitor.java:351)
[INFO] 	at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:149)
[INFO] 	at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:145)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:600)
[INFO] 	at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:569)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:381)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:293)
[INFO] 	at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:285)
[INFO] 	at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:1505)
[INFO] 	at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:870)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1305)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
[INFO] 	at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
[INFO] 	at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
[INFO] 	at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
[INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:206)
[INFO] 	at com.google.gwt.dev.Compiler.run(Compiler.java:158)
[INFO] 	at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
[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:127)
[INFO] Caused by: java.lang.IllegalAccessError: tried to access method com.google.common.collect.MapMaker.makeComputingMap(Lcom/google/common/base/Function;)Ljava/util/concurrent/ConcurrentMap; from class com.google.inject.internal.Annotations$AnnotationChecker
[INFO] 	at com.google.inject.internal.Annotations$AnnotationChecker.<init>(Annotations.java:104)
pratikthaker84

comment created time in 10 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Thanks for the quick reply.

It is indeed old.

Let's hope it works with 1.5.3. Will let you know

pratikthaker84

comment created time in 10 days

issue closedtbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Hi Team,

I have below project structure

A

  • com.sample.gwt A.gwt.xml

B

  • com.sample.gwt.client B.gwt.xml

In B.gwt.xml I have below tag,

<inherits name="com.sample.gwt.A" />

In the module tag in my pom.xml, I have provided com.sample.gwt.client.B

I am facing below issue,

While doing gwt compiling com.sample.gwt.client.B, it is not considering source path provided in A.gwt.xml and it is giving compilation errors in that.

We have similar build process with Ant, where it is working fine. Same way it is working fine by doing gwt compile from Eclipse.

Can you please suggest what we should do here ?

closed time in 10 days

pratikthaker84

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

There's indeed a bug in that file: https://github.com/google-code-export/gwtx/blob/gwtx-1.5.2/src/main/java/com/googlecode/gwtx/java/util/emul/java/util/regex/Pattern.java#L183 (that class is emulating java.util.regex.Pattern). Fixed in gwtx 1.5.3 apparently, but man this lib is nearly 12 years old :older_adult:

https://code.google.com/archive/p/gwtx/issues/22 https://code.google.com/archive/p/gwtx/issues/25 https://code.google.com/archive/p/gwtx/issues/29 https://github.com/google-code-export/gwtx/commit/da4e6a08ebffb22f8a6ee8385e9b981ba79bc44e

pratikthaker84

comment created time in 10 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Hi Thomas,

Thanks for the suggestions, i am now facing only 1 error mentioned below and I think you can sure help me in that.

Errors in 'jar:file:gwtx/1.5.2/gwtx-1.5.2.jar!/com/googlecode/gwtx/java/util/emul/java/util/regex/Pattern.java'
[INFO]          Line 183: Referencing class 'com.googlecode.gwtx.java.util.emul.java.util.regex.Pattern': unable to resolve class
pratikthaker84

comment created time in 10 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Do you mean i can add process-resources to existing goal gwt:compile ?

pratikthaker84

comment created time in 21 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

It's expected, because resources have been copied already into target/classes, which is in the classpath. Resources could be filtered and/relocated, so they're not added directly to the classpath. If you need to make changes to resources and see them in dev mode, you have to run mvn process-resources to copy them again into target/classes.

pratikthaker84

comment created time in 21 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

It was my mistake, by carefully looking into it i found that it was using old plugin.

It has been corrected. The only problem i am facing is in Classpath: or Arguments: i am not seeing resource folder of Project A

I already tried below tags,

     ```

<build> <resources> <resource> <directory>${basedir}/src/main/resources</directory> </resource> </resources> </build>


I the resource folder is there in classpath in Ant build

Any solution to have it available ?
pratikthaker84

comment created time in 21 days

issue closedtbroyer/gwt-maven-plugin

Custom Linkers?

Is it possible to use the Maven plugin with a custom GWT code linker? How would I go about doing that?

closed time in 22 days

my2iu

issue commenttbroyer/gwt-maven-plugin

Custom Linkers?

Awesome. I wanted a version of the CrossSiteIframeLinker that would generate cache.js files that could be directly included as scripts in html code as well as being usable in superdevmode. It all worked well.

my2iu

comment created time in 22 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

There is no auto-detection of modules in this plugin (there is in Mojo's plugin though), gwt:compile will only compile the module configured in <moduleName>.

Oh, BTW, jvmArgs is a list so it should be configured with child elements, same as compilerArgs.

pratikthaker84

comment created time in 22 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Is there any way to stop autodetection of modules and only gwt compile B.gwt.xml ?

pratikthaker84

comment created time in 22 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Arguments: should be the line following Classpath:: https://github.com/tbroyer/gwt-maven-plugin/blob/1.0.0/src/main/java/net/ltgt/gwt/maven/CommandLine.java#L49-L52

pratikthaker84

comment created time in 22 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Hi Thomas,

Thanks for the quick reply. I can see sources.jar file of the project A which contains A.gwt.xml in the Classpath:

I am not seeing anything with Argument: word.

pratikthaker84

comment created time in 23 days

issue commenttbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Run Maven with debug logs (mvn -X) and look for the Classpath: and Arguments: lines. You could then compare them to what your Ant build is doing, and you can run GWT from the command-line (or your IDE) with this classpath and arguments.

pratikthaker84

comment created time in 23 days

issue closedtbroyer/gwt-maven-plugin

NullPointerException when using -Dmaven.repo.local command line option

It appears that the gwt-maven-plugin can't seem to find the dependent's source jar files when the Maven repository is not the default.

I have run mvn clean install -Dmaven.repo.local=XXXXX, and I can see the jars (along with their source jars) in the local repo.

When using this command on the gwt-app module: mvn gwt:devmode -Dmaven.repo.local=XXXXX, I am seeing the following exception as the source jars are trying to be added:

[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:devmode (default-cli) on project wap-claims-sdm: Execution default-cli of goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:devmode failed.: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:devmode (default-cli) on project wap-claims-sdm: Execution default-cli of goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:devmode failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0.0:devmode failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.NullPointerException at net.ltgt.gwt.maven.AbstractDevModeMojo.addSources (AbstractDevModeMojo.java:294) at net.ltgt.gwt.maven.AbstractDevModeMojo.addSources (AbstractDevModeMojo.java:321) at net.ltgt.gwt.maven.AbstractDevModeMojo.execute (AbstractDevModeMojo.java:203) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) [ERROR] [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/PluginExecutionException

closed time in 23 days

randymay-insclix

issue closedtbroyer/gwt-maven-plugin

Question: Codeserver dependency problem when using multiple GWT modules

Hi, not sure if I'm doing something wrong. I'm trying to build a proof-of-concept for migrating a GWT to the "Turducken" pattern, i.e. split the existing app into multiple GWT modules, also for later re-use/replace with a different UI framework.

I've used the modular-requestfactory archetype and create my project. Then I've added multiple, independent GWT modules:

  • (project)
  • Portal (gwt-app)
  • PortalRefDataAdmin (gwt-app)
  • PortalTemplateEditor (gwt-app)

Navigation Module and Module 1 use elemental2, Module 2 doesn't.

When starting the codeserver through mvn gwt:codeserver -am all modules are loaded, however if Module 2 is loaded, an error is reported that Module 2 cannot be compiled:

[INFO] Super Dev Mode starting up
[INFO]    workDir: /XXXX/target/gwt/codeserver
[WARNING] 2020-04-22 16:54:45.125:INFO::main: Logging initialized @863ms
[INFO]    Loading Java files in com.xxxx.frame.Portal.
[INFO]    Module setup completed in 2095 ms
[INFO]    Loading Java files in com.xxxx.refdata.PortalRefDataAdmin.
[INFO]    Module setup completed in 641 ms
[INFO]    Loading Java files in com.xxxx.templates.PortalTemplateEditor.
[INFO]    Tracing compile failure path for type 'com.xxxx.frame.client.Portal'
[INFO]       [ERROR] Errors in 'file:/xxxx/Portal.java'           
[INFO]          [ERROR] Line 45: No source code is available for type elemental2.dom.DomGlobal; did you forget to inherit a required module?
[INFO]    Module setup completed in 566 ms

In the above, it looks like it tries to compile Portal.java (which is the entrypoint of the Portal module) when it compiles PortalTemplateEditor, i.e. a file which isn't even part of the PortalTemplateEditor module.

Anything I'm doing wrong?

Thanks, Thomas

PS: I looked at #109 and #90 but don't see how they would be applicable PPS: As it's a PoC at this stage, I can provide the full source code.

closed time in 23 days

tbuckel

issue closedtbroyer/gwt-maven-plugin

Compile gwt-app to jar instead of war?

It is possible for gwt-maven-plugin to compile the gwt-app packaging to a jar instead of a war?

Our current project uses the previous plugin to compile into a jar file to be included in a parent jar or war.

closed time in 23 days

sjardine

issue commenttbroyer/gwt-maven-plugin

Custom Linkers?

The plugin only calls GWT from Maven, so everything you can do with GWT you should be able to do it through this plugin.

Your linker needs to either be in the project itself or in a dependency with scope compile (see https://tbroyer.github.io/gwt-maven-plugin/codeserver.html).

The only limitation (that I'm aware of) is that if your linker is a primary linker and doesn't generate a <moduleShortName>/<moduleShortName>.nocache.js file, then you won't benefit from the staleness check that avoids recompiling your module when nothing has changed: the module will always be recompiled no matter what (you probably won't be able to run it in dev mode either, because GWT requires the primary linker to be assignable to CrossSiteIframeLinker, and is hardcoded for that .nocache.js name).

my2iu

comment created time in 23 days

issue openedtbroyer/gwt-maven-plugin

Source path from Inherited GWT.xml files are not being considered

Hi Team,

I have below project structure

A

  • com.sample.gwt A.gwt.xml

B

  • com.sample.gwt.client B.gwt.xml

In B.gwt.xml I have below tag,

<inherits name="com.sample.gwt.A" />

In the module tag in my pom.xml, I have provided com.sample.gwt.client.B

I am facing below issue,

While doing gwt compiling com.sample.gwt.client.B, it is not considering source path provided in A.gwt.xml and it is giving compilation errors in that.

We have similar build process with Ant, where it is working fine. Same way it is working fine by doing gwt compile from Eclipse.

Can you please suggest what we should do here ?

created time in 23 days

issue openedtbroyer/gwt-maven-plugin

Custom Linkers?

Is it possible to use the Maven plugin with a custom GWT code linker? How would I go about doing that?

created time in a month

issue commenttbroyer/gwt-maven-plugin

Lombok not working with codeserver

@tbroyer thanks, it works. Problem was scope + jvmArgs in client -> it has to be in root pom :)

jiritobias

comment created time in a month

issue closedtbroyer/gwt-maven-plugin

Lombok not working with codeserver

I created new project form archetype and added lombok dependency and lombok javaagent to javmArgs (client pom).

mvn archetype:generate \
   -DarchetypeGroupId=net.ltgt.gwt.archetypes \
   -DarchetypeVersion=LATEST \
   -DarchetypeArtifactId=modular-webapp
<dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>1.18.14</version>
      <scope>provided</scope>
</dependency>

<jvmArgs>
    <arg>-javaagent:C:\Users\user\.m2\repository\org\projectlombok\lombok\1.18.14\lombok-1.18.14.jar=ECJ</arg>
</jvmArgs>

But when create simple Lombok class in client module like {code} and try make instance of class Test and get value of a new Test().getA(); then client cannot be run (mvn gwt:codeserver -pl modular-app-client -am).

@lombok.Getter
public class Test {
    String a = "lombok.works";
}

It throws error

modular-app/modular-app-client/src/main/java/org/example/App.java:[42,30] cannot find symbol
[ERROR]   symbol:   method getA()
[ERROR]   location: class org.example.App.Test

Adding log with -X parameter. gwt.log

closed time in a month

jiritobias

issue commenttbroyer/gwt-maven-plugin

Lombok not working with codeserver

The error here comes from the maven-compiler-plugin, which means you didn't setup your build correctly.

  1. the Lombok dependency should go into modular-app-client/pom.xml without the <scope>provided</scope>,
  2. the jvmArgs should go into the root pom.xml next to the sourceLevel and failOnError to apply to all gwt-maven-plugin goals

If I do that, I at least get an error from GWT:

[INFO] --- gwt-maven-plugin:1.0.0:codeserver (default-cli) @ test ---
[INFO] Ignoring test:test-shared:jar:1.0-SNAPSHOT; neither a gwt-lib or jar:sources; Did you forget to use <type>gwt-lib</type> in the dependency declaration?
[INFO] Turning off precompile in incremental mode.
[INFO] Super Dev Mode starting up
[INFO]    workDir: /var/tmp/test/test/target/gwt/codeserver
[WARNING] 2020-10-17 18:46:42.184:INFO::main: Logging initialized @1101ms
[INFO]    Loading Java files in test.App.
[INFO]    Tracing compile failure path for type 'test.App'
[INFO]       [ERROR] Errors in 'file:/var/tmp/test/test/test-client/src/main/java/test/App.java'
[INFO]          [ERROR] Line 42: The method getA() is undefined for the type Test
[INFO]    Tracing compile failure path for type 'test.Test'
[INFO]       [ERROR] Errors in 'file:/var/tmp/test/test/test-client/src/main/java/test/Test.java'
[INFO]          [ERROR] Line 3: lombok cannot be resolved to a type
[INFO]    Finding entry point classes
[INFO]       Tracing compile failure path for type 'test.App'
[INFO]          [ERROR] Errors in 'file:/var/tmp/test/test/test-client/src/main/java/test/App.java'
[INFO]             [ERROR] Line 42: The method getA() is undefined for the type Test
[INFO]       [ERROR] Hint: Check that the type name 'test.App' is really what you meant
[INFO]       [ERROR] Hint: Check that your classpath includes all required source roots

Running with -X I can see the lombok JAR correctly present in the classpath, and the-javaagent correctly passed in:

[DEBUG] Arguments: -javaagent:/home/tbr/.m2/repository/org/projectlombok/lombok/1.18.14/lombok-1.18.14.jar=ECJ com.google.gwt.dev.codeserver.CodeServer -failOnError -workDir /var/tmp/test/test/target/gwt/codeserver -sourceLevel 1.8 -launcherDir /var/tmp/test/test/target/gwt/launcherDir -allowMissingSrc -src /var/tmp/test/test/test-client/src/main/java -src /var/tmp/test/test/test-client/target/generated-sources/annotations -src /var/tmp/test/test/test-shared/src/main/java -src /var/tmp/test/test/test-shared/target/generated-sources/annotations test.App

Interestingly, mvn package works.

That should help you figure out what else is missing. I myself avoid Lombok like the COVID: in my experience, being a hacky way of hacking into compilers, it always causes more problems than it supposedly solves. Either that or try to use [delombok][https://anthonywhitford.com/lombok.maven/lombok-maven-plugin/usage.html) instead :man_shrugging:

Anyway, if there's some kind of "incompatibility", it is with GWT itself and not the gwt-maven-plugin (an if it's with GWT, it's IMO a Lombok problem, not a GWT one)

jiritobias

comment created time in a month

more