The "shared" module in the archetype is just that.
-- Look at how it calls the maven-source-plugin's source:jar-no-fork (config inherited from parent's pluginManagement) and then how it's used in the "client" module (that uses both its classes and its sources).
If your lib is a "client only" lib, then you can just declare src/main/java as a resource directory (<build><resources><resource>…) and they'll be packaged in your JAR, so in the project/module using it you'd have a single dependency (similar to how you depend on gwt-user, or gxt, or…)
On Saturday, November 15, 2014 4:35:19 PM UTC+1, Magnus wrote:
On Saturday, November 15, 2014 4:35:19 PM UTC+1, Magnus wrote:
Hi,I have a pure java library created with maven and the archetype "quickstart":mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart Now I would like to do the following:
- add classes to the library that use GWT classes
- use the library classes, e. g. in a maven modular-webapp on the client side
- edit the library code in eclipse, while eclipse "sees" the GWT classes
for example, to add imports automatically when hovering an unknown class nameHow do I have to modify the pure java library to do this?I have tried to adopt contents of the pom.xml from the modular-webapp archetype (client side), but without success.I also don't know if I have to add dependencies (gwt: user, dev and servlet, but which one?) or plugins (codehaus stuff), or both?There are docs on the net (codehaus, mojo, ...) but I am unsure if these are suitable for me.Remember, I don't want to build a web app here, just collect code to be used in web apps.Please point me to the right direction or to a suitable documentation.ThanksMagnus
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment