You can't really do that. A .vm file requires a "context" which is provided by the code behind it. You can't just take a .vm and render it from elsewhere because the context for it won't be there in your code. You can, of course, create your own context for a .vm file provided elsewhere, but you might as well just copy the .vm into your own plugin as you're already doing all the rest of the work.
The jar plugin is a simple zip archive. Unzip the plugin you want to get vm from and copy vm into your plugin. Then render that according to your needs. Please note that you should provide needed variables to that vm file to render it. Also please note that there might be some license issues that will not allow to do that legally.
Cheers to Kemal Bajramovic, our first ever AUG Leader to be Showcased. AUG Leaders are passionate experts who find time in their own busy lives to host Atlassian themed events to share ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot