Hi,
i'm using the gwt-maven-archetypes from thomas and wondering how and where to specify some options for the codeserver - say enable jsinterop.
what i tried was to add some configuration to the parent's POM:
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<extensions>true</extensions>
<configuration>
<sourceLevel>1.7</sourceLevel>
<failOnError>true</failOnError>
<!-- added to enable JSINTEROP -->
<codeserverArgs>
<XjsInteropMode>-XjsInteropMode JS</XjsInteropMode>
</codeserverArgs>
</configuration>
</plugin>
Starting the codeserver i get:
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ project-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] skip non existing resourceDirectory C:\projekte\intern\project\project-client\src\main\super
[INFO] Copying 192 resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ project-client ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< gwt-maven-plugin:1.0-beta-1:codeserver (default-cli) < process-classes @ project-parent <<<
[INFO]
[INFO] --- gwt-maven-plugin:1.0-beta-1:codeserver (default-cli) @ project-parent ---
[WARNING] Unknown argument: -XjsInteropMode JS
[WARNING] Google Web Toolkit 2.7.0
[WARNING] CodeServer [-[no]allowMissingSrc] [-bindAddress address] [-[no]compileTest] [-compileTestRecompiles count] [-[no]fa
[WARNING]
[WARNING] where
[WARNING] -[no]allowMissingSrc Allows -src flags to reference missing directories. (defaults to OFF)
[WARNING] -bindAddress The ip address of the code server. Defaults to 127.0.0.1.
[WARNING] -[no]compileTest Exits after compiling the modules. The exit code will be 0 if the compile succeeded
[WARNING] -compileTestRecompiles The number of times to recompile (after the first one) during a compile test.
[WARNING] -[no]failOnError Stop compiling if a module has a Java file with a compile error, even if unused. (d
[WARNING] -[no]precompile Precompile modules. (defaults to ON)
[WARNING] -port The port where the code server will run.
[WARNING] -src A directory containing GWT source to be prepended to the classpath for compiling.
[WARNING] -X[no]enforceStrictResources EXPERIMENTAL: Don't implicitly depend on "client" and "public" when a module doesn'
[WARNING] -workDir The root of the directory tree where the code server willwrite compiler output. If
[WARNING] -launcherDir An output directory where files for launching Super Dev Mode will be written. (Opti
[WARNING] -[no]incremental Compiles faster by reusing data from the previous compile. (defaults to ON)
[WARNING] -sourceLevel Specifies Java source level (defaults to auto:1.7)
[WARNING] -logLevel The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL
[WARNING] -XjsInteropMode Specifies JsInterop mode, either NONE, JS, or CLOSURE (defaults to NONE)
maybe i did the configuration in the wrong POM ?
Thanks,
Frank