New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
annotation processor support #27
Comments
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 |
Done that. It's not working :(
|
The way it's declared in your POM, Changing 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 |
Now I'm able to compile but I still can't run gwt:devmode
|
I'll have a look. I think I know what's going on. |
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) |
It's working with both devmode and codeserver. Thank you Thomas. |
Just released 1.0-rc-2. |
Hello,
I'm trying to use your plugin with an annotation processor (mapstruct -- http://mapstruct.org/). It seems to me that the plugin is not picking up the generated code.
[INFO] --- gwt-maven-plugin:1.0-rc-1:compile (default-compile) @ gwtapp ---
[INFO] Compiling module 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
I have a sample project here https://github.com/natros/gwtapp
Thank you
The text was updated successfully, but these errors were encountered: