Comments (3)
The compilerArgs
parameter doesn't have a property
to be set in the POM's <properties>
or as a system property from the command line. This is on-purpose.
Currently, you can define "presets" using profiles, possibly appending new arguments using combine.item="append"
: http://blog.sonatype.com/2011/01/maven-how-to-merging-plugin-configuration-in-complex-projects/
To make it work from the command-line, the plugin would have to parse the property value as a "command line" to split arguments apart (there's CommandLineUtils#translateCommandline
from plexus-utils that can help), but that also means there needs to be another property that accepts a command-line as a String
, and that raises the question of what to do when both that property and <compilerArgs>
are non-empty.
The current design is based on the maven-compiler-plugin, which doesn't allow setting the compiler arguments from the command-line. I'm tempted to close this issue as a wontfix but could possibly accept a pull-request if things are kept simple.
from gwt-maven-plugin.
@tbroyer Thanks for the explanation.
I guess the workaround using profiles ist just fine. Are there plans to expose GWT's compiler arguments as properties ?
Maybe it would be worth to update the README.MD
to include some documentation of how to add custom compiler arguments to the GWT compiler. I can do a pull-request if you like.
from gwt-maven-plugin.
The plugin documentation is now published at https://tbroyer.github.io/gwt-maven-plugin/ and I linked to it form the README. I think that's enough, particularly:
- https://tbroyer.github.io/gwt-maven-plugin/compile-mojo.html#compilerArgs
- https://tbroyer.github.io/gwt-maven-plugin/migrating.html
from gwt-maven-plugin.
Related Issues (20)
- 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
- [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
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.