我剛剛在NetBeans 8.1(在Windows 10上)安裝了Vaadin插件(版本1.2.1),並且它似乎正常工作,直到我創建一個新項目。我可以選擇的選項列表中Vaadin模板但是當我點擊了一個新的Vaadin Web應用程序我得到以下輸出構建失敗:在Netbeans 8.1中使用Vaadin
------------------------------------------------------------------------ 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 ***按鈕(錘子和掃帚圖標)?在建立項目之後,你必須這樣做,儘管這一步並不明顯。 –