當使用原型vaadin-archetype-application-multimodule
創建一個名爲bogus
新Vaadin 8.1.0應用程序,構建在的IntelliJ 2017.2運行時出現故障Maven項目面板>假的UI>插件>碼頭>碼頭:運行新鮮Vaadin 8.1的應用程序「多模塊」的應用程序未能建立
我得到控制檯這些錯誤消息。
/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/basilbourque/IdeaProjects/bogus/bogus-ui "-Dmaven.home=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3" "-Dclassworlds.conf=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf" "-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=55637:/Applications/IntelliJ IDEA.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2 org.eclipse.jetty:jetty-maven-plugin:9.3.9.v20160517:run
objc[11304]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java (0x1060bd4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10712c4e0). One of the two will be used. Which one is undefined.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building bogus-ui 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.3.9.v20160517:run (default-cli) > test-compile @ bogus-ui >>>
Downloading: http://maven.vaadin.com/vaadin-addons/com/example/bogus-backend/1.0-SNAPSHOT/maven-metadata.xml
Downloading: http://maven.vaadin.com/vaadin-addons/com/example/bogus-backend/1.0-SNAPSHOT/bogus-backend-1.0-SNAPSHOT.pom
[WARNING] The POM for com.example:bogus-backend:jar:1.0-SNAPSHOT is missing, no dependency information available
Downloading: http://maven.vaadin.com/vaadin-addons/com/example/bogus-backend/1.0-SNAPSHOT/bogus-backend-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.334 s
[INFO] Finished at: 2017-07-30T22:58:18-07:00
[INFO] Final Memory: 11M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project bogus-ui: Could not resolve dependencies for project com.example:bogus-ui:war:1.0-SNAPSHOT: Could not find artifact com.example:bogus-backend:jar:1.0-SNAPSHOT in vaadin-addons (http://maven.vaadin.com/vaadin-addons) -> [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/DependencyResolutionException
Process finished with exit code 1
在macOS Sierra 10.12.5上使用Java 8 Update 144和IntelliJ Ultimate版本2017.2。
鏈接的問題,Maven: How to use jetty:run in a multi-module Maven project, without needing to install,是不是這個問題的副本。那個人詢問一個模塊(Web模塊)是否能夠了解其他模塊中所做的更改並導致重建,而不是從本地存儲庫中檢索構建的項目。我首先要問的是如何在需要觸發重新構建之前運行應用程序。
的[Maven的可能重複:如何用碼頭:運行在一個多模塊Maven項目,而無需安裝](https://stackoverflow.com/questions/4371373/maven-how-to-use-jettyrun-in-a-multi-module-maven-project-without-needing-to) – Morfic
@Morfic不是重複的,但[其他問題](https://stackoverflow.com/questions/4371373/maven-how-to-use-jettyrun-in-a-multi-module-maven-project-without-needing-to)非常有趣和有益的,謝謝。 [多模塊Maven最佳實踐]也是如此(https://stackoverflow.com/q/10686682/642706)。 –
沒問題。我認爲你在父母身上運行了'mvn install',然後運行了'mvn jetty:run',你仍然有同樣的問題? – Morfic