I have added some Apache Spark dependencies to my JavaFX project, and now its broken.
Java SDK 11
Dependencies:
- spark-sql_2.13(3.5.0)
- Spark-core_2.13(3.5.0)
- univocity-parsers(2.9.1)
我已经在MODULE-INFO.Java(使用Automatic-Module-Name属性编辑的 list 文件)中声明了它们
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] the unnamed module reads package org.apache.spark.unused from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql.util from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql.streaming from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql.internal from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sql and org.apache.spark.sqlapi
[ERROR] the unnamed module reads package org.apache.spark.unused from both org.apache.spark.sql and org.apache.spark.commonutils
[ERROR] the unnamed module reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.sql and org.apache.spark.commonutils
[ERROR] the unnamed module reads package org.apache.spark.api.java.function from both org.apache.spark.sqlapi and org.apache.spark.commonutils
[ERROR] module org.apache.spark.sql reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.spark.sql reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.spark.sql reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.util from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.internal from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.spark.sql reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module ojdbc10 reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module ojdbc10 reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module ojdbc10 reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql.util from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql.internal from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module ojdbc10 reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.json reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.json reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.json reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql.util from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql.internal from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.json reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module itextpdf reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module itextpdf reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module itextpdf reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql.util from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql.internal from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module itextpdf reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module EUSignJava reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module EUSignJava reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module EUSignJava reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql.util from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql.internal from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module EUSignJava reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.util from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.internal from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.commons.lang3 reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.util from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.internal from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.execution.streaming from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.catalyst.plans.logical from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module com.fasterxml.jackson.databind reads package org.apache.spark.sql.catalyst.analysis from both org.apache.spark.sqlapi and org.apache.spark.sql
[ERROR] module org.apache.spark.sqlapi reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.spark.sqlapi reads package org.apache.spark.sql.catalyst.util from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.spark.sqlapi reads package org.apache.spark.api.java.function from both org.apache.spark.commonutils and org.apache.spark.sqlapi
[ERROR] module org.apache.spark.sqlapi reads package org.apache.spark.unused from both org.apache.spark.commonutils and org.apache.spark.sql
[INFO] 100 errors
[INFO] -------------------------------------------------------------
如何在运行和构建应用程序时解决这些问题?