Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Web resources (JS and CSS) not being added to Confluence macro plugin

Zena Hirsch October 3, 2017

I've followed the various tutorials for building a Confluence app, and yet my web resources (the JS and CSS files) aren't being added to my macro. (I don't see either the js or css file when inspecting the page.)

 I have my web resources defined in `atlassian-plugin.xml`:

<web-resource key="validator-resources" name="validator Web Resources"> 
<
dependency>com.atlassian.auiplugin:ajs</dependency>

<
resource type="download" name="validator.css" location="/css/validator.css"/>
<
resource type="download" name="validator.js" location="/js/validator.js"/>
<
resource type="download" name="images/" location="/images"/>

<
context>validator</context>
</
web-resource>

 I am using the pageBuilderService in my execute method like so:

pageBuilderService.assembler().resources().requireWebResource("com.vimeo.community.validator:validator-resources");

 Here is my source code: https://bitbucket.org/zenahirsch/confluence-validator2/src

 Anyone have any idea what I'm doing wrong here?

1 answer

0 votes
Ajaykumar Muthukumar July 5, 2023

I'm getting the same issue. Can someone please help with this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events