[newbie] Netbeans 8.0.2 + plugin Vaadin 1.1.3

I can’t run simlpe program.

cd C:\Users\Rexx\Documents\NetBeansProjects\mavenproject1\mavenproject1-demo; “JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25” cmd /c “""C:\Program Files\NetBeans 8.0.2\java\maven\bin\mvn.bat" -Dnetbeans.deploy=true -Dmaven.ext.class.path="C:\Program Files\NetBeans 8.0.2\java\maven-nblib\netbeans-eventspy.jar" -Dfile.encoding=UTF-8 package"”
Scanning for projects…

Some problems were encountered while building the effective model for com.mycompany:mavenproject1-demo:war:1.0-SNAPSHOT
The expression ${version} is deprecated. Please use ${project.version} instead.

It is highly recommended to fix these problems because they threaten the stability of your build.

For this reason, future Maven versions might no longer support building such malformed projects.


Building mavenproject1 - MyComponent Add-on Demo 1.0-SNAPSHOT

The POM for com.mycompany:mavenproject1:jar:1.0-SNAPSHOT is missing, no dependency information available

BUILD FAILURE

Total time: 1.975s
Finished at: Sun Dec 28 16:57:28 CET 2014
Final Memory: 10M/109M

Failed to execute goal on project mavenproject1-demo: Could not resolve dependencies for project com.mycompany:mavenproject1-demo:war:1.0-SNAPSHOT: Failure to find com.mycompany:mavenproject1: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

Or Vaadin


Building mavenproject2-production 1.0-SNAPSHOT

Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/mavenproject2-ui/1.0-SNAPSHOT/mavenproject2-ui-1.0-SNAPSHOT.pom

Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/mavenproject2-ui/1.0-SNAPSHOT/mavenproject2-ui-1.0-SNAPSHOT.pom

The POM for com.mycompany:mavenproject2-ui:war:1.0-SNAPSHOT is missing, no dependency information available
The POM for com.mycompany:mavenproject2-ui:jar:classes:1.0-SNAPSHOT is missing, no dependency information available
Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/mavenproject2-widgetset/1.0-SNAPSHOT/mavenproject2-widgetset-1.0-SNAPSHOT.pom

Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/mavenproject2-widgetset/1.0-SNAPSHOT/mavenproject2-widgetset-1.0-SNAPSHOT.pom

The POM for com.mycompany:mavenproject2-widgetset:jar:sources:1.0-SNAPSHOT is missing, no dependency information available
Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/mavenproject2-ui/1.0-SNAPSHOT/mavenproject2-ui-1.0-SNAPSHOT.war
Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/mavenproject2-widgetset/1.0-SNAPSHOT/mavenproject2-widgetset-1.0-SNAPSHOT-sources.jar
Downloading: http://maven.vaadin.com/vaadin-addons/com/mycompany/mavenproject2-ui/1.0-SNAPSHOT/mavenproject2-ui-1.0-SNAPSHOT-classes.jar

Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/mavenproject2-ui/1.0-SNAPSHOT/mavenproject2-ui-1.0-SNAPSHOT.war
Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/mavenproject2-ui/1.0-SNAPSHOT/mavenproject2-ui-1.0-SNAPSHOT-classes.jar
Downloading: http://oss.sonatype.org/content/repositories/vaadin-snapshots/com/mycompany/mavenproject2-widgetset/1.0-SNAPSHOT/mavenproject2-widgetset-1.0-SNAPSHOT-sources.jar


BUILD FAILURE

Total time: 6.816s
Finished at: Sun Dec 28 17:22:42 CET 2014
Final Memory: 11M/109M

Failed to execute goal on project mavenproject2-production: Could not resolve dependencies for project com.mycompany:mavenproject2-production:war:1.0-SNAPSHOT: The following artifacts could not be resolved: com.mycompany:mavenproject2-ui:war:1.0-SNAPSHOT, com.mycompany:mavenproject2-ui:jar:classes:1.0-SNAPSHOT, com.mycompany:mavenproject2-widgetset:jar:sources:1.0-SNAPSHOT: Could not find artifact com.mycompany:mavenproject2-ui:war: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

For the first project (Add-on) one has to build parent project (Add-On Root project) before you build WAR project.
WAR project requires JAR to be built. But WAR don’t know anything about JAR. Parent (maven) project has knowledge about both child project: JAR and WAR and it can build both of them. Once JAR is build its artifacts will be installed in local repository and WAR project will be able to find it.

The same is for the second project: build (maven) parent project first. Then production,

Thx . It’s works ! :slight_smile: