Comments (6)
The plugin doesn't read the configuration from maven-compiler-plugin
, but both can be configured using the same maven.compiler.source
property.
I.e. you either need:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>7</source>
</configuration>
</plugin>
<plugin>
<groupId>net.ltgt.gwt.maven</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<configuration>
<sourceLevel>7</sourceLevel>
</configuration>
</plugin>
or
<properties>
<maven.compiler.source>7</maven.compiler.source>
</properties>
from gwt-maven-plugin.
Confirmed working!
whenever compiler-plugin has classes to compile.
However, it fails when maven-compiler-plugin has nothing to do:
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ inherit ---
[INFO] Nothing to compile - all classes are up to date
...
[INFO] --- gwt-maven-plugin:1.0-alpha-3:compile (default) @ inherit ---
[INFO] Unexpected internal compiler error
....
Caused by: java.lang.IllegalArgumentException: Unknown sourceLevel value: 1.8
Or is it my local setup?
from gwt-maven-plugin.
How's your local setup? Did you use one of the alternatives I gave above? Or something else?
from gwt-maven-plugin.
Its just maven 2 on jdk8
I used the second alternative you mentioned (maven.compiler.source).
see here: https://github.com/h0ru5/gwt-chromeapp
It does work when I run a mvn clean
before it, or when there are changes that force maven-compiler-plugin to recompile.
But it's really not showbreaker
I might dive deeper into it next week
from gwt-maven-plugin.
sorry, my fault. the config of maven-compile-plugin was still there. that causes this strange behaviour
from gwt-maven-plugin.
It might be due to Maven 2. Maven 2 is dead and buried, you should use 3.0 or 3.1 by now. I'll try it with Maven 3 if I remember, and find time, etc. ;-)
from gwt-maven-plugin.
Related Issues (20)
- Plugin does not check resource include/exclude when doing conflict-detection with source roots in package-lib HOT 2
- Is 2.9.0 ready? HOT 5
- Compile gwt-app to jar instead of war? HOT 1
- 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
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.