Comments (6)
It's possible to configure 2 compile
executions, but not to pass several module names to a single compile
execution. That could possibly be added though (most likely through another goal)
But sharing resources could also be done by sharing a dependency, given that GWT loads everything from the classpath.
from gwt-maven-plugin.
Still think that forcing one and only one module is a bit confusing (only confusing in non-standard cases, but still confusing), not sure the advantages. For example using <automod>
(only one) to use the auto generated module, and <modules><module>
(multiples) to enable traditional module definition will be (IMO) easier to understand/predict-the-result coming from mojo plugin.
from gwt-maven-plugin.
Thinking about it, supporting multi modules is not as simple as it may sound: how do you configure the moduleName vs. moduleShortName? (that's used for staleness checks; and what if results vary depending on module order? that'd influence the way you configure things) how do you do staleness checks given you can't really subset the input sources? (this is not really different than using several compile executions though) and more importantly, would you only recompile changed modules or recompile them all as soon as one is detected as stale? (what if one version of GWT has a bug and results vary depending on the compiled modules? should the behavior be configurable?)
I don't really know the exact implications on compiling time, including across versions (remember the plugin aims at support the latest stable release, previous stable release, and latest snapshot), and with incremental compilation.
Feel free to send a PR, but I'd rather leave this for later.
from gwt-maven-plugin.
I agree @tbroyer. In the meantime I found another solution. Instead of two different entry point I use two different places / activities. Actually that fits better to my use case.
So I don't mind closing or put on hold.
from gwt-maven-plugin.
Hi
any news about this theme - supporting multi modules?
Decided to change Mojo gwt plugin to maven gwt plugin and faced with this problem
i my application there are 4 modules with different entry points and different gwt.xml files.
and cant option it in pom like in mojo's.
the reason of changing plugins is that your plugin can add hash/modified info to *.nochace.js during compilation and it would help me to solve caching problem in deploy/redeploy process.
so maybe is there any window how to configure multi modules?
have read about several executions but havent undestand how to configure it in pom depend on modules.
thanks for reply
from gwt-maven-plugin.
See https://groups.google.com/d/msg/google-web-toolkit/sjh6AGfeCKQ/Dp2fNL6HAQAJ for how to configure several executions.
from gwt-maven-plugin.
Related Issues (20)
- Plugin does not check resource include/exclude when doing conflict-detection with source roots in package-lib HOT 2
- Is 2.9.0 ready? HOT 5
- Compile gwt-app to jar instead of war? HOT 1
- 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
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.