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

2 votes
Answer accepted

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 yesterday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

35 views 1 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