IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

GWT et Vaadin Java Discussion :

erreur de compilation avec maven


Sujet :

GWT et Vaadin Java

  1. #1
    Nouveau candidat au Club
    Inscrit en
    Septembre 2010
    Messages
    2
    Détails du profil
    Informations forums :
    Inscription : Septembre 2010
    Messages : 2
    Par défaut erreur de compilation avec maven
    Bonjour a tous,

    J'ai un projet maven déjà existant auquel j'essaie d'intégrer gwt, j'ai donc modifié mon pom.xml pour l'adapter a GWT.

    Lorsque je lance un mvn clean install j'ai l'erreur suivante :

    [ERROR] Unable to find type 'com.tyredating.gwt.client.Gwtcallcenter'
    [ERROR] Hint: Previous compiler errors may have made this type unavailable
    [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly

    j'au pourtant bien défini le fichier .gwt.xml


    Voici l'architecture de mon projet :

    projet
    . . src/main/java
    . . . com.tyredating.gwt
    . . . . public
    . . . . . Application.html
    . . . . . Application.css
    . . . . com.tyredating.gwt.client
    . . . . . Gwtcallcenter.java
    . . . . . GwtcallcenterService.java
    . . . . . GwtcallcenterServiceAsync.java
    . . . . . Gwtcallcenter.gwt.xml
    .bin
    .src
    .target
    pom.xml


    Voici egalement le contenu de mon fichier .gwt.xml

    <module>

    <!-- Inherit the core Web Toolkit stuff. -->
    <inherits name='com.google.gwt.user.User'/>

    <!-- inherit css based theme -->
    <inherits name='com.google.gwt.user.theme.standard.Standard'/>

    <!-- Specify the app entry point class. -->
    <entry-point class='com.tyredating.gwt.client.Gwtcallcenter'/>

    <!-- Specify the application specific style sheet. -->
    <stylesheet src='Application.css' />

    <source path='client'/>

    </module>

    Si quelqu'un a une idée ou une remarque je suis preneur, merci d'avance

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2010
    Messages
    61
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Mars 2010
    Messages : 61
    Par défaut
    Tu utilises le plugin gwt-maven ?

  3. #3
    Nouveau candidat au Club
    Inscrit en
    Septembre 2010
    Messages
    2
    Détails du profil
    Informations forums :
    Inscription : Septembre 2010
    Messages : 2
    Par défaut
    Oui j'utilise le plugin gwt-maven que j'ai ajouté a mon pom.xml que voici :


    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
    <groupId>com.tyredating.webapps</groupId>
    <artifactId>webapps-root</artifactId>
    <version>1.0-SNAPSHOT</version>
    </parent>
    <artifactId>callcenter-frontend</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <packaging>war</packaging>
    <name>CALLCENTER - FRONTEND</name>
    <description>TO BE COMPLETED</description>
    <properties>
    <gwtVersion>1.7.1</gwtVersion>


    </properties>
    <!-- include pluginRepository and repository for GWT-Maven -->
    <pluginRepositories>
    <pluginRepository>
    <id>gwt-maven-plugins</id>
    <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
    </pluginRepository>
    </pluginRepositories>
    <repositories>
    <repository>
    <id>gwt-maven</id>
    <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
    </repository>
    </repositories>


    <build>
    <finalName>120callcenter-frontend</finalName>

    <plugins>
    <!-- configure the GWT-Maven plugin -->
    <plugin>
    <groupId>com.totsp.gwt</groupId>
    <artifactId>maven-googlewebtoolkit2-plugin</artifactId>
    <version>2.0-RC1</version>

    <configuration>
    <compileTargets>
    <value>com.tyredating.gwt.client.Gwtcallcenter</value>
    </compileTargets>

    <runTarget>com.tyredating.gwt.Application/Application.html</runTarget>
    <logLevel>INFO</logLevel>
    <style>DETAILED</style>
    <noServer>false</noServer>
    <extraJvmArgs>-Xmx512m</extraJvmArgs>
    <gwtVersion>${gwtVersion}</gwtVersion>

    </configuration>

    <executions>
    <execution>
    <goals>
    <goal>compile</goal>
    </goals>
    </execution>
    </executions>

    </plugin>

    <!-- Use the dependency plugin to unpack gwt-dev-PLATFORM-libs.zip -->

    <!--
    (this is a replacement for the old "automatic" mode - useful if you
    don't have GWT installed already, or you just want a maven way to
    handle gwt deps)
    -->

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <executions>

    <execution>
    <id>unpack</id>
    <phase>compile</phase>
    <goals>
    <goal>unpack</goal>
    </goals>

    <configuration>

    <artifactItems>
    <artifactItem>
    <groupId>com.google.gwt</groupId>
    <artifactId>gwt-dev</artifactId>
    <version>${gwtVersion}</version>
    <classifier>${platform}-libs</classifier>
    <type>zip</type>
    <overWrite>false</overWrite>
    <outputDirectory>${settings.localRepository}/com/google/gwt/gwt-dev/${gwtVersion}</outputDirectory>
    </artifactItem>
    </artifactItems>
    </configuration>
    </execution>
    </executions>
    </plugin>

    <!--

    If you want to use the target/web.xml file mergewebxml produces,

    tell the war plugin to use it.

    Also, exclude what you want from the final artifact here.

    -->

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-war-plugin</artifactId>
    <configuration>

    <!-- <webXml>target/web.xml</webXml>-->

    <warSourceExcludes>.gwt-tmp/**</warSourceExcludes>
    </configuration>

    </plugin>

    <!-- tell the compiler we can use 1.5 -->

    <plugin>

    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>

    <source>1.5</source>
    <target>1.5</target>

    </configuration>

    </plugin>
    </plugins>


    </build>
    <dependencies>




    <!-- GWT deps (from central repo) -->

    <dependency>

    <groupId>com.google.gwt</groupId>
    <artifactId>gwt-servlet</artifactId>
    <version>${gwtVersion}</version>
    <scope>runtime</scope>

    </dependency>

    <dependency>

    <groupId>com.google.gwt</groupId>
    <artifactId>gwt-user</artifactId>
    <version>${gwtVersion}</version>
    <scope>provided</scope>



    </dependency>

    <dependency>
    <groupId>com.google.gwt</groupId>
    <artifactId>gwt-dev</artifactId>
    <version>${gwtVersion}</version>
    <classifier>${platform}-libs</classifier>
    <type>zip</type>
    <scope>provided</scope>
    </dependency>

    <dependency>
    <groupId>com.google.gwt</groupId>
    <artifactId>gwt-dev</artifactId>
    <version>${gwtVersion}</version>
    <classifier>${platform}</classifier>
    <scope>provided</scope>
    </dependency>

    </dependencies>
    <reporting>
    <plugins>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cobertura-maven-plugin</artifactId>
    </plugin>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-pmd-plugin</artifactId>
    <configuration>
    <linkXref>true</linkXref>
    <sourceEncoding>UTF-8</sourceEncoding>
    <minimumTokens>100</minimumTokens>
    <targetJdk>1.5</targetJdk>
    </configuration>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-changes-plugin</artifactId>
    <inherited>false</inherited>
    <configuration>
    <smtpHost>smtp.free.fr</smtpHost>
    </configuration>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <inherited>true</inherited>
    </plugin>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>changelog-maven-plugin</artifactId>
    <inherited>true</inherited>
    </plugin>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jxr-maven-plugin</artifactId>
    <inherited>true</inherited>
    </plugin>
    <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>jdepend-maven-plugin</artifactId>
    <inherited>true</inherited>
    </plugin>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-report-plugin</artifactId>
    </plugin>
    </plugins>
    </reporting>



    <!-- profiles (with activation per platform) -->

    <profiles>
    <profile>
    <id>gwt-dev-windows</id>
    <properties>
    <platform>windows</platform>
    </properties>
    <activation>
    <activeByDefault>true</activeByDefault>
    <os>
    <family>Windows</family>
    </os>
    </activation>
    </profile>

    <profile>
    <id>gwt-dev-mac</id>
    <properties>
    <platform>mac</platform>
    </properties>
    <activation>
    <os>
    <family>mac</family>
    </os>
    </activation>
    </profile>

    <profile>
    <id>gwt-dev-linux</id>
    <properties>
    <platform>linux</platform>
    </properties>
    <activation>
    <os>
    <name>Linux</name>
    </os>
    </activation>
    </profile>
    </profiles>
    </project>

    désolé pour le temps que j'ai mis a répondre, en ce moment je suis surchargé par le boulot,

  4. #4
    Membre confirmé
    Profil pro
    Inscrit en
    Décembre 2006
    Messages
    213
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Décembre 2006
    Messages : 213
    Par défaut
    moi j'utilise ce plugin!!

    http://mojo.codehaus.org/gwt-maven-plugin/

Discussions similaires

  1. Généricité : erreur de compilation (avec Maven)
    Par Invité dans le forum Langage
    Réponses: 6
    Dernier message: 07/05/2009, 11h16
  2. Erreur de compilation avec APRO
    Par netchip dans le forum Langage
    Réponses: 1
    Dernier message: 22/04/2006, 23h12
  3. Erreur de compil avec Outp
    Par sixon dans le forum C++
    Réponses: 2
    Dernier message: 27/02/2006, 15h01
  4. Erreur de compilation avec SWITCH et CASE
    Par barbarello dans le forum C++
    Réponses: 4
    Dernier message: 21/01/2006, 21h47
  5. [FreePascal]Erreur de compilation avec Dev-Pascal
    Par youngeikichi dans le forum Free Pascal
    Réponses: 3
    Dernier message: 17/02/2005, 14h22

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo