Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find gwt inherits #42

Closed
branflake2267 opened this issue Dec 22, 2015 · 15 comments
Closed

Can't find gwt inherits #42

branflake2267 opened this issue Dec 22, 2015 · 15 comments

Comments

@branflake2267
Copy link

I can't seem to get your plugin configured with this configuration
https://github.com/branflake2267/Archetypes/blob/master/archetypes/gwt-basic/pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="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>

  <groupId>com.github.branflake2267.archetypes</groupId>
  <artifactId>gwt-basic</artifactId>
  <packaging>gwt-app</packaging>
  <version>2.0-SNAPSHOT</version>

  <name>gwt-basic</name>
  <description>Basic GWT Maven setup.</description>

  <properties>
    <!-- GWT -->
    <gwt.version>2.8.0-beta1</gwt.version>
    <gwt.maven.plugin>1.0-rc-5</gwt.maven.plugin>

    <!-- Maven -->
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <build>
    <plugins>
      <!-- Java -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>

      <!-- GWT -->
      <!-- https://tbroyer.github.io/gwt-maven-plugin/usage.html -->
      <!-- http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22net.ltgt.gwt.maven%22%20AND%20a%3A%22gwt-maven-plugin%22 -->
      <plugin>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>${gwt.maven.plugin}</version>
        <extensions>true</extensions>
        <configuration>
          <moduleName>org.gonevertical.project.Project</moduleName>
          <moduleShortName>project</moduleShortName>
          <logLevel>TRACE</logLevel>
          <startupUrls>
            <startupUrl>project/project.html</startupUrl>
          </startupUrls>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <!-- GWT BOM -->
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt</artifactId>
        <version>${gwt.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <!-- GWT -->
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-user</artifactId>
      <!-- "provided" so that we don't deploy -->
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-dev</artifactId>
      <!-- "provided" so that we don't deploy -->
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-codeserver</artifactId>
      <!-- "provided" so that we don't deploy -->
      <scope>provided</scope>
    </dependency>

    <!-- Testing -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

</project>

Errors:
mvn clean package

Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-basic 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:enforce-encoding (default-enforce-encoding) @ gwt-basic ---
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:add-super-sources (default-add-super-sources) @ gwt-basic ---
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:add-test-super-sources (default-add-test-super-sources) @ gwt-basic ---
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:import-sources (default-import-sources) @ gwt-basic ---
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:generate-module (default-generate-module) @ gwt-basic ---
[INFO] /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/classes/org/gonevertical/project/Project.gwt.xml up to date - skipping
[INFO] 
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ gwt-basic ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/src/main/resources
[INFO] skip non existing resourceDirectory /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/src/main/super
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ gwt-basic ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:import-test-sources (default-import-test-sources) @ gwt-basic ---
[INFO] 
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ gwt-basic ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/src/test/resources
[INFO] skip non existing resourceDirectory /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/src/test/super
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ gwt-basic ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:test (default-test) @ gwt-basic ---
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-5:compile (default-compile) @ gwt-basic ---
[INFO] Public resources found in...
[INFO] Translatable source found in...
[INFO] Persistent unit cache dir set to: /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt-unitCache
[INFO] Opening cache file: /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt-unitCache/gwt-unitCache-7ec627effb3b40e9ed913fee21a6e187b6fde238-00000151CB713721
[INFO] Looking for previously cached Compilation Units in /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt-unitCache
[INFO] Loaded 256 units from cache file: gwt-unitCache-7ec627effb3b40e9ed913fee21a6e187b6fde238-00000151CB1B9776
[INFO] Loaded 1 units from cache file: gwt-unitCache-7ec627effb3b40e9ed913fee21a6e187b6fde238-00000151CB3A7FC8
[INFO] Compiling module org.gonevertical.project.Project
[INFO]    Found 256 cached/archived units.  Used 256 / 256 units from cache.
[INFO]    Compiling...
[INFO]       Compilation completed in 0.00 seconds
[INFO]    PersistentUnitCache cleanup requested
[INFO]    Added 0 units to PersistentUnitCache since last cleanup
[INFO]    Skipped PersistentUnitCache because no units were added
[INFO]    Tracing compile failure path for type 'org.gonevertical.project.client.ProjectEntryPoint'
[INFO]       Errors in 'file:/Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/classes/org/gonevertical/project/client/ProjectEntryPoint.java'
[INFO]          Line 14: No source code is available for type com.google.gwt.user.client.ui.RootPanel; did you forget to inherit a required module?
[INFO]          Line 14: No source code is available for type com.google.gwt.user.client.ui.HTML; did you forget to inherit a required module?
[INFO]    Removing invalidated units
[INFO]    Resolving com.google.gwt.core.client.AsyncProvider
[INFO]       Found type 'com.google.gwt.core.client.AsyncProvider'
[INFO]          Found type 'java.lang.Object'
[INFO]             Resolving method getClass
[INFO]                Found type 'java.lang.Class'
[INFO]                   Resolving method createForClass
[INFO]                      Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]                      Found type 'java.lang.String'
[INFO]                         Resolving method equals
[INFO]                            Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $createString
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                         Resolving method $isInstance
[INFO]                            Resolving annotation for jsinterop.annotations.JsMethod
[INFO]                   Resolving method createForEnum
[INFO]                      Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]                   Resolving method createForInterface
[INFO]                      Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]                   Resolving method createForPrimitive
[INFO]                      Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]                   Resolving method getPrototypeForClass
[INFO]                      Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]    Resolving com.google.gwt.core.client.GWT
[INFO]       Found type 'com.google.gwt.core.client.GWT'
[INFO]          Resolving method getTypeName
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving com.google.gwt.core.client.GwtScriptOnly
[INFO]       Found type 'com.google.gwt.core.client.GwtScriptOnly'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving com.google.gwt.core.client.JavaScriptException
[INFO]       Found type 'com.google.gwt.core.client.JavaScriptException'
[INFO]          Resolving method getException
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving com.google.gwt.core.client.JsDate
[INFO]       Found type 'com.google.gwt.core.client.JsDate'
[INFO]          Resolving method getYear
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method setYear
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method toGMTString
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving com.google.gwt.core.client.SingleJsoImpl
[INFO]       Found type 'com.google.gwt.core.client.SingleJsoImpl'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving com.google.gwt.core.client.SingleJsoImplName
[INFO]       Found type 'com.google.gwt.core.client.SingleJsoImplName'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving com.google.gwt.core.client.UnsafeNativeLong
[INFO]       Found type 'com.google.gwt.core.client.UnsafeNativeLong'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]    Resolving com.google.gwt.core.client.js.JsExport
[INFO]       Found type 'com.google.gwt.core.client.js.JsExport'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving com.google.gwt.core.client.js.JsFunction
[INFO]       Found type 'com.google.gwt.core.client.js.JsFunction'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving com.google.gwt.core.client.js.JsNamespace
[INFO]       Found type 'com.google.gwt.core.client.js.JsNamespace'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving com.google.gwt.core.client.js.JsNoExport
[INFO]       Found type 'com.google.gwt.core.client.js.JsNoExport'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving com.google.gwt.core.client.js.JsProperty
[INFO]       Found type 'com.google.gwt.core.client.js.JsProperty'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving com.google.gwt.core.client.js.JsType
[INFO]       Found type 'com.google.gwt.core.client.js.JsType'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving com.google.gwt.core.client.package-info
[INFO]       Found type 'com.google.gwt.core.client.package-info'
[INFO]          Resolving annotation for com.google.gwt.util.PreventSpuriousRebuilds
[INFO]    Resolving com.google.gwt.core.client.prefetch.package-info
[INFO]       Found type 'com.google.gwt.core.client.prefetch.package-info'
[INFO]          Resolving annotation for com.google.gwt.util.PreventSpuriousRebuilds
[INFO]    Resolving com.google.gwt.core.client.testing.package-info
[INFO]       Found type 'com.google.gwt.core.client.testing.package-info'
[INFO]          Resolving annotation for com.google.gwt.util.PreventSpuriousRebuilds
[INFO]    Resolving com.google.gwt.core.shared.GwtIncompatible
[INFO]       Found type 'com.google.gwt.core.shared.GwtIncompatible'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving com.google.gwt.core.client.impl.WeakMapping
[INFO]       Found type 'com.google.gwt.core.client.impl.WeakMapping'
[INFO]          Resolving annotation for com.google.gwt.core.client.GwtScriptOnly
[INFO]    Resolving com.google.gwt.core.shared.impl.ThrowableTypeResolver
[INFO]       Found type 'com.google.gwt.core.shared.impl.ThrowableTypeResolver'
[INFO]          Resolving annotation for com.google.gwt.core.client.GwtScriptOnly
[INFO]    Resolving com.google.gwt.lang.Array
[INFO]       Found type 'com.google.gwt.lang.Array'
[INFO]          Resolving method canSet
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method getClassLiteralForArray
[INFO]             Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]          Resolving method getElementTypeId
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method isJavaArray
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]    Resolving com.google.gwt.lang.Cast
[INFO]       Found type 'com.google.gwt.lang.Cast'
[INFO]          Resolving method canCast
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method canCastClass
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method instanceOfString
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method instanceOfDouble
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method instanceOfBoolean
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method isFunction
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method isJavaScriptObject
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method isJsObjectOrFunction
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method jsinstanceOf
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method isArray
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]          Resolving method getClass
[INFO]             Resolving annotation for javaemul.internal.annotations.HasNoSideEffects
[INFO]    Resolving com.google.gwt.lang.Exceptions
[INFO]       Found type 'com.google.gwt.lang.Exceptions'
[INFO]          Resolving method wrap
[INFO]             Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]    Resolving com.google.gwt.lang.Runtime
[INFO]       Found type 'com.google.gwt.lang.Runtime'
[INFO]          Resolving method uniqueId
[INFO]             Resolving annotation for javaemul.internal.annotations.ForceInline
[INFO]    Resolving com.google.gwt.lang.Util
[INFO]       Found type 'com.google.gwt.lang.Util'
[INFO]          Resolving method makeEnumName
[INFO]             Resolving annotation for javaemul.internal.annotations.DoNotInline
[INFO]    Resolving java.io.ByteArrayOutputStream
[INFO]       Found type 'java.io.ByteArrayOutputStream'
[INFO]          Resolving method toString
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving java.lang.Boolean
[INFO]       Found type 'java.lang.Boolean'
[INFO]          Resolving method $createBoolean
[INFO]             Resolving annotation for jsinterop.annotations.JsMethod
[INFO]          Resolving method $createBoolean
[INFO]             Resolving annotation for jsinterop.annotations.JsMethod
[INFO]          Resolving method $isInstance
[INFO]             Resolving annotation for jsinterop.annotations.JsMethod
[INFO]    Resolving java.lang.Byte
[INFO]       Found type 'java.lang.Byte'
[INFO]          Found type 'java.lang.Number'
[INFO]             Resolving method $isInstance
[INFO]                Resolving annotation for jsinterop.annotations.JsMethod
[INFO]    Resolving java.lang.Character
[INFO]       Found type 'java.lang.Character'
[INFO]          Resolving method isSpace
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving java.lang.Deprecated
[INFO]       Found type 'java.lang.Deprecated'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]    Resolving java.lang.Double
[INFO]       Found type 'java.lang.Double'
[INFO]          Resolving method $createDouble
[INFO]             Resolving annotation for jsinterop.annotations.JsMethod
[INFO]          Resolving method $createDouble
[INFO]             Resolving annotation for jsinterop.annotations.JsMethod
[INFO]          Resolving method $isInstance
[INFO]             Resolving annotation for jsinterop.annotations.JsMethod
[INFO]    Resolving java.lang.FunctionalInterface
[INFO]       Found type 'java.lang.FunctionalInterface'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving java.lang.Override
[INFO]       Found type 'java.lang.Override'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]    Resolving java.lang.SuppressWarnings
[INFO]       Found type 'java.lang.SuppressWarnings'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]    Resolving java.lang.annotation.Documented
[INFO]       Found type 'java.lang.annotation.Documented'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving java.lang.annotation.Inherited
[INFO]       Found type 'java.lang.annotation.Inherited'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving java.lang.annotation.Retention
[INFO]       Found type 'java.lang.annotation.Retention'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving java.lang.annotation.Target
[INFO]       Found type 'java.lang.annotation.Target'
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving java.sql.Date
[INFO]       Found type 'java.sql.Date'
[INFO]          Resolving method <init>
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method <init>
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method getHours
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method getMinutes
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method getSeconds
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method setHours
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method setMinutes
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method setSeconds
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method toString
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving java.sql.Time
[INFO]       Found type 'java.sql.Time'
[INFO]          Resolving method <init>
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method getDate
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method getDay
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method getMonth
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method getYear
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method setDate
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method setMonth
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]          Resolving method setYear
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving java.sql.Timestamp
[INFO]       Found type 'java.sql.Timestamp'
[INFO]          Resolving method <init>
[INFO]             Resolving annotation for java.lang.Deprecated
[INFO]    Resolving java.util.AbstractHashMap
[INFO]       Found type 'java.util.AbstractHashMap'
[INFO]          Resolving method containsKey
[INFO]             Resolving annotation for javaemul.internal.annotations.SpecializeMethod
[INFO]          Resolving method get
[INFO]             Resolving annotation for javaemul.internal.annotations.SpecializeMethod
[INFO]          Resolving method put
[INFO]             Resolving annotation for javaemul.internal.annotations.SpecializeMethod
[INFO]          Resolving method remove
[INFO]             Resolving annotation for javaemul.internal.annotations.SpecializeMethod
[INFO]    Resolving java.util.EnumSet.EnumSetImpl
[INFO]       Found type 'java.util.EnumSet.EnumSetImpl'
[INFO]          Resolving method contains
[INFO]             Resolving annotation for javaemul.internal.annotations.SpecializeMethod
[INFO]          Resolving method remove
[INFO]             Resolving annotation for javaemul.internal.annotations.SpecializeMethod
[INFO]    Resolving javaemul.internal.annotations.CompilerHint
[INFO]       Found type 'javaemul.internal.annotations.CompilerHint'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]    Resolving javaemul.internal.annotations.DoNotInline
[INFO]       Found type 'javaemul.internal.annotations.DoNotInline'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for javaemul.internal.annotations.CompilerHint
[INFO]    Resolving javaemul.internal.annotations.ForceInline
[INFO]       Found type 'javaemul.internal.annotations.ForceInline'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for javaemul.internal.annotations.CompilerHint
[INFO]    Resolving javaemul.internal.annotations.GwtIncompatible
[INFO]       Found type 'javaemul.internal.annotations.GwtIncompatible'
[INFO]          Resolving annotation for java.lang.annotation.Retention
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for java.lang.annotation.Documented
[INFO]    Resolving javaemul.internal.annotations.HasNoSideEffects
[INFO]       Found type 'javaemul.internal.annotations.HasNoSideEffects'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for javaemul.internal.annotations.CompilerHint
[INFO]    Resolving javaemul.internal.annotations.SpecializeMethod
[INFO]       Found type 'javaemul.internal.annotations.SpecializeMethod'
[INFO]          Resolving annotation for java.lang.annotation.Target
[INFO]          Resolving annotation for javaemul.internal.annotations.CompilerHint
[INFO]    Finding entry point classes
[INFO]    [ERROR] Module has no entry points defined
[INFO] Closing cache file: /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt-unitCache/gwt-unitCache-7ec627effb3b40e9ed913fee21a6e187b6fde238-00000151CB713721 (0 units written)
[INFO] Deleting empty file: /Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt-unitCache/gwt-unitCache-7ec627effb3b40e9ed913fee21a6e187b6fde238-00000151CB713721
[INFO] Shutting down PersistentUnitCache thread
[INFO] Shutting down PersistentUnitCache thread
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.306 s
[INFO] Finished at: 2015-12-22T12:46:14-08:00
[INFO] Final Memory: 12M/316M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-5:compile (default-compile) on project gwt-basic: GWT Compiler exited with status 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@branflake2267
Copy link
Author

