Is there a way to include html file in atlassian-plugin.xml?

html page is not getting download if I use below synatx in atlassian-plugin.xml.

<resource type="download" name="test.html" location="includes/js/sample/test.html">
         <property key="content-type" value="text/html" />
</resource>

Is there any way to include a html page ?

Could you just add the html file into a directory and then do:

<web-resource key="resources">
    <resource type="download" name="dir/" location="/dir" />
</web-resource>

You probably will need to create a servlet and have it load the raw html file and then send it out. The resources are geared towards assets(css, js, images etc).

You could also use a rest end point as well to do the same thing.

Doing it those ways you’ll be able to apply permission restrictions as well.