Giter Club home page Giter Club logo

Comments (6)

eliasbalasis avatar eliasbalasis commented on August 25, 2024

test-GWT.zip
Here is a set of Maven projects I prepared which demonstrates the behavior of both Maven GWT plugins.
You can import this in Eclipse of recent version (I used 4.14) with "GWT Eclipse Plugin" installed and "Run As / GWT Development mode with Jetty".
Notice that the "test.GWT.legacy" project runs as expected but the "test.GWT.tbroyer" project gets recognized by "GWT Eclipse Plugin" but doesn't deliver the required "index.html" file.

from gwt-maven-plugin.

tbroyer avatar tbroyer commented on August 25, 2024

I'll have a look at your reproducer but this issue should be in the GWT Eclipse Plugin issue tracker, this is where IDE integration is done.

from gwt-maven-plugin.

eliasbalasis avatar eliasbalasis commented on August 25, 2024

Well said.

Unfortunately, I cannot ask "GWT Eclipse Plugin" team to investigate an integration problem with a solution from another vendor, I am certain they will send me back to you, or some teams coordination quite difficult to establish will be required.

Equally, I appreciate this is not your area of responsibility either.

I think I will stay with the legacy "GWT Maven plugin" for now, which does work with "GWT Eclipse Plugin".

from gwt-maven-plugin.

tbroyer avatar tbroyer commented on August 25, 2024

What I'm saying is that this plugin is 99% IDE-agnostic: the only exception is this file.
On the other hand, the GWT Eclipse Plugin has specific code to handle projects using this plugin.

Also, once you've imported the project into Eclipse, you're not using the Maven plugin anymore; the "Run as..." actions are purely Eclipse things, and I have zero idea what they're doing and how they work.

So this is 100% a GWT Eclipse Plugin issue.

BTW, the GWT Eclipse Plugin is a one-man project that hasn't been maintained for more than 2 years now.
If I had one advice, it would be to try to make your projects IDE-agnostic; Gradle makes this easier, but there are ways to do it with Maven too (and this plugin tries to make it easy/easier): https://github.com/tbroyer/gwt-maven-archetypes (you'll notice that the Tomcat Maven Plugin is unmaintained too, so use Jetty, despite the necessary hacks to make it work in a reactor build, or enjoy the Maven limitations and mvn install your modules before you can call a plugin, such as Cargo or whatever you need to run your web server, in a specific submodule)

from gwt-maven-plugin.

tbroyer avatar tbroyer commented on August 25, 2024

Regarding your attached project: the project is not a gwt-app, or at least it's "not only" a gwt-app: it includes an src/main/webapp that no plugin is going to use (the maven-war-plugin is not bound to any phase, so its configuration is mostly useless, unless you specifically call its goals from the command line, such as mvn war:war, but then it'll conflict with the gwt:compile and/or gwt:package-app goals.

This probably explains why it doesn't quite "work" in Eclipse either.

from gwt-maven-plugin.

eliasbalasis avatar eliasbalasis commented on August 25, 2024

plugin is 99% IDE-agnostic

This confirms my original suspicion that the plugin is not meant to work with "GWT Eclipse Plugin".

I agree, it is a GWT Eclipse Plugin issue.

Thanks for the advice, I will try to make my projects IDE-agnostic.

However, https://github.com/gwt-plugins/gwt-eclipse-plugin#maven claims to support both Maven plugins
Also, the Maven WAR plugin needs to be properly configured, see https://github.com/branflake2267/Archetypes/blob/master/archetypes/gwt-basic/pom.xml
I will give it a try

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.