Will quick reload be triggered automatically on every code change?

vvasic75 February 25, 2016

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
Vladimir Vasic
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2016

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
TAGS
AUG Leaders

Atlassian Community Events