I am building a plugin and created some stock workflows I want to distribute with it. The package content in question is purely Workflows at this time. I am running this command from my machine to ...
See more...
I am building a plugin and created some stock workflows I want to distribute with it. The package content in question is purely Workflows at this time. I am running this command from my machine to do the package import with Maven: mvn o11n-package:import-package -DserverUrl=vro01.domain.local -Dusername=administrator@vsphere.local -Dpassword=******** -DpackageName=mypluginpackage But, when I attempt to run the import-package goal, I get this error: [ERROR] Failed to execute goal com.vmware.o11n.mojo.pkg:o11n-package-maven-plugin:8.4.2:import-package (default-cli) on project o11nplugin-myplugin-package: Unable to import package [mypluginpackage], from server '[vro01.domain.local]': Error while extracting response for type [class com.vmware.o11n.sdk.rest.client.stubs.InventoryItemsList] and content type [application/xml;charset=UTF-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: Could not unmarshal to [class com.vmware.o11n.sdk.rest.client.stubs.InventoryItemsList]: unexpected element (uri:"http://www.vmware.com/vco", local:"inventory-items"). Expected elements are <{}actions>,<{}categories>,<{}configurations>,<{}interactions>,<{}inventory-items>,<{}owners>,<{}packages>,<{}resources>,<{}tags>; nested exception is javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.vmware.com/vco", local:"inventory-items"). Expected elements are <{}actions>,<{}categories>,<{}configurations>,<{}interactions>,<{}inventory-items>,<{}owners>,<{}packages>,<{}resources>,<{}tags> -> [Help 1] I monitored the vco-server-app_access.log and saw that it was able to communicate to the /catalog endpoint and return HTTP 200 responses, so I know my credentials are at least OK. 2023-05-05T18:45:29.287Z INFO vco [host='vco-app-857b668df-8j2nb' thread='http-nio-8280-exec-6' user='Administrator@VSPHERE.LOCAL' org='-' trace='-'] - 10.244.0.92 - - [05/May/2023:18:45:29 +0000] GET /vco/api/catalog/System/Package/?conditions=name%7Emypluginpackage HTTP/1.1 200 128 7 ms 2023-05-05T18:45:47.303Z INFO vco [host='vco-app-857b668df-8j2nb' thread='http-nio-8280-exec-2' user='Administrator@VSPHERE.LOCAL' org='-' trace='-'] - 10.244.0.92 - - [05/May/2023:18:45:47 +0000] GET /vco/api/catalog/System/UserInteraction HTTP/1.1 200 32 4 ms This Orchestrator authenticates with CIS/vCenter only. I've also tried using newer versions of the SDK, such as 8.9.0 but I get the same result. Here is my Maven/JDK information: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00) Maven home: /opt/apache-maven/apache-maven-3.3.9 Java version: 20, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk-20.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "13.3.1", arch: "x86_64", family: "mac" Anyone have any ideas why this could be occurring?