I don't know enough about maven/javafx to give a definitive answer. The pom generated by NB for a javafx project seems to imply that there is a separate artifact for each javafx-module (as in java defined module). The program runs, so stuff is getting downloaded.

Here's an excerpt
    <dependencies>
        <dependency>
            <groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
            <version>13</version>
        </dependency>
        <dependency>
            <groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
            <version>13</version>
        </dependency>
    </dependencies>

-ernie

On 4/15/2020 8:19 PM, Ty Young wrote:
Has anyone been able to get JavaFX from Maven(.m2) working? I'm having issues with this POM:


<?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.goliath</groupId>
<artifactId>org.goliath.proton.manager</artifactId>
    <version>1</version>
    <packaging>jar</packaging>
    <build>
        <plugins>
            <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
                <version>3.6.2</version>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.openjfx</groupId>
            <artifactId>javafx</artifactId>
            <version>14</version>
            <type>pom</type>
        </dependency>
    </dependencies>
    <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
    </properties>
</project>


The issue seems to be that Netbeans isn't downloading JavaFX, which is why every call to a JavaFX library is underlined in red because it can't be found. Isn't it supposed to download by itself? How do you manually trigger a download?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to