tbroyer / gwt-maven-plugin

Starting fresh on building GWT projects with Maven
https://tbroyer.github.io/gwt-maven-plugin/
Apache License 2.0
167 stars 39 forks source link

module autodetection not supported? #128

Closed ahoehma closed 5 years ago

ahoehma commented 5 years ago

I try to run codeserver without any module defined. I expected that gwt is finding the module automatically. With the old org.codehaus.mojo:gwt-maven-plugin this seems to work. Workaround: I added my one and only module with <moduleName>com.siemens.spice.goos.widgetset.GoosVaadinWidgetSet</moduleName> or <modules>com.siemens.spice.goos.widgetset.GoosVaadinWidgetSet</modules> If I skip the definition then I got an NPE in AbstractDevModePojo line 163 "moduleList.add(configuration.getChild("moduleName").getValue());"

tbroyer commented 5 years ago

moduleName is used by many goals, so it's required.

Not to mention that it breaks as soon as you add, say, a GoosVaadinWidgetSetDev.gwt.xml, or start to modularize your GWT modules.

I'm striving for explicitness and implementation simplicity; autodetection would be too fragile and add too much code just so that you don't have to configure one single line in your POM. That's clearly not worth it.

Also, by definition, your .gwt.xml are source files that will be processed by Maven plugins, they shouldn't IMO be used as configuration for those plugins as well. Configuration goes into the POM, full stop.

ahoehma commented 5 years ago

Ok. Got it :) Thanks for the explanation.