It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Marketplace Apps & Integrations

Expose your beautifully crafted Dashboard through the Jira Service Desk Customer Portal

  A picture is worth a thousand words, especially when you're trying to find relationships and understand your data. Here, Dashboards play a vital role in gaining insights from a variety of dat...

371 views 5 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you