2014-12-05 98 views
4

我想在IntelliJ IDEA的创建新的JavaFX Maven项目使用下面的pom.xml:生成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的基本-原型// JavaFX的基本-arcehtype:2.0.1

回答

5

在项目创建向导,还有一个带有“Maven主目录”输入栏的顶部的窗口。在此窗口中,您可以看到一个带有模板参数的表格。在那里添加organizationName参数。