I noticed your module.gwt.xml is not in the normal directory I would expect it. I've got mine in the source folder, would that make a difference? If I could see the command line output, I think that would help me understand the working args and help drill it.

https://github.com/branflake2267/Archetypes/tree/master/archetypes/gwt-basic/src/main/java/org/gonevertical/project - my module file

@branflake2267
Copy link
Author

Looks like it's the gwt dependency scope, can't be provided. Commenting out fixes it... Hm.

@branflake2267
Copy link
Author

Nevermind that wasn't it, I was running the code server.

@branflake2267
Copy link
Author

mvn gwt:compile looks like this with the PR I pulled. This has the command line execution.

^CBrandons-MacBook-Pro:gwt-basic branflake2267$ mvn gwt:compile
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building gwt-basic 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-SNAPSHOT:compile (default-cli) @ gwt-basic ---
[INFO] Executing: /bin/sh -c cd '/Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target' && '/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/bin/java' 'com.google.gwt.dev.Compiler' '-logLevel' 'INFO' '-war' '/Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt-basic-2.0-SNAPSHOT' '-workDir' '/Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt/work' '-deploy' '/Users/branflake2267/git/Archetypes/archetypes/gwt-basic/target/gwt/deploy' '-style' 'OBFUSCATED' '-localWorkers' '8' '-optimize' '9' 'org.gonevertical.project.Project'
[INFO] Compiling module org.gonevertical.project.Project
[INFO]    Ignored 1 unit with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO]    [ERROR] Module has no entry points defined
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.786 s
[INFO] Finished at: 2015-12-22T13:36:59-08:00
[INFO] Final Memory: 11M/311M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-SNAPSHOT:compile (default-cli) on project gwt-basic: GWT Compiler exited with status 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Brandons-MacBook-Pro:gwt-basic branflake2267$ 

