-
Notifications
You must be signed in to change notification settings - Fork 39
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
Something has changed in rc-7 and multi-module devmode dosen't work #86
Comments
This is also reproducable with https://github.com/TDesjardins/gwt-ol3/ . |
I found a warning while compiling when running devmode with rc-7: [WARN] Some stale types ([list with classes..]) were not reprocessed as was expected. This is either a compiler bug or a Generator has legitimately stopped creating these types. |
@TDesjardins This is actually (more or less) working as intended.
With rc-6, the sources where copied into With rc-7, sources are no longer copied to
In other words, it still doesn't work, and it now resolves the BUT, it works for my tests because I never deploy the
💥 BAM! 💥 👊 Maven is driving me nuts; it's so utterly broken you really have to wonder why it continues to attract people… At that point, I'm about to give up. Do me a favor everyone, do yourself a favor: move to Gradle, please! |
@ibaca This is exactly the same issue in rxgwt:
TL;DR: use “Fixing” your POMs to no longer use The |
Thanks! Yep, migrating to Gradle is definitely a top priority, I recently have been experimenting and it makes this mini change in the RxJava gradle.build (https://github.com/ibaca/RxJava/blob/1.x-gwt/build.gradle#L181) to create a task to verify GWT compilation, clean and explicit, pretty cool. |
Thanks for the detailed explanation! Because i am not proficient in Maven I didn't get all the things you have written. I changed the pom TDesjardins/gwt-ol@7e97687 and it now works for me. I think Maven attract people because it is widely spread and supported. And if you are working on an existing Maven project it is easier to add a dependency than move to a new build system. Gradle looks very interesting. But I think you also have to provide Maven support to attract people to use your stuff. |
This is crazy, it is too easy to install your artifact (so start using obsolete sources) and too difficult to realize that this is the cause. Using normal+sources dependencies works fine, I think that maybe it is just better to remove type:gwt-lib support. |
Particularly given 99% of people typing
You mean include the sources from any other project from the reactor that is depended on? (irrespective of Worth considering. Possibly more pros than cons. Let me think more about it. |
Nop, I mean to use both normal and classifer:soruces dependencies in inter-module dependencies. This is currently working correctly (I think... 😅), so just stop using type:gwt-lib. |
Which means that either the "normal" jar does not contain sources (i.e. is not a gwt-lib, and does not use gwt-lib packaging, which means more configuration in the POMs), or that you'd include the sources twice during tests and compilation (means more files to scan, uselessly). Maybe I could change the messages about which source folders from reactor projects are included, and which dependencies are skipped, to be of level INFO rather than DEBUG? That would help in debugging. |
I can confirm that the solution of @ibaca works perfectly fine. After running into a caching issue (loading (stale) lib from repository) that you mentioned before when using type:gwt-lib I tried the solution of @ibaca (see TDesjardins/gwt-ol@a80760a). Now it works like a charme with the additional benefit that you can change the lib code while running devmode. |
FWIW, I finally understood why the project reference wasn't found! (``) This is because the key used to lookup the referenced project uses the resolved snapshot version ( |
I could test but seems that the latest build failed: https://travis-ci.org/tbroyer/gwt-maven-plugin/jobs/249377706 |
The |
Yes, works fine with gwt-ol3. I used the Snapshot, configured client lib in demo with with |
Thanks; currently releasing 1.0-rc-8, expect to see it soon in Central. BTW, the GWT HEAD-SNAPSHOT “packaging” issue is being fixed in https://gwt-review.googlesource.com/c/18800/ (dates back to late May; I suppose those who use it also use JSR-305 annotations, the only reason for it to only be uncovered now) |
Thanks! 1.0-rc-8 is in MavenCentral now. Just integrated it in gwt-ol3: TDesjardins/gwt-ol@3e3bfef |
This might not be a bug, but gwt:devmode has stop working after upgrading to rc-7 in this project (https://github.com/intendia-oss/rxgwt). To reproduce the problem just execute
mvn clean gwt:devmode
(I just added clean because if you use the rc-6 plugin and change it to rc-7 without cleaning the project it might work). This command should open devmode with the 3 submodules accessible and correctly compiled athttp://localhost:8888
.The text was updated successfully, but these errors were encountered: