Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipse Maven javafx Problem - Missing artifact org:openjfx:javafx-base:jar:${javafx.platform}:22.0.1 #258

Open
Erwin282 opened this issue Aug 6, 2024 · 1 comment

Comments

@Erwin282
Copy link

Erwin282 commented Aug 6, 2024

pom.xml File leads to the error described in the title.

How to solve it ?

linux UTF-8 1.8 1.8 22.0.1 ... org.openjfx javafx ${javafx.version} pom
	<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-graphics -->
	<dependency>
		<groupId>org.openjfx</groupId>
		<artifactId>javafx-graphics</artifactId>
		<version>${javafx.version}</version>
	</dependency>

...

@iRecursion
Copy link

iRecursion commented Sep 1, 2024

  • 即便在pom.xml中手动指定${javafx.platform}为linux,win,mac,都没用;

  • 没什么好的方式,只能通过传统的Java项目,然后添加User Library,这样是可行的;

  • 实在要用Maven方式,那只能通过systemPath的方式引入;

<dependency>
    <groupId>org.openjfx</groupId>
    <artifactId>javafx-base</artifactId>
    <version>${jfx.version}</version>
    <scope>system</scope>
    <systemPath>${jfx.sdk.path}/lib/javafx.base.jar</systemPath>
</dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants