Comments (5)
I think you'll need to add the packages that contain client side code (so shared & client) to the gwt module definition here:
https://github.com/freddyboucher/webapp/blob/master/webapp-client/src/main/module.gwt.xml
so replace <source path="" />
with <source path="client" />
and <source path="shared" />
from gwt-maven-archetypes.
The problem is that you have your module in com.test.client
(with <source path=""/>
) so com.test.shared
is not in the GWT source path.
To follow GWT's general conventions, you'd put your module in com.test
(i.e. <moduleName>com.test.App</moduleName>
). You shouldn't have to exclude com.test.server
from GWT's source path, as it shouldn't be present in the classpath, but you may want to change the <source path="" />
to:
<source path="client" />
<source path="shared" />
(or just remove the <source path="" />
, and the gwt:generate-module
mojo will automatically generate those 2 lines along with a <super-source path="super" />
).
So @kaefert is not wrong, but that wouldn't change anything alone, as the root of the problem is that you changed <moduleName>
.
diff --git a/webapp-client/pom.xml b/webapp-client/pom.xml
index 69e23fd..246d403 100644
--- a/webapp-client/pom.xml
+++ b/webapp-client/pom.xml
@@ -43,7 +43,7 @@
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
- <moduleName>com.test.client.App</moduleName>
+ <moduleName>com.test.App</moduleName>
<moduleShortName>webapp</moduleShortName>
</configuration>
</plugin>
diff --git a/webapp-client/src/main/module.gwt.xml b/webapp-client/src/main/module.gwt.xml
index 9bb19be..4253e11 100644
--- a/webapp-client/src/main/module.gwt.xml
+++ b/webapp-client/src/main/module.gwt.xml
@@ -3,7 +3,8 @@
<inherits name="com.google.gwt.user.User" />
<inherits name="com.google.gwt.user.theme.clean.Clean" />
- <source path="" />
+ <source path="client" />
+ <source path="shared" />
<entry-point class="com.test.client.App" />
from gwt-maven-archetypes.
You were right, I just moved the EntryPoint under com.test
freddyboucher/webapp@3ff99f3
Everything works fine!
Thanks @kaefert @tbroyer
from gwt-maven-archetypes.
No need to move the EntryPoint
; only the module needed to move (either that or create another module in com.test.shared
with <source path="" />
that the module under com.test.client
<inherits/>
)
from gwt-maven-archetypes.
@tbroyer
Perfect it works with my EntryPoint under /client package as you said!
freddyboucher/webapp@5adf074
PS: I'm going to open another issue because mvn jetty:start -Denv=dev
and it's probably not related with this one.
Thanks
from gwt-maven-archetypes.
Related Issues (20)
- Generate 1.0-SNAPSHOT archetype not working HOT 3
- External modules in super dev mode compilation HOT 6
- Should be updated to use GWT 2.8.0 release instead of 2.8.0-rc1 HOT 1
- modular-webapp artifact does not work with env-dev maven profile HOT 2
- How to add Spring Boot to this GWT project? HOT 2
- generated sources are not available to the gwt compiler HOT 1
- What to enter for package on the command line? HOT 1
- mygwtnew-server cannot be added to tomcat sever ? HOT 1
- dagger-guice-rf-activities archetypes not working HOT 2
- Why is codehaus maven plugin used in archetype for ltgt maven plugin? HOT 11
- [ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module (default-generate-module) on project project-client: Execution default-generate-module of goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module failed: A required class was missing while executing net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-9:generate-module: Lorg/sonatype/plexus/build/incremental/BuildContext; HOT 2
- Fails on mvn clean install HOT 4
- no clear/seamless way or mechanism to shutdown the running jetty and codeserver HOT 1
- Newly created archetype has build failure HOT 1
- mvn jetty:run: Address already in use HOT 4
- Is there any sample to using ltgt plugin for GWTP? HOT 1
- Is 2.9.0 ready?
- ${module.toLowerCase()} isn't replaced but lands somewhere in the source as is HOT 2
- Archetype for gwt-lib HOT 4
- update version of GWT to 2.11.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-maven-archetypes.