A web resources conflict. Jira doesn't retrieve a batch.css file

Hi there,

I’ve faced a weird thing connected with loading a batch.css file when two apps (my app and another vendor) are installed in Jira 9.x. Jira doesn’t provide CSS file content and returns 404 for the request. Then, I discovered that turning off apps’ specific web resource modules fixes this problem, and it looks like a conflict of web resources from different apps.


After a few days of experiments, I made them work by recombining web resources for my app.

Here is what I had before:

    <web-resource key="resource-a">
        <dependency>my.plugin.key:resource-b</dependency>
        <resource type="download" name="file-a.css" location="css/file-a.css"/>
    </web-resource>

    <web-resource key="resource-b">
        <dependency>my.plugin.key:resource-c</dependency>
        <resource type="download" name="file-b.css" location="css/file-b.css"/>
    </web-resource>

    <web-resource key="resource-c">
        <dependency>com.atlassian.jira.plugins.*:example</dependency>
        ...
        <resource type="download" name="file-c.css" location="css/file-c.css"/>
    </web-resource>

Finally, I’ve got this:

    <web-resource key="resource-a-b-c">
        <dependency>com.atlassian.jira.plugins.*:example</dependency>
        ...
        <resource type="download" name="file-a.css" location="css/file-a.css"/>
        <resource type="download" name="file-b.css" location="css/file-b.css"/>
        <resource type="download" name="file-c.css" location="css/file-c.css"/>
    </web-resource>

The renaming of web resource keys doesn’t help.

Are there any limitations for web resource modules or best practices for using them?