@branflake2267
Copy link
Author

Oh, I found the issue. For some reason the generated module is replacing what I have. After inspecting the classes/org/gonevertical/project/Project.gwt.xml I found the generated module. Instead of generating the module, it should be copying my module. But maybe I can correct this by resource definition in the pom.xml

<module rename-to="project">
  <inherits name="com.google.gwt.core.Core"/>
  <source path="client"/>
  <source path="shared"/>
  <super-source path="super"/>
</module>

@branflake2267
Copy link
Author

Copying the module to src/main won't work for me either.

@tbroyer
Copy link
Owner

tbroyer commented Dec 22, 2015

@branflake2267
Copy link
Author

I'm looking at the code, and it looks like the module configuration is defined in a meta-inf file, but I can't find an example yet.

@branflake2267
Copy link
Author

From what it appears there isn't a good path to read my Project.gwt.xml file. I can see the generation mechanism, but that plants itself in the classes. I get the impression that auto generation should be doing the heavy lifting, but how would I control the permutation properties or languages?

@branflake2267
Copy link
Author

How do you tell it to collapse a property?

@tbroyer
Copy link
Owner

tbroyer commented Dec 23, 2015

"Module generation" is only about <inherits>, iff you have dependencies with META-INF/GWT/mainModule (most likely only those you built yourself as gwt-lib).
Everything else you have to put in your src/main/module.gwt.xml like in any other GWT module file.

