Replies inlined below:
On Sunday, March 24, 2013 2:07:14 AM UTC+1, Kris wrote:
-- On Sunday, March 24, 2013 2:07:14 AM UTC+1, Kris wrote:
Hi, I have a maven project with several modules.One module contains JPA objects. Used with hibernate.I would like make this a GWT module do I can use these classes in my GWT module.Don't know if this is even possible.. what will the GWT compiler say to all the jpa/hibernate annotations ??But so far I build the jpa module so it contains the source code and added a .gwt.xml file..<?xml version="1.0" encoding="UTF-8"?><module><inherits name="com.google.gwt.user.User" /> <source path='ppmock' /></module>This file is placed insrc/main/java/com/mycomp/jsi/model The java classes are insrc/main/java/com/mycomp/jsi/model/ppmock The jar file gets build including the gwt.xml file and the source file.In my GWT module I inherit the module..<inherits name="com.mycomp.jsi.model.ppmock"/> And in the pom.xml file of the gwt module :<compileSourcesArtifacts><compileSourcesArtifact>com.mycomp.jsi.model.ppmock</ compileSourcesArtifact> </compileSourcesArtifacts>
You're supposed to put a grouId:artifactId here. The plugin will resolve the version from the same dependency in the project and then resolve an artifact with that GAV and classifier=sources.
But if your JAR already contains the sources and gwt.xml files, you don't need compileSourcesArtifacts at all (anyway, it's a hack, you shouldn't use it, you should instead add a dependency on the sources artifact if needed)
But when I "mvn clean install" i get..[WARNING] Declared compileSourcesArtifact was not found in project dependencies com.mycomp.jsi.model.ppmock
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment