2 Replies Latest reply on Jun 25, 2013 10:14 AM by Jonathan Fuerth

    cannot build maven from forge project

    Anton Hughes Master

      hi

       

      Im now trying to use forge to generate an Errai project.

       

      After installing the errai plugin in Forge, I ran " new-project --named errai-demo --topLevelPackage org.jboss.errai --projectFolder C:\Magick\dev\test\errai-demo"

       

      I then selected to add   [errai-ui] and [errai-bus]

       

      the pom that it created is:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <modelVersion>4.0.0</modelVersion>

        <groupId>org.jboss.errai</groupId>

        <artifactId>errai-demo</artifactId>

        <version>1.0.0-SNAPSHOT</version>

        <packaging>war</packaging>

        <dependencyManagement>

          <dependencies>

            <dependency>

              <groupId>org.jboss.spec</groupId>

              <artifactId>jboss-javaee-6.0</artifactId>

              <version>3.0.2.Final</version>

              <type>pom</type>

              <scope>import</scope>

            </dependency>

          </dependencies>

        </dependencyManagement>

        <dependencies>

          <dependency>

            <groupId>org.hibernate.javax.persistence</groupId>

            <artifactId>hibernate-jpa-2.0-api</artifactId>

            <scope>provided</scope>

          </dependency>

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-bus</artifactId>

            <version>2.2.0.Final</version>

          </dependency>

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-common</artifactId>

            <version>2.2.0.Final</version>

          </dependency>

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-ioc</artifactId>

            <version>2.2.0.Final</version>

          </dependency>

          <dependency>

            <groupId>org.jboss.errai</groupId>

            <artifactId>errai-tools</artifactId>

            <version>2.2.0.Final</version>

          </dependency>

          <dependency>

            <groupId>com.google.gwt</groupId>

            <artifactId>gwt-servlet</artifactId>

            <version>2.4.0</version>

          </dependency>

          <dependency>

            <groupId>com.google.gwt</groupId>

            <artifactId>gwt-user</artifactId>

            <version>2.4.0</version>

          </dependency>

          <dependency>

            <groupId>org.slf4j</groupId>

            <artifactId>slf4j-log4j12</artifactId>

            <version>1.6.1</version>

          </dependency>

        </dependencies>

        <repositories>

          <repository>

            <id>JBOSS_NEXUS</id>

            <url>http://repository.jboss.org/nexus/content/groups/public</url>

          </repository>

        </repositories>

        <build>

          <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>

          <finalName>errai-demo</finalName>

          <plugins>

            <plugin>

              <artifactId>maven-compiler-plugin</artifactId>

              <version>2.3.2</version>

              <configuration>

                <source>1.6</source>

                <target>1.6</target>

                <encoding>UTF-8</encoding>

              </configuration>

            </plugin>

            <plugin>

              <artifactId>maven-war-plugin</artifactId>

              <version>2.1.1</version>

              <configuration>

                <failOnMissingWebXml>false</failOnMissingWebXml>

              </configuration>

            </plugin>

            <plugin>

              <groupId>org.codehaus.mojo</groupId>

              <artifactId>gwt-maven-plugin</artifactId>

              <version>2.4.0</version>

              <executions>

                <execution>

                  <goals>

                    <goal>resources</goal>

                    <goal>compile</goal>

                  </goals>

                </execution>

              </executions>

              <configuration>

                <logLevel>INFO</logLevel>

                <runTarget>App.html</runTarget>

                <extraJvmArgs>-Xmx512m</extraJvmArgs>

                <soyc>false</soyc>

                <hostedWebapp>src/main/webapp/</hostedWebapp>

                <treeLogger>true</treeLogger>

              </configuration>

            </plugin>

            <plugin>

              <artifactId>maven-clean-plugin</artifactId>

              <version>2.4.1</version>

              <configuration>

                <filesets>

                  <fileset>

                    <directory>${basedir}</directory>

                    <includes>

                      <include>www-test/**</include>

                      <include>.gwt/**</include>

                      <include>.errai/**</include>

                      <include>src/main/webapp/WEB-INF/deploy/**</include>

                      <include>src/main/webapp/WEB-INF/lib/**</include>

                      <include>src/main/webapp/App/**</include>

                      <include>**/gwt-unitCache/**</include>

                      <include>**/*.JUnit/**</include>

                    </includes>

                  </fileset>

                </filesets>

              </configuration>

            </plugin>

          </plugins>

        </build>

      </project>

       

       

       

      When I try mvn clean install I get:

      [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:compile (default) on project errai-demo: GWT Module org.jboss.errai.ui.UI not found in project sources or resources. -> [Help 1]

       

      What am I doing wrong?