@branflake2267
Copy link
Author

I'm assuming I can name my gwt module descriptor something other than "module". I couldn't get that to work on my last try and gave up. Thanks for the info.

@branflake2267
Copy link
Author

Ugh. I neglected to try to rename the module to module.gwt.xml. Seems I'm having a hard time divorcing the previously learned module descriptor custom naming.

@ibaca
Copy link
Contributor

ibaca commented Dec 24, 2015

This plugin is perfect, the idea of one module autogenerated is probably a very good idea... theoretically, simplifies and unify one maven module - one gwt compilation output, but I think that in practice a lot of people coming from mojo plugin will suffer this disadvantages (at least I suffer 😜):

  • at first you are not sure what's happening because you expect similar behaviour to previous plugin (means, you configure your module in the pom and you frequently expect the skipModule behaviour but you do not set skipModule).
  • if you use generate module; intellij do not detect gwt correctly, because intellij uses gwt.xml in your source dir as detection point, and if gwt facet is enabled, intellij do not handle correctly module usage inspection if your gwt.xml are not in the source path (detect if you are using a class not inherited by your module); this is not a plugin problem, but this motivates not to use generate module feature
  • maybe not a good practice, but sometimes more than one module/gwt app exists in the same maven module. This plugin support multi module to be manually specified in the devmode/codeserver goals but do not support to add multiple module names in the pom.

So my suggestion is...

  • support multiple modules (I'll make a pull request if you think this is not a bad idea, although look like you have some motivation to not support multi-module that I'm not seeing)
  • if the module name exists in the classpath, generate module must not fail and not generate anything

Maybe those problems are only for my projects... anyway, hope this helps and thanks for creating this plugin.

@branflake2267
Copy link
Author

@ibaca Thanks for the info. I've got my module questions here and mention it b/c yours seem related #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants