Giter Site home page Giter Site logo

Comments (5)

tbroyer avatar tbroyer commented on May 23, 2024 1

OK, so, gwt:package-lib (rather than gwt:jar) is finally here in 7c4e86a

from gwt-maven-plugin.

natros avatar natros commented on May 23, 2024

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.

natros avatar natros commented on May 23, 2024

ping

from gwt-maven-plugin.

dmg46664 avatar dmg46664 commented on May 23, 2024

@natros - Looks like gwt-maven-plugindelegates 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.

tbroyer avatar tbroyer commented on May 23, 2024

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/mainjavaas a resources directory, and use theexec-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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.