with the pom.xml file I gave you.
You also to need to know how to use the maven repository.
steps are :
1. go to https://mvnrepository.com/
2. then go to search box.
3. type org.openjfx
4. select
JavaFX Controls
<https://mvnrepository.com/artifact/org.openjfx/javafx-controls>
5. then select the top release from central tab.
That represents the latest release of the library.
After you select JAVAXFX CONTROLS then there are a number of tabs.
mvn , gradle CBT etc.
6. as you are using maven you copy and paste
the text in your pom file.
That is how you tell maven to download the library
you want to use in yur rogram.
that's it..
mvn tab copy and paste into pom.xml
<!-- https://mvnrepository.com/artifact/org.openjfx/javafx-controls -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>14-ea+6</version>
</dependency>
On 02/01/2020 01:23, Chris Olsen wrote:
Zahid and All --
Thank you! I now have had some success, and things are looking up. I think I
need to study some existing working pom files, and this will be very helpful!
-- Chris
----- Original Message -----
From: zahid <[email protected]>
To: Geertjan Wielenga <[email protected]>, Chris Olsen <[email protected]>
Cc: users <[email protected]>
Sent: Wed, 01 Jan 2020 18:48:45 -0500 (EST)
Subject: Re: Newbie to Maven problem -- JavaFX runtime components missing
if you want to run the example at
https://openjfx.io/openjfx-docs/maven
Below is the complete pom.xml file I just made it.
I have tested it.
you also need to create the directory structure maven expects.
see
https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
with windows same directory structure.
your pom.xml file in the top directory. i.e C:\helloapp.
You run the command mvn clean javafx:run from C:\helloapp
C:\src\main\java\HelloFX.java
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.openjfx</groupId>
<artifactId>hellofx</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jfx.version>14-ea+6</jfx.version>
</properties>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>${jfx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${jfx.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.1.7.RELEASE</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>12</release>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.3</version>
<configuration>
<mainClass>HelloFX</mainClass>
</configuration>
</plugin>
<!--
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
-->
</plugins>
</build>
</project>
On 01/01/2020 21:26, Geertjan Wielenga wrote:
https://openjfx.io/openjfx-docs/maven
Gj
On Wed, 1 Jan 2020 at 18:24, Geertjan Wielenga <[email protected]
<mailto:[email protected]>> wrote:
There’s a colon in there, at least.
javafx:run
If I remember correctly. Really take a look at that YouTube clip
again.
Gj
On Wed, 1 Jan 2020 at 18:23, Geertjan Wielenga
<[email protected] <mailto:[email protected]>> wrote:
Is that what you see in that YouTube clip? Can you take
another look at it?
Gj
On Wed, 1 Jan 2020 at 18:17, Chris Olsen <[email protected]
<mailto:[email protected]>> wrote:
Hi, again (and thanks again for lightning!) --
> https://m.youtube.com/watch?v=8xaRwqcKPSI
I did that (and remembered that I had watched this
previously with the same result as follows). I am now
getting a message,...
Unknown lifecycle phase "javafx".. You must...or a goal
in the format <plugin-prefix:<goal>or...
The immediate neighborhood of concern (so far as I can
tell) in the nbactions.xml file is:
<goals>
<goal>clean</goal>
<goal>javafx</goal>
<goal>run</goal>
</goals>
-- Chris
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]
<mailto:[email protected]>
For additional commands, e-mail:
[email protected]
<mailto:[email protected]>
For further information about the NetBeans mailing lists,
visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
--
www.backbutton.co.uk
¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.