Comments (5)
OK, so, gwt:package-lib
(rather than gwt:jar
) is finally here in 7c4e86a
from gwt-maven-plugin.
Hello,
After moving (IDE refactoring) the file certidao/CertidaoEstagioPanel.java to certificado/CertificadoEstagioPanel.java I'm getting
[INFO] Job pt.ipb.suplemento.Suplemento_1_0
[INFO] starting job: pt.ipb.suplemento.Suplemento_1_0
[INFO] Compiling module pt.ipb.suplemento.Suplemento
[INFO] Tracing compile failure path for type 'pt.ipb.suplemento.client.modulos.sup.certidao.CertidaoEstagioPanel'
[INFO] [ERROR] Errors in 'file:/Users/fsousa/Projects/ipb/suplemento/suplemento-client/target/classes/pt/ipb/suplemento/client/modulos/sup/certidao/CertidaoEstagioPanel.java'
[INFO] [ERROR] Line 10: The import pt.ipb.suplemento.shared.model.Item.CERTIDAO_ESTAGIO cannot be resolved
[INFO] [ERROR] Line 59: CERTIDAO_ESTAGIO cannot be resolved to a variable
[INFO] [ERROR] Aborting compile due to errors in some input files
I have to manually remove the source files from target
find target/classes -type f -name CertidaoEstagioPanel\*
target/classes/pt/ipb/suplemento/client/modulos/sup/certidao/CertidaoEstagioPanel.java
target/classes/pt/ipb/suplemento/client/modulos/sup/certidao/CertidaoEstagioPanel.ui.xml
from gwt-maven-plugin.
ping
from gwt-maven-plugin.
@natros - Looks like gwt-maven-plugin
delegates to MavenResourceExecution
.
I believe you're therefore asking for a feature request on that project to better synchronise resources, unless you can recommend a better alternative?
I don't have a good handle on why the target
directory exists but it appears canonical. Probably it's necessary to support annotation processing or some such code and/or resource processing use case.
from gwt-maven-plugin.
FWIW, I'm still wondering what to do with those import-sources
goals, and whether I should make a gwt:jar
for libraries instead of marking source directories as resource directories too. This however means I would also need to change gwt:compile
and gwt:test
goals to use the source directories too.
BTW, the reason it's done this way today is:
- because that's (probably) how you'd do it if the plugin didn't do it for you (i.e. declare
src/main
javaas a resources directory, and use the
exec-maven-plugin` to run the GWT tools) - because if you'd do it that way, you possibly would want to make use of resource filtering (and the plugin currently ignores source directories that have been declared as resources directories, to explicitly permit those cases); though I believe one should not work this way (you should rather use the
template-maven-plugin
So, I might very well move towards a gwt:jar
goal, and gwt:compile
and gwt:test
adding the compile source roots to the classpath; and this is BTW the main reason this plugin isn't at 1.0 yet.
Closing now as I don't think there's anything actionable in this issue thread (and blame Maven โand possibly IntelliJ hereโ for broken incremental builds).
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.