You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Richard Schmidt <do...@gmail.com> on 2022/04/14 23:15:14 UTC
Could not find artifact org.openjfx:javafx-web
I am new to maven, NetBeans 13, and gluon and graalvm. I just created a a gluon javafx project for desktop platform. I needed to add a dependency to POM.XML file for org.openjfx, javafx-web. Most of the time I get the “could not find artifact” javafx-web. Once in a while it works, but not for long. I have tried to use other repositories to get it, but that fails also. Would like to know how to get over this hump. Thanks!
Sent from Mail for Windows
Re: Could not find artifact org.openjfx:javafx-web
Posted by Nils Breunese <ni...@breun.nl>.
Richard Schmidt <do...@gmail.com> wrote:
> I am new to maven, NetBeans 13, and gluon and graalvm. I just created a a gluon javafx project for desktop platform. I needed to add a dependency to POM.XML file for org.openjfx, javafx-web. Most of the time I get the “could not find artifact” javafx-web. Once in a while it works, but not for long. I have tried to use other repositories to get it, but that fails also. Would like to know how to get over this hump. Thanks!
I am not familiar with Gluon or JavaFX, but it seems org.openjfx:javafx-web is available from Maven Central [0]. I just tried adding it to one of my projects, and Maven downloaded the dependency just fine:
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-web</artifactId>
<version>17.0.2</version><!-- Match this version to your Java version -->
</dependency>
I wonder what you mean with ’Once in a while it works, but not for long’. Once Maven has downloaded a dependency into your local Maven repository, it should find it for all next builds, because the dependency doesn’t need to be downloaded again.
Nils.
[0] https://search.maven.org/artifact/org.openjfx/javafx-web
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org