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> ...
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.