【发布时间】:2017-02-15 20:46:20
【问题描述】:
我刚刚在 NetBeans 8.1(在 Windows 10 上)中安装了 Vaadin 插件(版本 1.2.1),它似乎可以正常工作,直到我创建一个新项目。我可以从选项列表中选择一个 Vaadin 模板,但是当我单击一个新的 Vaadin Web 应用程序时,我得到一个构建失败,并显示以下输出:
------------------------------------------------------------------------ Building Maven Stub Project (No POM) 1
------------------------------------------------------------------------
>>> maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom >>>
<<< maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom <<<
--- maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom --- Generating project in Batch mode Archetype repository not defined. Using the one from [com.vaadin:vaadin-archetype-application:7.7.7] found in catalog remote
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------ Total time: 5.096s Finished at: Wed Feb 15 20:31:32 GMT 2017 Final Memory: 14M/155M
------------------------------------------------------------------------ Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.0:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.vaadin:vaadin-archetype-application:7.7.7) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
我不是 Maven 专家,所以我需要一些帮助。 Maven 插件是最新的,可以正常创建 Maven 项目,所以没有问题。 有人可以帮忙吗?
【问题讨论】:
-
能否尝试创建一个vaadin 7.7.6项目(我认为7.7.7尚未发布)
-
我刚刚尝试使用 7.7.6 作为 archetypeVersion 参数重新运行,结果相同。
-
您是否点击了 Clean-and-Build 按钮(锤子和扫帚图标)?您必须在项目建立后执行此操作,尽管这一步并不明显。
-
问题是项目实际上并没有创建,所以我不能尝试那个选项。