According to https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html, the system scope is similar to the provided one, so it's not transitive and must be added to the web-client and mobile-client modules as well.
-- (also note that this page says the system scope is deprecated; you're encouraged to publish them to a Maven repository manager, or have each developer install them to their local Maven repo, or declare a repository in your POM with a file:///${basedir}/… URL (see https://www.cloudbees.com/blog/playing-trade-offs-maven that I shared above already; formatting is broken and you'll have to view the source to read the XML snippets, but it's mostly readable)
On Monday, February 5, 2018 at 9:43:09 AM UTC+1, Martones wrote:
On Monday, February 5, 2018 at 9:43:09 AM UTC+1, Martones wrote:
Yes it works with package! :) Great, once more thanks a lot Thomas!I hope this is the last point, but I didnt manage to include a "standalone" jar. I think I might as well try to find some up to date solution (not sure the legacy code will be GWT 2.8 compliant). But I admit I would at least like to understand how to I include a system scope jar.I added a system scope dependency, added inherits and I still have "can not find Module.gwt.xml" :In shared I added, <inherits> and the dependency below (I suppose groupId, artifactId and version are arbitrary in this case).
<dependency><groupId>com.reveregroup.gwt</groupId> <artifactId>gwt-image-loader</artifactId> <version>1.1.4</version><scope>system</scope><systemPath>${basedir}/war/WEB-INF/lib/gwt-image-loader- 1.1.4.jar</systemPath> </dependency>Error :
[ERROR] Unable to find 'com/reveregroup/gwt/imagepreloader/ImagePreloader. gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
Ludovit
Le dimanche 4 février 2018 22:43:57 UTC+1, Thomas Broyer a écrit :Try package instead of prepare-package then (my bad, you should never use a phase earlier than package in a multi-module Maven project, as a rule if thumb --there are few exceptions, as always, depends on the project though)
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment