GWT - maven -dependence vers un autre projet
Bonjour
Je prépare une demo (AVV) avec GWT. mon projet est constitué de deux module (DEMO-CORE et DEMO-WEB) ,
- la partie core contient les services et les DAO: maven/spring hibernate
- le WEB gère juste la présentation (maven3, spring GWT2.6).
dans le web j'utilise un dto du core (com.demo.dto.UserDto)
mon problème c'est lors de a compilation du module gwt via maven, le dto est inconnu. sinon si je passe par éclipse je n 'ai aucun problème
quelqu'un à une idé svp.
merci d'avance
pom.xml
Code:
1 2 3 4 5 6 7 8
|
<dependency>
<groupId>com.gwt.demo</groupId>
<artifactId>DEMO_CORE</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency> |
gwtDemo.gwt.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<?xml version="1.0" encoding="UTF-8"?>
<module rename-to='gwtDemo'>
<inherits name='com.google.gwt.user.User' />
<inherits name='com.google.gwt.junit.JUnit' />
<inherits name='com.google.gwt.user.theme.standard.Standard' />
<entry-point class='com.demo.client.gwtDemo' />
<source path='client' />
<source path='shared' />
<source path='dto' />
</module> |
exception:
Code:
1 2 3 4 5 6 7 8 9 10
|
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO] Finding entry point classes
[INFO] [ERROR] Errors in 'file:/D:/developpement/projets/GWT_DEMO/DEMO_WEB/src/main/java/com/demo/client/gwtDemo.java'
[INFO] [ERROR] Line 48: No source code is available for type com.demo.dto.UserDto; did you forget to inherit a required module?
[INFO] [ERROR] Unable to find type 'com.demo.client.gwtDemo'
[INFO] [ERROR] Hint: Previous compiler errors may have made this type unavailable
[INFO] [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding i
ts source path entries properly
[INFO] ------------------------------------------------------------------------ |