当前位置: 首页 > 知识库问答 >
问题:

JavaFX Maven插件:在当前项目和插件组中没有找到前缀为“JFX”的插件

冯玮
2023-03-14

我试图在Eclipse Maven项目中为我的JavaFX应用程序创建一个可执行jar。

我正在跟踪以下内容:在Eclipse中使用Maven的JavaFx应用程序


在当前项目中没有找到前缀为'jfx'的插件,在插件组中
尝试运行目标时出现错误:jfx:jar

完全生成错误:

[INFO] Scanning for projects...
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/zenjava/javafx-maven-plugin/8.1.2/javafx-maven-plugin-8.1.2.pom
[WARNING] Failed to retrieve plugin descriptor for com.zenjava:javafx-maven-plugin:8.1.2: Plugin com.zenjava:javafx-maven-plugin:8.1.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.zenjava:javafx-maven-plugin:jar:8.1.2
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-release-plugin/2.3.2/maven-release-plugin-2.3.2.pom
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-release-plugin:2.3.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-release-plugin:jar:2.3.2
[INFO] Downloading: https://repo.maven.apache.org/maven2/com/zenjava/maven-metadata.xml
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata com.zenjava/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Failure to transfer com.zenjava/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata com.zenjava/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.831 s
[INFO] Finished at: 2017-01-18T15:36:52+08:00
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'jfx' in the current project and in the plugin groups [com.zenjava, org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\alexismatunog\Documents\My Docs\03_OE\Java\workspace\Maven\m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

为了解决这个问题,我已经尝试了以下方法:
1。输入MVN clean install(构建成功)
2。在settings.xml上添加了 com.zenjava

另外,我已经在pom.xml中添加了 节点

    <plugin>
        <groupId>com.zenjava</groupId>
        <artifactId>javafx-maven-plugin</artifactId>
        <version>8.1.2</version>
        <configuration>
            <mainClass>com.sample.MainApp</mainClass>
        </configuration>
    </plugin>

我怎样才能解决这个问题?

=====================================================================================================================================================================================导入根证书后生成成功。另外,我已经按照Fibrefox的建议用jfx插件8.7.0更新了我的pom文件。

共有1个答案

充培
2023-03-14

您需要将网络ssl证书安装到jre CACERTS。

第一步:获得证书。

    null

步骤2:将证书安装到cacerts

  1. 打开命令提示符或终端并键入命令

mvn-版本

 类似资料:
  • 我试图部署一个maven java应用程序在heroku使用eclipse JEE。但当我运行我得到了这个错误 [错误]在当前项目和插件组[org.apache.maven.plugins,org.codehaus.mojo]中没有找到前缀heroku的插件[本地(C:\用户\menna. m2\repository),中央(https://repo.maven.apache.org/maven2

  • 执行mvn spring:启动运行后出现以下错误: [错误]在当前项目和插件组[org.apache.maven.plugins,org.codehaus.mojo]中没有找到前缀“Spring”的插件,可从存储库[本地(/path/to/本地/repo)、Spring快照(http://repo.spring.io/snapshot)、Spring-里程碑(http://repo.spring.

  • 我跑 命令,我得到 --在当前项目中,以及从存储库[local(C:\work.m2\repository)]获得的插件组[org.apache.maven.plugins,org.codehaus.mojo]中,未找到前缀为“jetty”的插件,错误:-- 控制器 网状物xml 苹果onfig.xml 波姆。xml

  • 我已经阅读了几个类似问题的问题和帮助1页。不幸的是,我被困住了。 一个可能的原因可能是由代理引起的,但这里没有这样的代理。此外,当我从Eclipse更新它时,我PC中的所有maven项目都已成功更新。所以我放弃了这种可能性。 我检查的另一件事是在我的本地存储库中查找codehaus,我找到了它(C:\Users\myUser.m2\repository\org\codehaus\mojo)。 另一

  • 问题内容: 我正在尝试构建一个使用Spring Tools Suite构建的springboot项目。执行时出现以下错误 这是我的pom.xml插件 我尝试了上面的jhipster插件,但错误没有变化。 问题答案: 如果您使用Spring Boot进行应用,则忘记添加 可能会导致此问题,以及缺少这些行

  • 我需要使用PITest进行突变测试,但我很难尝试通过Maven安装它,当我尝试运行PIT以执行突变和测试用例时,我在cmd中收到此错误: “在当前项目和插件组中未找到前缀“org.pitest”的插件” 有人能帮我解决这个问题吗? 我的代码: 我的测试: pom.xml: 这是出现在my cmd上的错误: