VMware Cloud Community
ivankrolo
VMware Employee
VMware Employee

Maven error with the vCO Plugin SDK wizard

Hi,

I'm trying to make a vCO plugin and I've used the vCO Plugin SDK to make a test Spring + Maven project (see screenshot for setup in Eclipse). 

I'm having an issue with Maven unable to find the "com.vmware.o11n.mojo.pkg:maven-o11n-package-plugin:jar:5.5.0-1620" dependency.

c:\ws-other\o11n-testplugin>mvn clean package -U

[INFO] Scanning for projects...

Downloading: http://repo.maven.apache.org/maven2/com/vmware/o11n/mojo/pkg/maven-o11n-package-plugin/5.5.0-1620/ma...

[WARNING] The POM for com.vmware.o11n.mojo.pkg:maven-o11n-package-plugin:jar:5.5.0-1620 is missing, no dependency information available

Downloading: http://repo.maven.apache.org/maven2/com/vmware/o11n/mojo/pkg/maven-o11n-package-plugin/5.5.0-1620/ma...

[ERROR] The build could not read 1 project -> [Help 1]

[ERROR]

[ERROR]   The project com.vmware.o11n.plugin:o11nplugin-testplugin-package:1.0.0-SNAPSHOT (C:\ws-other\o11n-testplugin\testplugin\o11nplugin-testplugin-package\pom.xml) has 2 errors

[ERROR]     Unresolveable build extension: Plugin com.vmware.o11n.mojo.pkg:maven-o11n-package-plugin:5.5.0-1620 or one of its dependencies could not be resolved: Could not find artifact com.vmware.o11

n.mojo.pkg:maven-o11n-package-plugin:jar:5.5.0-1620 in central (http://repo.maven.apache.org/maven2) -> [Help 2]

[ERROR]     Unknown packaging: package @ line 7, column 16

[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/ProjectBuildingException

[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

Tags (3)
0 Kudos
2 Replies
denito
VMware Employee
VMware Employee

Hi,

The problem is that the version 5.5.0-1620 is not valid. I just tried with: vCenter Orchestrator Plug-in SDK for vSphere 5.5 - VMware Developer Center

and it works. Can you download the SDK from the link and try again?

Regards, Denitsa

0 Kudos
ivankrolo
VMware Employee
VMware Employee

Hi Denitsa,

I had figured it out but forgot to post back here.  It looks like the jar that's copied over as part of the Ant plugin in the master pom.xml is copying version 5.5.0-1947 instead of -1620, but the generated pom.xml for -package refers to version 1620.

And it looks like the -package module only gets created when specifying the Inventory in the wizard, so perhaps you were missing that?

0 Kudos