VMware {code} Community
dinghb123
Contributor
Contributor
Jump to solution

vSphere SDK Tools --> Export Java service bundle option is disabled

hi, laurentsd!

I want to creat a plugin package, but when I right-click on my sample-project and select vSphere SDK Tools, then I find that "Package vSphere Client plugin" option is nonactivated, the same situation founded in vSphere SDK Tools > Export Java service bundle on sample Java project.

pastedImage_3.png

pastedImage_1.png

Question1:How can I active this options?

Question2:If I creat  plugin package manually(create plugin-package.xml manually, copy XX.jar, XX.war  to plugins directory),  can I run my plugin in vsphere web client?

Reply
0 Kudos
1 Solution

Accepted Solutions
laurentsd
VMware Employee
VMware Employee
Jump to solution

This tool is not available for HTML plugins at the moment.  See docs/html-tutorial.html#package-plugin and docs/SDK-Tutorial.html#package-plugin for more info on how to build and test your plugin-package.

4. Packaging and Registration

...

It is not possible to generate plugin-package.xml with the vSphere SDK Tools menu but this file is easy to edit manually. Here is an example from the chassisA sample:

<?xml version="1.0" encoding="UTF-8"?>

<pluginPackage id="com.vmware.samples.chassisA.html" version="5.5.0" name="ChassisA Client"

           description="SDK sample adding chassis objects" vendor="VMware">

  <dependencies>

      <!-- Minimum vSphere Client version compatible with this plugin -->

      <pluginPackage id="com.vmware.vsphere.client" version="5.5.1" />

  </dependencies>

  <bundlesOrder>

     <bundle id="com.google.gson" />

     <bundle id="com.vmware.samples.chassisa.service" />

     <bundle id="com.vmware.samples.chassisa" />

  </bundlesOrder>

</pluginPackage>

View solution in original post

Reply
0 Kudos
1 Reply
laurentsd
VMware Employee
VMware Employee
Jump to solution

This tool is not available for HTML plugins at the moment.  See docs/html-tutorial.html#package-plugin and docs/SDK-Tutorial.html#package-plugin for more info on how to build and test your plugin-package.

4. Packaging and Registration

...

It is not possible to generate plugin-package.xml with the vSphere SDK Tools menu but this file is easy to edit manually. Here is an example from the chassisA sample:

<?xml version="1.0" encoding="UTF-8"?>

<pluginPackage id="com.vmware.samples.chassisA.html" version="5.5.0" name="ChassisA Client"

           description="SDK sample adding chassis objects" vendor="VMware">

  <dependencies>

      <!-- Minimum vSphere Client version compatible with this plugin -->

      <pluginPackage id="com.vmware.vsphere.client" version="5.5.1" />

  </dependencies>

  <bundlesOrder>

     <bundle id="com.google.gson" />

     <bundle id="com.vmware.samples.chassisa.service" />

     <bundle id="com.vmware.samples.chassisa" />

  </bundlesOrder>

</pluginPackage>

Reply
0 Kudos