webfx-project / webfx-cli

The Command Line Interface for WebFX. The terminal tool for developing WebFX applications.
https://webfx.dev
Apache License 2.0
9 stars 3 forks source link

GWT transpiler problem #13

Open CommonGrounds opened 1 month ago

CommonGrounds commented 1 month ago

After recent changes ( 4 hours before ) gwt transpiler show error :+1: [ERROR] Line 31: dev.webfx.platform.boot.spi.impl.ApplicationJobsBooter cannot be resolved to a type Before this changes everything was fine.

salmonb commented 1 month ago

I may have pushed some breaking changes this afternoon, but a webfx update on your project should make you back on track. Let me know if not.

salmonb commented 1 month ago

If webfx update doesn't work, try webfx update -c to make sure you have fresh Maven snapshots (including webfx.xml files from WebFX libraries such as WebFX Platform).

CommonGrounds commented 1 month ago

Now even webfx update -c doesn't help :

[ERROR] Failed to execute goal on project Meteo_WebFX-application: Could not resolve dependencies for project com.java4now:Meteo_WebFX-application:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: org.openjfx:javafx-controls:jar:${javafx.platform}:19 (absent), org.openjfx:javafx-graphics:jar:${javafx.platform}:19 (absent), org.openjfx:javafx-base:jar:${javafx.platform}:19 (absent), org.openjfx:javafx-media:jar:${javafx.platform}:19 (absent): org.openjfx:javafx-controls:jar:${javafx.platform}:19 was not found in https://nexus.gluonhq.com/nexus/content/repositories/releases during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of gluon-repository has elapsed or updates are forced -> [Help 1]

salmonb commented 1 month ago

That's a complete separate issue that is actually related to JavaFX and not WebFX.

See https://stackoverflow.com/questions/78542808/maven-project-fails-to-resolve-javafx-dependencies

The JavaFX Maven artifacts have an issue since a long time ago, which was tolerated by previous Maven version but not recent ones (> 3.9.6). Have you upgraded your Maven version?

The solution for now is to downgrade Maven to a compatible version with JavaFX, until the JavaFX team fixes that problem.

salmonb commented 1 month ago

José Pereda said in a recent comment on the stackoverflow page that the issue with the JavaFX pom has been fixed with JavaFX 23-ea+20.

So try to include this in your webfx.xml located at your project root level:

    <maven-pom-manual>
        <properties>
            <openjfx.version>23-ea+20</openjfx.version>
        </properties>
    </maven-pom-manual>

and then webfx update. This should bump your project to OpenJFX 23-ea+20.

Let me know if this solves the issue.

CommonGrounds commented 1 month ago

thanks for the amazingly fast reply! Yes, I upgrade maven version, i will try your suggestion and report back. Thanks;

salmonb commented 1 month ago

You're welcome!

If you need support for your meteo app, feel free to ask questions on the WebFX Discord chat.

If you want to request a forecast web service for ex, I can explain you how to do that with the WebFX API.