Using velocity template in blueprint plugin

I want to use Velocity in my blueprint plugin.
I followed the simple/intermediate/advanced plugin tutorials in developer documentation.
My project has the following structure:

I tried to change content-template however I failed because the xml is required:

<content-template key="simplebp-template" i18n-name-key="my.blueprint.title">
        <resource name="template" type="download" location="/templates/mytemplate.xml" />
        <context-provider class="com.example.plugins.tutorial.confluence.simplebp.MyContextProvider"/>

So, how can I use the vm template for the blueprint?


Hi salihtuc,

I think, your location is specified with error – it should be relative path so I would try to remove leading slash character ‘/’.

Have your tried it?

Kind Regards,
Josef Pavelec
Morosystems s.r.o., Czech Republic