简体   繁体   English

Netbeans Maven插件中的构建失败错误

[英]Build Failure error in Netbeans maven plugins

I am using netbeans for creating my first RESTful API, Java with JSON to write a code. 我正在使用netbeans创建我的第一个RESTful API(带有JSON的Java)来编写代码。 I tried to create the project but it gives this error. 我试图创建该项目,但它给出了此错误。

A build failure error is encountered. 遇到构建失败错误。 It says : 它说 :

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) 
    on project standalone-pom: Archetype io.dropwizard.archetypes:java-simple:0.8.1-rc3-SNAPSHOT is not configured
    Property name is missing.

More detailed is listed on this pastebin: http://pastebin.com/N1KtGypW 更详细的信息在此pastebin上列出: http://pastebin.com/N1KtGypW : http://pastebin.com/N1KtGypW

I tried to follow help topic Project properties: Maven Project to troubleshoot the issue, but were unable to fix it. 我尝试遵循帮助主题“ Project properties: Maven Project来解决此问题,但无法解决。

Please suggest measures to fix this issue. 请提出解决此问题的措施。

Looking at the build output: 查看构建输出:

cd /home/aruns/NetBeansProjects; cd / home / aruns / NetBeansProjects; JAVA_HOME=/usr/lib/jvm/java-8-oracle /home/aruns/netbeans-8.0.2/java/maven/bin/mvn -DarchetypeGroupId=io.dropwizard.archetypes -DarchetypeArtifactId=java-simple -DarchetypeVersion=0.8.1-rc3-SNAPSHOT -DarchetypeRepository= https://oss.sonatype.org/content/repositories/snapshots -DgroupId=com.mycompany -DartifactId=MyDropwizRESTfulProject -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mydropwizrestfulproject -Dbasedir=/home/aruns/NetBeansProjects -Dshaded=true -Dname= -Ddescription=null -Darchetype.interactive=false --batch-mode --update-snapshots archetype:generate JAVA_HOME = / usr / lib / jvm / java-8-oracle /home/aruns/netbeans-8.0.2/java/maven/bin/mvn -DarchetypeGroupId = io.dropwizard.archetypes -DarchetypeArtifactId = java-simple -DarchetypeVersion = 0.8 .1-rc3-SNAPSHOT -DarchetypeRepository = https://oss.sonatype.org/content/repositories/snapshots -DgroupId = com.mycompany -DartifactId = MyDropwizRESTfulProject -Dversion = 1.0-SNAPSHOT -Dpackage = com.mycompany.mydropwizrestfulproject -Dbasedir = / home / aruns / NetBeansProjects -Dshaded = true -Dname = -Ddescription = null -Darchetype.interactive = false --batch-mode --update-snapshots原型:生成

The option -Dname property is not set (in bold above) and it is this option I think Maven is complaining about. 选项-Dname属性未设置(上面的粗体显示),我认为Maven在抱怨这个选项。

I assume you created the project from the Netbeans 'Create From Archetype' and you used 'io.dropwizard.archetypes'. 我假设您是从Netbeans“从原型创建”创建项目的,并且使用了“ io.dropwizard.archetypes”。 The window that comes up there is a table with 'Additional Creation Properties'. 出现的窗口中有一个带有“其他创建属性”的表。 You need to specify the name in this I think. 我认为您需要在此指定名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM