-
Notifications
You must be signed in to change notification settings - Fork 41
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
Generate the module to generated sources by default instead of target #35
Comments
Current workaround: <plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-rc-3</version>
<extensions>true</extensions>
<configuration>
<moduleName>org.jresearch.logbackui.gwt.app.module</moduleName>
</configuration>
<executions>
<execution>
<goals>
<goal>generate-module</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/generated-sources/resources</outputDirectory>
</configuration>
</execution>
</executions>
</plugin> |
Interesting. Would you mind shedding some light on the specific issue with Eclipse? Is it somehow related to the GPE not picking the module when trying to launch DevMode from within Eclipse (as opposed to using the BTW, even inside a single plugin there doesn't appear to be a "standard way" as even inside a single plugin (https://maven.apache.org/plugins/maven-remote-resources-plugin/) they use both approaches. The difference I can see is that Pending further information, I'd tend to say the issue is on the GPE side rather than this plugin. |
Yes, you are right about GPE - in case of your plugin it can't find the generated module. |
By default M2e (Maven Builder) in Eclipse will ignore including resources by default. Or resources directory get the exclusion = "**", and if changed they get clobbered. This is intentionally done assuming the maven builder should do the inclusion into the cp. Are you saying there is a way to around having resources included with a plugin? Just so happens I'm really annoyed by this today and looking at getting around this in the GPE fork. I've got a project that has classes that are generated but get excluded when added as a resource by default. |
I am sorry no way to around (Igor is to strong). In my projects based on the "classic" gwt-maven plugin I put all module configuration files to the java source folder. In this plugin I change the default and looks like the m2e does not apply the excludes to generated source folder. |
When importing a Maven project, M2E apply exclusions to resource directories (e.g. @branflake2267 I think GPE should possibly just go look into the output folder ( @foal Judging from the code on GitHub, |
I know the reason why the m2e exclude the resources and will be happy if GPE (@branflake2267) will check the target as well as the source folders. Nor only for the module descriptions but and for another GWT related resources. @tbroyer I mean Java code generation by WSDL :) But may by you are right. Anyway your plugin allows to customize the [outputDirectory] and it is quite enough. And I like the dependencies generation and don't want to skip it :) BTW. If you will change the mind, there few links to "generated sources/resources path conventions": |
Generated sources (as opposed to generated resources) are different: they must be added to the source roots if you want them compiled by the Generated resources on the other hand can either be generated into a folder that's attached as a resource directory and then copied to the build output directory by the |
OK |
Now the goal
gwt:generate-module
generate the module directly to target. It will be better to use${project.build.directory}/generated-sources/resources
by default. It will allows to another tools (e.g. Eclipse) correct work with generated module fileThe text was updated successfully, but these errors were encountered: