Re: maven gwt module depends on a external jar
how to run my mavenize core project (which is called by webapp project written in gwt) in eclipse debug mode so I can run it step by step? I do not know where to ask, I try to subscribe http://dev.eclipse.org/mhonarc/lists/m2e-users/ and send the question to that email address, but I cannot see my question in http://dev.eclipse.org/mhonarc/lists/m2e-users/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DQTHog0IC54J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
On Tuesday, May 22, 2012 9:18:06 AM UTC+2, tong123123 wrote: > > I even try to add > > hk.gov.ehr.service.tch.als:als-admin-viewer-core > > > in section of gwt-maven-plugin, but it still does not > help!! > I see this method in > http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html#Using_general_purpose_JARs_as_GWT_library > but is it need to create a ''gwt.xml'' module file in core project? this > is totally ridiculous as it is not a gwt module Because GWT loads everything from the classpath, it doesn't matter where the GWT module is located "physically", just that it's in the "right" package. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/p-RjqZh1KqYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
I even try to add hk.gov.ehr.service.tch.als:als-admin-viewer-core in section of gwt-maven-plugin, but it still does not help!! I see this method in http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html#Using_general_purpose_JARs_as_GWT_library but is it need to create a ''gwt.xml'' module file in core project? this is totally ridiculous as it is not a gwt module On Monday, May 21, 2012 4:57:49 PM UTC+8, tong123123 wrote: > > I have a mavenize gwt module depends on a jar(this jar is simple jar, no > gwt related). > the project name of the jar is als-admin-viewer-core with maven coordinate > >> hk.gov.ehr.service.tch.als >> als-admin-viewer-core >> 1.0.0 >> jar >> > > and the mavenize gwt module name is > als-admin-viewer-webapp > and in its .pom.xml, I already add the dependency as follow: > >> >> hk.gov.ehr.service.tch.als >> als-admin-viewer-core >> 1.0.0 >> >> > > then I run mvn clean install of the jar project first ( > als-admin-viewer-core), then I run mvn clean install for mavenize gwt > project "als-admin-viewer-webapp", > but then the following error prompt: > >> error: >> Computing all possible rebind results for >> 'hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService' >> [INFO] Rebinding >> hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService >> [INFO] Checking rule > class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/> >> [INFO][ERROR] Errors in >> 'file:/D:/workspace/als-admin-viewer-webapp/src/main/java/hk/gov/ehr/service/tch/als/admin/viewer/client/SearchService.java' >> [INFO] [ERROR] Line 16: No source code is available for >> type hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria; did >> you forget to inherit a required module? >> [INFO] [ERROR] Line 17: No source code is available for >> type hk.gov.ehr.service.tch.als.admin.viewer.core.Log; did you forget to >> inherit a required module? >> > there is no error in eclipse IDE at design time, and I already add the > dependency of the jar in als-admin-viewer-webapp's .pom.xml, why it still > cannot find the class > "hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria" in " > als-admin-viewer-core"? > is modification of .gwt.xml needed? I see the developer guide of gwt, and > it only mention add element to other .gwt.xml module, no need to > add any jar in element in .gwt.xml !! > > > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/09EICZTWxmYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
I have called the source:jar-no-fork goal in my *-core.pom.xml project (and als-admin-viewer-core-1.0.0- sources.jar is generated), and I already add the dependency on the webapps pom.xml hk.gov.ehr.service.tch.als als-admin-viewer-core 1.0.0 sources in both the section and .gwt-maven-plugin section,but the error message is the same > No source code is available for type > hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria; did you > forget to inherit a required module? > I have checked the als-admin-viewer-core-1.0.0-sources.jar, and the LogSearchCriteria.java is definitely in the sources.jar, it seems webapp module still cannot add the dependency of the source...anything I am missing? thanks. On Mon, May 21, 2012 at 6:43 PM, Thomas Broyer wrote: > > > On Monday, May 21, 2012 12:31:57 PM UTC+2, tong123123 wrote: >> >> oh, the pom.xml in the link is quite complex, but in my >> als-admin-viewer-core pom.xml, I already write >> >>> jar >>> >> and I found under als-admin-viewer-core/target, the >> als-admin-viewer-core-1.0.0.**jar is already created, so what I miss is >> adding als-admin-viewer-core-1.0.0.**jar as a dependency in >> als-admin-viewer-webapp.pom.**xml? >> > > That's already the case (from what you said earlier). You need to call the > source:jar-no-fork goal in your *-core project (it'll generate a an > *-core-1.0.0-sources.jar in target) and add a dependency on that sources > JAR (in addition to the "binary" JAR you already have: one is for javac > –and Eclipse–, the other for GWT): > > hk.gov.ehr.service.**tch.als > als-admin-viewer-**core > 1.0.0 > > > hk.gov.ehr.service.**tch.als > als-admin-viewer-**core > 1.0.0 > sources > > >> -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/cBHTSC__TjMJ. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
I have called the source:jar-no-fork goal in my *-core.pom.xml project (and als-admin-viewer-core-1.0.0-sources.jar is generated), and I already add the dependency on the webapps pom.xml hk.gov.ehr.service.tch.als als-admin-viewer-core 1.0.0 sources in both the section and .gwt-maven-plugin section, but now the error is > Fail to execute goal > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile > (default-compile) on project als-admin-viewer-webapp:Compilation failure: > Compilation failure: > \worksapce\als-admin-viewer-webap\src\main\java\hk\gov\ehr\service\tch\als\admin\viewer\client\SearchResultPane..java:[43,51] > cannot find symbol > symbol: class LogSearchCriteria > The LogSearchCriteria class is in core project, and the SearchResultPanel[43, 51] is the import statement of LogSearchCriteria in WebApp GWT module, SearchResultPanel Class. what is the cause of this problem?? On Mon, May 21, 2012 at 6:43 PM, Thomas Broyer wrote: > > > On Monday, May 21, 2012 12:31:57 PM UTC+2, tong123123 wrote: >> >> oh, the pom.xml in the link is quite complex, but in my >> als-admin-viewer-core pom.xml, I already write >> >>> jar >>> >> and I found under als-admin-viewer-core/target, the >> als-admin-viewer-core-1.0.0.**jar is already created, so what I miss is >> adding als-admin-viewer-core-1.0.0.**jar as a dependency in >> als-admin-viewer-webapp.pom.**xml? >> > > That's already the case (from what you said earlier). You need to call the > source:jar-no-fork goal in your *-core project (it'll generate a an > *-core-1.0.0-sources.jar in target) and add a dependency on that sources > JAR (in addition to the "binary" JAR you already have: one is for javac > –and Eclipse–, the other for GWT): > > hk.gov.ehr.service.**tch.als > als-admin-viewer-**core > 1.0.0 > > > hk.gov.ehr.service.**tch.als > als-admin-viewer-**core > 1.0.0 > sources > > >> -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-web-toolkit/-/cBHTSC__TjMJ. > > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
On Monday, May 21, 2012 12:31:57 PM UTC+2, tong123123 wrote: > > oh, the pom.xml in the link is quite complex, but in my > als-admin-viewer-core pom.xml, I already write > >> jar >> > and I found under als-admin-viewer-core/target, the > als-admin-viewer-core-1.0.0.jar is already created, so what I miss is > adding als-admin-viewer-core-1.0.0.jar as a dependency in > als-admin-viewer-webapp.pom.xml? > That's already the case (from what you said earlier). You need to call the source:jar-no-fork goal in your *-core project (it'll generate a an *-core-1.0.0-sources.jar in target) and add a dependency on that sources JAR (in addition to the "binary" JAR you already have: one is for javac –and Eclipse–, the other for GWT): hk.gov.ehr.service.tch.als als-admin-viewer-core 1.0.0 hk.gov.ehr.service.tch.als als-admin-viewer-core 1.0.0 sources > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cBHTSC__TjMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
oh, the pom.xml in the link is quite complex, but in my als-admin-viewer-core pom.xml, I already write > jar > and I found under als-admin-viewer-core/target, the als-admin-viewer-core-1.0.0.jar is already created, so what I miss is adding als-admin-viewer-core-1.0.0.jar as a dependency in als-admin-viewer-webapp.pom.xml? sorry as the task is already delayed and anyway, thanks for your reply. On Monday, May 21, 2012 5:20:16 PM UTC+8, Thomas Broyer wrote: > > > On Monday, May 21, 2012 10:57:49 AM UTC+2, tong123123 wrote: >> >> I have a mavenize gwt module depends on a jar(this jar is simple jar, no >> gwt related). >> the project name of the jar is als-admin-viewer-core with maven coordinate >> >>> hk.gov.ehr.service.tch.als >>> als-admin-viewer-core >>> 1.0.0 >>> jar >>> >> >> and the mavenize gwt module name is >> als-admin-viewer-webapp >> and in its .pom.xml, I already add the dependency as follow: >> >>> >>> hk.gov.ehr.service.tch.als >>> als-admin-viewer-core >>> 1.0.0 >>> >>> >> >> then I run mvn clean install of the jar project first ( >> als-admin-viewer-core), then I run mvn clean install for mavenize gwt >> project "als-admin-viewer-webapp", >> but then the following error prompt: >> >>> error: >>> Computing all possible rebind results for >>> 'hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService' >>> [INFO] Rebinding >>> hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService >>> [INFO] Checking rule >> class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/> >>> [INFO][ERROR] Errors in >>> 'file:/D:/workspace/als-admin-viewer-webapp/src/main/java/hk/gov/ehr/service/tch/als/admin/viewer/client/SearchService.java' >>> [INFO] [ERROR] Line 16: No source code is available >>> for type hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria; >>> did you forget to inherit a required module? >>> [INFO] [ERROR] Line 17: No source code is available >>> for type hk.gov.ehr.service.tch.als.admin.viewer.core.Log; did you forget >>> to inherit a required module? >>> >> there is no error in eclipse IDE at design time, and I already add the >> dependency of the jar in als-admin-viewer-webapp's .pom.xml, why it still >> cannot find the class >> "hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria" in " >> als-admin-viewer-core"? >> is modification of .gwt.xml needed? I see the developer guide of gwt, and >> it only mention add element to other .gwt.xml module, no need to >> add any jar in element in .gwt.xml !! >> > > GWT needs the Java source code, so generate a sources JAR and add it as a > dependency too. > > See > https://github.com/tbroyer/gwt-maven-archetypes/blob/master/modular-webapp/src/main/resources/archetype-resources/shared/pom.xml#L24 > which > generates the sources JAR (the configuration is inherited from > https://github.com/tbroyer/gwt-maven-archetypes/blob/master/modular-webapp/src/main/resources/archetype-resources/pom.xml#L68), > > and > https://github.com/tbroyer/gwt-maven-archetypes/blob/master/modular-webapp/src/main/resources/archetype-resources/client/pom.xml#L83 > which > uses it. > Documentation for the maven-source-plugin: > http://maven.apache.org/plugins/maven-source-plugin/jar-no-fork-mojo.html > See also > http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html#Using_general_purpose_JARs_as_GWT_library > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ByszE34VEZUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: maven gwt module depends on a external jar
On Monday, May 21, 2012 10:57:49 AM UTC+2, tong123123 wrote: > > I have a mavenize gwt module depends on a jar(this jar is simple jar, no > gwt related). > the project name of the jar is als-admin-viewer-core with maven coordinate > >> hk.gov.ehr.service.tch.als >> als-admin-viewer-core >> 1.0.0 >> jar >> > > and the mavenize gwt module name is > als-admin-viewer-webapp > and in its .pom.xml, I already add the dependency as follow: > >> >> hk.gov.ehr.service.tch.als >> als-admin-viewer-core >> 1.0.0 >> >> > > then I run mvn clean install of the jar project first ( > als-admin-viewer-core), then I run mvn clean install for mavenize gwt > project "als-admin-viewer-webapp", > but then the following error prompt: > >> error: >> Computing all possible rebind results for >> 'hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService' >> [INFO] Rebinding >> hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService >> [INFO] Checking rule > class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/> >> [INFO][ERROR] Errors in >> 'file:/D:/workspace/als-admin-viewer-webapp/src/main/java/hk/gov/ehr/service/tch/als/admin/viewer/client/SearchService.java' >> [INFO] [ERROR] Line 16: No source code is available for >> type hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria; did >> you forget to inherit a required module? >> [INFO] [ERROR] Line 17: No source code is available for >> type hk.gov.ehr.service.tch.als.admin.viewer.core.Log; did you forget to >> inherit a required module? >> > there is no error in eclipse IDE at design time, and I already add the > dependency of the jar in als-admin-viewer-webapp's .pom.xml, why it still > cannot find the class > "hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria" in " > als-admin-viewer-core"? > is modification of .gwt.xml needed? I see the developer guide of gwt, and > it only mention add element to other .gwt.xml module, no need to > add any jar in element in .gwt.xml !! > GWT needs the Java source code, so generate a sources JAR and add it as a dependency too. See https://github.com/tbroyer/gwt-maven-archetypes/blob/master/modular-webapp/src/main/resources/archetype-resources/shared/pom.xml#L24 which generates the sources JAR (the configuration is inherited from https://github.com/tbroyer/gwt-maven-archetypes/blob/master/modular-webapp/src/main/resources/archetype-resources/pom.xml#L68), and https://github.com/tbroyer/gwt-maven-archetypes/blob/master/modular-webapp/src/main/resources/archetype-resources/client/pom.xml#L83 which uses it. Documentation for the maven-source-plugin: http://maven.apache.org/plugins/maven-source-plugin/jar-no-fork-mojo.html See also http://mojo.codehaus.org/gwt-maven-plugin/user-guide/library.html#Using_general_purpose_JARs_as_GWT_library -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wW0ifPlxN2EJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
maven gwt module depends on a external jar
I have a mavenize gwt module depends on a jar(this jar is simple jar, no gwt related). the project name of the jar is als-admin-viewer-core with maven coordinate > hk.gov.ehr.service.tch.als > als-admin-viewer-core > 1.0.0 > jar > and the mavenize gwt module name is als-admin-viewer-webapp and in its .pom.xml, I already add the dependency as follow: > > hk.gov.ehr.service.tch.als > als-admin-viewer-core > 1.0.0 > > then I run mvn clean install of the jar project first ( als-admin-viewer-core), then I run mvn clean install for mavenize gwt project "als-admin-viewer-webapp", but then the following error prompt: > error: > Computing all possible rebind results for > 'hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService' > [INFO] Rebinding > hk.gov.ehr.service.tch.als.admin.viewer.client.SearchService > [INFO] Checking rule class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/> > [INFO][ERROR] Errors in > 'file:/D:/workspace/als-admin-viewer-webapp/src/main/java/hk/gov/ehr/service/tch/als/admin/viewer/client/SearchService.java' > [INFO] [ERROR] Line 16: No source code is available for > type hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria; did > you forget to inherit a required module? > [INFO] [ERROR] Line 17: No source code is available for > type hk.gov.ehr.service.tch.als.admin.viewer.core.Log; did you forget to > inherit a required module? > there is no error in eclipse IDE at design time, and I already add the dependency of the jar in als-admin-viewer-webapp's .pom.xml, why it still cannot find the class "hk.gov.ehr.service.tch.als.admin.viewer.core.LogSearchCriteria" in " als-admin-viewer-core"? is modification of .gwt.xml needed? I see the developer guide of gwt, and it only mention add element to other .gwt.xml module, no need to add any jar in element in .gwt.xml !! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VyTWe8a-mXoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.