Giter Club home page Giter Club logo

Comments (4)

tbroyer avatar tbroyer commented on May 24, 2024

What exactly does not work?

From what I can see:

  • you have a <jsInteropMode>JS</jsInteropMode> in cupofjoe-client/pom.xml that should be a <compilerArg> like you did with <codeserverArgs> in the root POM (you should probably put it in the root POM next to the codeserverArgs BTW). With only <codeserverArgs>, only mvn gwt:codeserver would use JsInterop, mvn package wouldn't (neither compiling your GWT app nor running GWT tests).
  • gwt:codeserver works, but does not do anything with JsInterop. I unfortunately haven't yet played with JsInterop so I can't tell whether it's working as intended or not, but at least from the gwt-maven-plugin point of view, things are working. I'm closing this issue based on this; I'll reopen if needed.

from gwt-maven-plugin.

awcoding avatar awcoding commented on May 24, 2024

Hey Thomas,

What exactly does not work: I'm trying to export a symbol - MyFubar into JS, so that if I bring up Chrome Dev console it will show it as a variable. That doesn't seem to be happening here, even though others are able to do it with gradle based builds. (eg. https://github.com/christianbauer/gwt-polymer-jsinterop-test)

Regarding your suggestion, this is what I had in the root pom when you looked at it:

      <plugin>
        <groupId>net.ltgt.gwt.maven</groupId>
        <artifactId>gwt-maven-plugin</artifactId>
        <version>1.0-beta-2</version>
        <extensions>true</extensions>
        <configuration>
          <launcherDir>${project.build.directory}/gwt/launcherDir</launcherDir>
         <compilerArgs>
             <compileArg>-XjsInteropMode</compileArg>
             <compileArg>JS</compileArg>
         </compilerArgs>
            <codeserverArgs>
                <arg>-XjsInteropMode</arg>
                <arg>JS</arg>
            </codeserverArgs>
            <incremental>true</incremental>
            <jsInteropMode>JS</jsInteropMode>
        </configuration>
      </plugin>

I'm trying to cover all my bases there. I think something isn't working correctly. mvn -X won't show me the codeserver invoke string either. :(

from gwt-maven-plugin.

tbroyer avatar tbroyer commented on May 24, 2024

It might just be that you're missing a @JsNamespace: https://github.com/christianbauer/gwt-polymer-jsinterop-test/blob/75775b7113a4aeff60d3de9435c708e4fc4a4549/src/main/java/sometest/client/package-info.java

The Arguments: and Classpath: lines show up for me with mvn -X just before the Super Dev Mode starting up line, and they contain -XjsInteropMode JS. Maybe try mvn -X gwt:codeserver -Dgwt.logLevel=INFO to lower the logging level of SDM while retaining debug level for Maven.

from gwt-maven-plugin.

awcoding avatar awcoding commented on May 24, 2024

I still can't get it working. Thanks for the tip though. It's definitely passing the arg.

from gwt-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.