Will quick reload be triggered automatically on every code change?

This question is in reference to Atlassian Developer Documentation: Automatic Plugin Reinstallation with QuickReload

I've created small Hello World REST module plugin.

@GET
@Produces({MediaType.APPLICATION_JSON})
@Path("helloWorld")
public Response helloWorld() {
    return Response.ok("Hello World").build();
}

I've also created a web item (button) in atlassian-plugin.xml to be able to trigger this GET via UI:

<web-item key="get-hello-world" name="GET Hello World from REST" section="operations-top-level" weight="1">
        <label>GET Hello World</label>
        <link>/rest/tjsd/latest/test/helloWorld</link>
</web-item>

Everything works fine. I see a button, I can click on it and then I am redirected to: http://localhost:2990/jira/rest/tjsd/latest/test/helloWorld

and in browser I see:

Hello World

 

Now I want to change "Hello World" message to "Hello Worlds". I use to change that in REST resource class like:

return Response.ok("Hello Worlds").build();

and then in terminal in project directory run: atlas-cli and then on prompt> pi 

It would rebuild and re-enable plugin and I could see the changes.

Now with this Quick Reload I don't see changes if I use it like you described in developer documentation.

 

Ah, here is my pom.xml (maybe something is wrong there):

...
<build>
    <plugins>
        <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>
                <enableFastdev>false</enableFastdev>
                <enableQuickReload>true</enableQuickReload>
                <pluginArtifact>
                    <groupId>com.atlassian.labs.plugins</groupId>
                    <artifactId>quickreload</artifactId>
                    <version>1.24</version>
                </pluginArtifact>
            </configuration>
       </plugin>
       <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.7</source>
                <target>1.7</target>
            </configuration>
       </plugin>
  </plugins>
...

 

 

1 answer

1 accepted

This widget could not be displayed.

No it won't. You have to do that manually by executing 

atlas-mvn package -DskipTests


Somewhere I read that QuickReload is triggered automatically on each 20s or so, but I can not confirm that this works.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 10m ago in United States

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

6 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you