簡體   English   中英

使用Maven生成JavaFX項目

[英]Generating JavaFX project with Maven

我正在嘗試使用以下pom.xml在IntelliJ Idea中創建新的JavaFX Maven項目:

<?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>pl.edu.pg.eti.pcej</groupId>
    <artifactId>pl.edu.pg.eti.pcej.wi.clustermap</artifactId>
    <version>1.0-SNAPSHOT</version>


</project>

我無法生成項目,因為我收到以下警告和錯誤:

[WARNING] Property organizationName is missing. Add -DorganizationName=someValue

...

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: Archetype com.zenjava:javafx-basic-archetype:2.0.1 is not configured
    [ERROR] Property organizationName is missing.
    [ERROR] -> [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/MojoFailureException
    [ERROR] Maven execution terminated abnormally (exit code 1)

如何在IntelliJ中修復它?

編輯:

我正在從原型com.zenjava創建新項目:javafx-basic-archetype // javafx-basic-arcehtype:2.0.1

在項目創建向導中,頂部有一個“Maven主目錄”輸入字段的窗口。 在此窗口中,您可以看到包含模板參數的表。 在那里添加organizationName參數。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM