Migration from 7 to 8 in Netbeans 8.0.2

I have the Vaadin-maven-plugin-7.7.15 as a dependency. but when I run

mvn vaadin: upgrade8 i get the following:

org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix ‘vaadin’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
available from the repositories [local (C:\Users\Papa.m2\repository), central (http://repo.maven.apache.org/maven2)]

    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:94)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:262)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:222)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

I have no idea why this is the case and there is literally no example on Netbeans based migration. VAADIN needs to realize that a lot of us use Netbeans

Aby ideas?

You need the Vaadin 8 version of the Vaadin Maven Plugin to run the migration tool.

-Olli

Thanks Olli…just to clarify I should change the dependency to 8.x.x and one more thing do I have to start at 8.0.0 or can I go straight to 8.7.1?

Thanks again

faras

8.7.1 should be the better choice here.

thanks!

Not working I can see the 8.7.1 Jar in the dependencies folder and still get the following error

$ mvn vaadin:upgrade8
[INFO]
Scanning for projects…
Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (14 KB at 24.3 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 24.0 KB/sec)
[INFO]

[INFO]
BUILD FAILURE
[INFO]

[INFO]
Total time: 2.679s
[INFO]
Finished at: Tue Mar 26 07:45:56 EDT 2019
[INFO]
Final Memory: 9M/245M
[INFO]

[ERROR]
No plugin found for prefix ‘vaadin’ in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
available from the repositories [local (C:\Users\Papa.m2\repository), central (http://repo.maven.apache.org/maven2)]
→ [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/NoPluginFoundForPrefixException

This sounds like a configuration error, with a missing plugin definition:
[ERROR] No plugin found for prefix 'vaadin' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Papa.m2\repository), central (http://repo.maven.apache.org/maven2)]

Do you have the vaadin-maven-plugin configured in the <plugins> section correctly? You might want to create a new Vaadin 8 project from scratch and see how that is set up.