Quick reload can not work with jira version 8.0.2?

I try to upgrade my plugin from jira version 7.13.0 to 8.0.2.
But somehow the quickreload didn’t work for me.
And In my pom.xml “enableFastdev” is not allowed here.
I need some help.

Thanks,

my pom.xml

<build>
    <plugins>
      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>jira-maven-plugin</artifactId>
        <version>${amps.version}</version>
        <extensions>true</extensions>
        <configuration>
          <productVersion>${jira.version}</productVersion>
          <productDataVersion>${jira.version}</productDataVersion>
          <!-- These two lines is to enable QuickReload-->
          <!-- make AMPS faster -->
          <enableDevToolbox>false</enableDevToolbox>
          <enablePde>false</enablePde>
          <skipRestDocGeneration>true</skipRestDocGeneration>
          <allowGoogleTracking>false</allowGoogleTracking>
          <skipManifestValidation>true</skipManifestValidation>
          <extractDependencies>false</extractDependencies>

          <!-- On AMPS 6.3 and older; must be omitted on AMPS 8 and newer -->
          <enableFastdev>false</enableFastdev>

          <pluginArtifacts>
            <pluginArtifact>
              <groupId>com.atlassian.labs.plugins</groupId>
              <artifactId>quickreload</artifactId>
              <version>${quick.reload.version}</version>
            </pluginArtifact>
          </pluginArtifacts>
          <applications>
            <application>
              <applicationKey>jira-software</applicationKey>
              <version>${jira.version}</version>
            </application>
          </applications>
          <!-- See here for an explanation of default instructions: -->
          <!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins -->
          <instructions>
            <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
            <Export-Package/>
            <!-- Add package import here -->
            <Import-Package>com.atlassian.jira.plugin.webfragment.contextproviders,
              com.atlassian.jira.plugin.webfragment.conditions,
              org.springframework.osgi.*;resolution:="optional",
              org.eclipse.gemini.blueprint.*;resolution:="optional", *;resolution:="optional"
              <!-- This line here is to fix the bug that listener cannot be found -->
            </Import-Package>
            <!-- Ensure plugin is spring powered -->
            <Spring-Context>*</Spring-Context>
          </instructions>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.1</version>
        <configuration>
          <source>${maven.compiler.source}</source>
          <target>${maven.compiler.target}</target>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.atlassian.plugin</groupId>
        <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
        <version>${atlassian.spring.scanner.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>atlassian-spring-scanner</goal>
            </goals>
            <phase>process-classes</phase>
          </execution>
        </executions>
        <configuration>
          <scannedDependencies>
            <dependency>
              <groupId>com.atlassian.plugin</groupId>
              <artifactId>atlassian-spring-scanner-external-jar</artifactId>
            </dependency>
          </scannedDependencies>
          <verbose>false</verbose>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <properties>
    <jira.version>8.0.2</jira.version>
    <amps.version>8.0.0</amps.version>
    <ao.version>3.0.0</ao.version>
    <quick.reload.version>3.0.0</quick.reload.version>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <atlassian.spring.scanner.version>2.1.8</atlassian.spring.scanner.version>
    <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
  </properties>

What error are you getting? BTW, try removing <enableFastdev> all together, as it’s not supported in AMPS 8.0+ (assuming you’re using a recent version of AMPS). See: Bitbucket

Thank you @nmansilla.
I removed tag “enableFastdev”. But my plugin still can not use quickreload.
When I run “atlas-package” the plugin doesn’t update the new change.
The log file DOESN’T start quick reload. But this plugin already in my server

If I change the version from 8.0.2 to 7.13.0, quick reload can work.

INFO] [talledLocalContainer] Starting Quick Reload - '/Users/bbaker/src/atlassian/plugins/quickreload/test-plugin/target/quickreload-test-plugin-1.3-SNAPSHOT.jar'....
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer] 2014-05-08 18:10:14,335 http-bio-2990-exec-26 INFO anonymous 1090x6739x1 - 0:0:0:0:0:0:0:1 /rest/quickreload/1/install [atlassian.plugin.loaders.ScanningPluginLoader] No plugins found to be installed
    [INFO] [talledLocalContainer] 2014-05-08 18:10:16,752 http-bio-2990-exec-26 INFO anonymous 1090x6739x1 - 0:0:0:0:0:0:0:1 /rest/quickreload/1/install [atlassian.plugin.manager.DefaultPluginManager] Found dependent enabled plugins for uninstalled plugin 'com.atlassian.labs.plugins.quickreload.test': [].  Disabling...
    [INFO] [talledLocalContainer] 2014-05-08 18:10:16,752 http-bio-2990-exec-26 INFO anonymous 1090x6739x1 - 0:0:0:0:0:0:0:1 /rest/quickreload/1/install [atlassian.plugin.manager.DefaultPluginManager] Updating plugin 'com.atlassian.labs.plugins.quickreload.test' to 'com.atlassian.labs.plugins.quickreload.test'
    [INFO] [talledLocalContainer] 2014-05-08 18:10:16,752 http-bio-2990-exec-26 INFO anonymous 1090x6739x1 - 0:0:0:0:0:0:0:1 /rest/quickreload/1/install [atlassian.plugin.manager.DefaultPluginManager] Disabling com.atlassian.labs.plugins.quickreload.test
    [INFO] [talledLocalContainer] 2014-05-08 18:10:16,757 Timer-1 WARN      [plugins.quickreload.test.Launcher]
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer] Quick Reload Test Plugin is going out of existence!!
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer] 2014-05-08 18:10:16,760 http-bio-2990-exec-26 INFO anonymous 1090x6739x1 - 0:0:0:0:0:0:0:1 /rest/quickreload/1/install [atlassian.plugin.loaders.ScanningPluginLoader] Removed plugin com.atlassian.labs.plugins.quickreload.test
    [INFO] [talledLocalContainer] 2014-05-08 18:10:16,777 ThreadPoolAsyncTaskExecutor::Thread 56 WARN anonymous 1090x6739x1 - 0:0:0:0:0:0:0:1 /rest/quickreload/1/install [plugins.quickreload.test.Launcher]
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer] Quick Reload Test Plugin is coming into existence!!
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer] 2014-05-08 18:10:16,785 http-bio-2990-exec-26 INFO anonymous 1090x6739x1 - 0:0:0:0:0:0:0:1 /rest/quickreload/1/install [labs.plugins.quickreload.PluginInstaller]
    [INFO] [talledLocalContainer]                       ^
    [INFO] [talledLocalContainer]                       |
    [INFO] [talledLocalContainer]                       |
    [INFO] [talledLocalContainer]                       |
    [INFO] [talledLocalContainer]                       |
    [INFO] [talledLocalContainer]                       |
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer]           A watched plugin never boils!
    [INFO] [talledLocalContainer]
    [INFO] [talledLocalContainer] Quick Reload Finished (2453 ms) - '/Users/bbaker/src/atlassian/plugins/quickreload/test-plugin/target/quickreload-test-plugin-1.3-SNAPSHOT.jar'

Thanks,

It might be actually working, but you won’t see the messages in atlas-debug output like it was with jira 7.
With Jira 8+ you’ll need to check Jira log file by yourself (you can use something like tail -f target/jira/home/log/atlassian-jira.log for example) to see quickreload messages.

10 Likes

thank you @a.belostotskiy
It’s really work!

Thanks so much @a.belostotskiy
Is there any way to display as old jira 7?

@anhnnp Actually there is. Just define custom log4j.properties.

2 Likes

Hi Denis!

I added log4j.properties file and specified it in maven settings.
But the result is the same.
The console does not display “quick reload” information.

Could you describe in detail the settings that need to be done?

Hi Dennis!

I added log4j.properties file and specified it in maven settings.
But the result is the same.
The console does not display “quick reload” information.

Could you describe in detail the settings that need to be done?

1 Like