Giter Site home page Giter Site logo

Comments (6)

tbroyer avatar tbroyer commented on May 25, 2024

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.

ibaca avatar ibaca commented on May 25, 2024

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.

tbroyer avatar tbroyer commented on May 25, 2024

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.

hpehl avatar hpehl commented on May 25, 2024

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.

BedunkevichE avatar BedunkevichE commented on May 25, 2024

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.

tbroyer avatar tbroyer commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.