Details
-
Bug
-
Resolution: Answered
-
Low
-
None
-
6.4.7
-
None
-
6.04
-
Description
I am unable to disable minification of my web resources in my JIRA plugin, particularly my javascript and css. This was made using the Atlassian SDK.
Here are the things I've tried that did not work:
- Based on your documentation, I did the following:
- from cmd/powershell:
atlas-debug --jvmargs "-Datlassian.webresource.disable.minification=true"
atlas-debug --jvmargs "-Datlassian.webresource.disable.minification=true"
atlas-debug --jvmargs "-Datlassian.webresource.disable.minification=true -D -Datlassian.dev.mode=true"
- take note that atlas-debug already enables dev mode by default
- Documentation also says that dev mode enabled should disable minification of web resources by default
atlas-run --jvmargs "-Datlassian.webresource.disable.minification=true"
atlas-run--jvmargs "-Datlassian.webresource.disable.minification=true -D -Datlassian.dev.mode=true"
- from cmd/powershell:
- I tried this answer by adding <compressResources>false</compressResources> to my pom.xml and this didn't work, either.
- I also tried running with step #1 with and without the extra jvm arguments
- This ticket is most definitely related to https://ecosystem.atlassian.net/browse/AMPS-796 except the instructions here don't solve anything
- My current POM settings for the maven-jira plugin element look like this:
<plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-jira-plugin</artifactId> <version>${amps.version}</version> <extensions>true</extensions> <configuration> <productVersion>${jira.version}</productVersion> <productDataVersion>${jira.version}</productDataVersion> <!-- Uncomment to install TestKit backdoor in JIRA. --> <!-- <pluginArtifacts> <pluginArtifact> <groupId>com.atlassian.jira.tests</groupId> <artifactId>jira-testkit-plugin</artifactId> <version>${testkit.version}</version> </pluginArtifact> </pluginArtifacts> --> <enableQuickReload>true</enableQuickReload> <enableFastdev>false</enableFastdev> <compressResources>false</compressResources> <instructions> <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key> <!-- Add package to export here --> <Export-Package>com.mmodal.cars.api,</Export-Package> <!-- Add package import here --> <Import-Package>org.springframework.osgi.*;resolution:="optional", org.eclipse.gemini.blueprint.*;resolution:="optional", *</Import-Package> <!-- Ensure plugin is spring powered - see https://extranet.atlassian.com/x/xBS9hQ --> <Spring-Context>*</Spring-Context> </instructions> </configuration> </plugin>
Why are these not working?
One of the people in my team have suggested to look at where requirejs is being run. However, it's not clear where that is... I am assuming the atlassian-plugin.xml is the layer that requirejs will work on?
Other relevant info:
- Atlassian SDK Version: 6.2.6 (plugin was created with 6.2.3 however)
- Maven Properties from my plugin's pom.xml:
<properties> <jira.version>6.4.7</jira.version> <amps.version>6.1.2</amps.version> <plugin.testrunner.version>1.2.3</plugin.testrunner.version> <atlassian.spring.scanner.version>1.2.6</atlassian.spring.scanner.version> <!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. --> <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key> <!-- TestKit version 6.x for JIRA 6.x --> <testkit.version>6.3.11</testkit.version> </properties>