Re: Declared compileSourcesArtifact was not found in project dependencies

2013-03-25 Thread Björn Moritz
Hi Kris,

compileSourceArtifacts are related to maven artifacts, not to GWT modules; 
so the format for the artifact name needs to be groupId:artifactId. See 
also 
http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#compileSourcesArtifacts

Regards,

Björn

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 in 
 src/main/java/com/mycomp/jsi/model

 The java classes are in 
 src/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*
 *
  compileSourcesArtifactcom.mycomp.jsi.model.ppmock/compileSourcesArtifact
 *
 */compileSourcesArtifacts*
 *
 *
 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+unsubscr...@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.




Re: Declared compileSourcesArtifact was not found in project dependencies

2013-03-24 Thread Thomas Broyer
Note: for help with the org.codehaus.mojo:gwt-maven-plugin, please use the 
dedicated list at 
https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users

Replies inlined below:

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 in 
 src/main/java/com/mycomp/jsi/model

 The java classes are in 
 src/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*
 *
  compileSourcesArtifactcom.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+unsubscr...@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.




Declared compileSourcesArtifact was not found in project dependencies

2013-03-23 Thread Kris
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 in 
src/main/java/com/mycomp/jsi/model

The java classes are in 
src/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*
*
 compileSourcesArtifactcom.mycomp.jsi.model.ppmock/compileSourcesArtifact
*
*/compileSourcesArtifacts*
*
*
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+unsubscr...@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.