【发布时间】:2015-01-14 21:40:38
【问题描述】:
编译小部件集时出现以下错误。我在 Netbeans 8.0.2 上使用 Vaadin 7.3.8。 :
> cd C:\Users\H\Documents\NetBeansProjects\AVaad\AVaad-ui; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_20" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" vaadin:compile\""
Scanning for projects...
> ------------------------------------------------------------------------
> Building AVaad - AVaad-ui 1.0-SNAPSHOT
> ------------------------------------------------------------------------
>>> vaadin-maven-plugin:7.3.7:compile (default-cli) @ AVaad-ui >>>
--- maven-resources-plugin:2.6:resources (default-resources) @ AVaad-ui ---
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory C:\Users\H\Documents\NetBeansProjects\AVaad\AVaad-ui\src\main\resources
<<< vaadin-maven-plugin:7.3.7:compile (default-cli) @ AVaad-ui <<<
> The POM for com.mycompany:AVaad-widgetset:jar:1.0-SNAPSHOT is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 0.727s
Finished at: Wed Jan 14 16:22:41 EST 2015
Final Memory: 8M/245M
------------------------------------------------------------------------
> Failed to execute goal on project AVaad-ui: Could not resolve dependencies for project com.mycompany:AVaad-ui:war:1.0-SNAPSHOT: Failure to find com.mycompany:AVaad-widgetset:jar:1.0-SNAPSHOT in http://maven.vaadin.com/vaadin-addons was cached in the local repository, resolution will not be reattempted until the update interval of vaadin-addons has elapsed or updates are forced -> [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/DependencyResolutionException
自从我安装了 Vaadin 插件以来,我只将附加依赖项添加到 pom.xml 并没有更改 pom.xml 或其他地方的任何内容。
我的设置中缺少什么?
这是一个版本问题——如果我安装了早期的 Vaadin 版本——比如 7.1。 ..,我会得到同样的结果吗?
Netbeans 8 已经出现了一个文件,我一直很高兴地使用它。
TIA。
//===========================================
编辑:
我在 Netbeans 中清理和构建项目后得到的结果如下:
> cd C:\Users\H\Documents\NetBeansProjects\AVaad\AVaad-ui; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_20" cmd /c "\"\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.0.2\\java\\maven-nblib\\netbeans-eventspy.jar\" clean install\""
Scanning for projects...
------------------------------------------------------------------------
Building AVaad - AVaad-ui 1.0-SNAPSHOT
------------------------------------------------------------------------
> Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/AVaad-widgetset/1.0-SNAPSHOT/maven-metadata.xml
> Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/AVaad-widgetset/1.0-SNAPSHOT/maven-metadata.xml
> Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/AVaad-widgetset/1.0-SNAPSHOT/AVaad-widgetset-1.0-SNAPSHOT.pom
> Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/AVaad-widgetset/1.0-SNAPSHOT/AVaad-widgetset-1.0-SNAPSHOT.pom
> The POM for com.mycompany:AVaad-widgetset:jar:1.0-SNAPSHOT is missing, no dependency information available
> Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/AVaad-widgetset/1.0-SNAPSHOT/AVaad-widgetset-1.0-SNAPSHOT.jar
> Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/AVaad-widgetset/1.0-SNAPSHOT/AVaad-widgetset-1.0-SNAPSHOT.jar
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.409s
Finished at: Thu Jan 15 09:39:19 EST 2015
Final Memory: 10M/245M
------------------------------------------------------------------------
> Failed to execute goal on project AVaad-ui: Could not resolve dependencies for project com.mycompany:AVaad-ui:war:1.0-SNAPSHOT: Could not find artifact com.mycompany:AVaad-widgetset:jar:1.0-SNAPSHOT in vaadin-addons (http://maven.vaadin.com/vaadin-addons) -> [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/DependencyResolutionException
【问题讨论】:
-
它抱怨找不到 com.mycompany:AVaad-widgetset:jar:1.0-SNAPSHOT 依赖项。你的项目结构是什么?
-
prj结构是什么意思?我什么都没碰过——除了我在 Q 中提到的那些:pom for 中的依赖标签和图表的 lisence。其他地方什么都没有。