Comments (4)
What exactly does not work?
From what I can see:
- you have a
<jsInteropMode>JS</jsInteropMode>
incupofjoe-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 thecodeserverArgs
BTW). With only<codeserverArgs>
, onlymvn 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.
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.
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.
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)
- Version 1.0.0 do not support GWT 2.1.0 HOT 5
- Lombok not working with codeserver HOT 2
- Custom Linkers? HOT 2
- Source path from Inherited GWT.xml files are not being considered HOT 13
- GWT compilation failing with error, tried upgrading guice to 4.0 from 3.0 HOT 3
- Integration with GWT Eclipse Plugin seems partially broken HOT 6
- GWT 2.9.0 HOT 2
- GWT Multimodule modulename specificaiton HOT 1
- Redirected gwt artifacts cause a NPE when generating modules HOT 4
- Cannot compile GWT project using com.google.gwt:2.10.0-new-groupid-2 HOT 4
- API incompatibility issue with version 1.0.1 HOT 2
- Change default structure? HOT 2
- java process doesn't start. HOT 1
- Critical CVEs detected in transitive jar dependencies. HOT 1
- Validation warning, plugin should declare these Maven artifacts in `provided` scope HOT 1
- Upgrade to GWT 2.10.0 HOT 3
- goal codeserver fails when web app dependencies are managed in a BOM pom HOT 3
- [Question] How can i activate the debug logging ? because i keep getting the 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 HOT 5
- Release versión with GWT 2.11.0 support HOT 2
- [Question] Can I hide the devmode gui? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-maven-plugin.