关于新Netbeans的新Vaadin - 基本依赖关系

时间:2015-01-14 21:40:39

标签: maven netbeans vaadin

编译widgetset时出现以下错误。我在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

我只添加了pom.xml的附加依赖项,因为我安装了Vaadin插件,所以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

2 个答案:

答案 0 :(得分:0)

它抱怨它无法从您的Maven存储库中找到依赖项com.mycompany:AVaad-widgetset:jar:1.0-SNAPSHOT

您需要为您的AVaad-widgetset项目说mvn clean install,该项目最有可能位于C:\Users\H\Documents\NetBeansProjects\AVaad\AVaad-widgetset目录中。此命令将依赖项安装到本地maven存储库。

答案 1 :(得分:-1)

您必须按以下顺序生成netbeans:

  1. 视窗元件
  2. 生产
  3. UI