Comments (8)
What if you add the generated code using the build-helper maven plugin? I have a similar setup and added the following plugin configuration
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>prepare-package</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${project.build.directory}/generated-sources/annotations</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
Replace ${project.build.directory}/generated-sources/annotations
in case your code is generated to a different folder.
from gwt-maven-plugin.
Done that. It's not working :(
[INFO] Finding entry point classes
[INFO] Tracing compile failure path for type 'pt.ipb.tests.gwtapp.client.Main'
[INFO] [ERROR] Errors in 'file:/Users/fsousa/Projects/tmp/gwtapp/src/main/java/pt/ipb/tests/gwtapp/client/Main.java'
[INFO] [ERROR] Line 9: No source code is available for type pt.ipb.tests.gwtapp.client.MyMapperImpl; did you forget to inherit a required module?
[INFO] [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
from gwt-maven-plugin.
The way it's declared in your POM, gwt:compile
is executed before build-helper:add-source
(they're bound to the same phase, so Maven uses the document order, and you put gwt-maven-plugin
before build-helper-maven-plugin
).
Changing build-helper:add-source
to run at process-classes
fixes it. That also makes it possible to use gwt:devmode
(which only runs up to the process-classes
phase, so prepare-package
definitely is too late).
Upgrading the maven-compiler-plugin to 3.2 would also fix it, without the need for the build-helper-maven-plugin, if it weren't for nasty side-effects (read: it's totally broken, stay with 3.1): https://issues.apache.org/jira/browse/MCOMPILER-235
from gwt-maven-plugin.
Now I'm able to compile but I still can't run gwt:devmode
mvn gwt:devmode
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gwtapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> gwt-maven-plugin:1.0-rc-1:devmode (default-cli) > process-classes @ gwtapp >>>
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-1:enforce-encoding (default-enforce-encoding) @ gwtapp ---
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-1:add-super-sources (default-add-super-sources) @ gwtapp ---
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-1:add-test-super-sources (default-add-test-super-sources) @ gwtapp ---
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-1:import-sources (default-import-sources) @ gwtapp ---
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-1:generate-module (default-generate-module) @ gwtapp ---
[INFO] /Users/fsousa/Projects/tmp/gwtapp/target/classes/pt/ipb/tests/gwtapp/Main.gwt.xml up to date - skipping
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ gwtapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory /Users/fsousa/Projects/tmp/gwtapp/src/main/super
[INFO] Copying 4 resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gwtapp ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- build-helper-maven-plugin:1.9.1:add-source (add-source) @ gwtapp ---
[INFO] Source directory: /Users/fsousa/Projects/tmp/gwtapp/target/generated-sources/annotations added.
[INFO]
[INFO] <<< gwt-maven-plugin:1.0-rc-1:devmode (default-cli) < process-classes @ gwtapp <<<
[INFO]
[INFO] --- gwt-maven-plugin:1.0-rc-1:devmode (default-cli) @ gwtapp ---
[INFO] Super Dev Mode starting up
[INFO] workDir: /Users/fsousa/Projects/tmp/gwtapp/target/gwt/devmode/work
[INFO] Loading Java files in pt.ipb.tests.gwtapp.Main.
[INFO] Ignored 1 unit with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Finding entry point classes
[INFO] Tracing compile failure path for type 'pt.ipb.tests.gwtapp.client.Main'
[INFO] [ERROR] Errors in 'file:/Users/fsousa/Projects/tmp/gwtapp/src/main/java/pt/ipb/tests/gwtapp/client/Main.java'
[INFO] [ERROR] Line 9: No source code is available for type pt.ipb.tests.gwtapp.client.MyMapperImpl; did you forget to inherit a required module?
[INFO] [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
from gwt-maven-plugin.
I'll have a look. I think I know what's going on.
from gwt-maven-plugin.
I'll cut an RC 2 soon with the fix, but if you could try the snapshot in the mean time and tell me if it fixes the issue for you (I tried it with your project and it worked for me)
from gwt-maven-plugin.
It's working with both devmode and codeserver.
Thank you Thomas.
from gwt-maven-plugin.
Just released 1.0-rc-2.
from gwt-maven-plugin.
Related Issues (20)
- Version 1.0.0 do not support GWT 2.1.0 HOT 5
- Lombok not working with codeserver HOT 2
- Custom Linkers? HOT 2
- Source path from Inherited GWT.xml files are not being considered HOT 13
- GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0 HOT 3
- Integration with GWT Eclipse Plugin seems partially broken HOT 6
- GWT 2.9.0 HOT 2
- GWT Multimodule modulename specificaiton HOT 1
- Redirected gwt artifacts cause a NPE when generating modules HOT 4
- Cannot compile GWT project using com.google.gwt:2.10.0-new-groupid-2 HOT 4
- API incompatibility issue with version 1.0.1 HOT 2
- Change default structure? HOT 2
- java process doesn't start. HOT 1
- Critical CVEs detected in transitive jar dependencies. HOT 1
- Validation warning, plugin should declare these Maven artifacts in `provided` scope HOT 1
- Upgrade to GWT 2.10.0 HOT 3
- goal codeserver fails when web app dependencies are managed in a BOM pom HOT 3
- [Question] How can i activate the debug logging ? because i keep getting the error: Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly HOT 5
- Release versión with GWT 2.11.0 support HOT 2
- [Question] Can I hide the devmode gui? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-maven-plugin.