Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 新Netbeans上的新Vaadin——基本依赖项_Maven_Netbeans_Vaadin - Fatal编程技术网

Maven 新Netbeans上的新Vaadin——基本依赖项

Maven 新Netbeans上的新Vaadin——基本依赖项,maven,netbeans,vaadin,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

编译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

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


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

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

  • 母公司
  • widgetset
  • 生产
  • 用户界面

  • 它抱怨找不到com.mycompany:AVaad-widgetset:jar:1.0-SNAPSHOT依赖项。你的项目结构是什么?你所说的prj结构是什么意思?我什么都没碰——除了我在Q中提到的那些:pom中的依赖项标记和图表的lisence。其他地方没有。只有pom.xml&C:\Users\H\Documents\NetBeansProjects\AVaad\AVaad widgetset中的src目录。这是真的。Maven是一个外部工具(mvn命令)。您很可能可以在Netbean的UI上做同样的事情,但我对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