From 234025df8d7a49e9c7820c978dc0bf35b23a1bed Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 17 Apr 2014 00:14:34 +0100 Subject: [PATCH 1/3] Java 1.7 --- system.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 system.properties diff --git a/system.properties b/system.properties new file mode 100644 index 0000000..4d46ac0 --- /dev/null +++ b/system.properties @@ -0,0 +1 @@ +java.runtime.version=1.7 \ No newline at end of file From b37590f7428ab5d1dc2232acf722153d89cb0fed Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 17 Apr 2014 00:33:11 +0100 Subject: [PATCH 2/3] Add jetty back. --- pom.xml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 3b8fbb4..7124cb1 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ net.ess3 bugtracker dev-SNAPSHOT - jar + war Essentials Bug Tracker https://essentials3.atlassian.net/ @@ -42,7 +42,7 @@ org.eclipse.jetty jetty-webapp - 9.0.2.v20130417 + 8.1.7.v20120910 compile @@ -59,6 +59,29 @@ 1.7 + + org.apache.maven.plugins + maven-dependency-plugin + 2.3 + + + package + + copy + + + + + org.mortbay.jetty + jetty-runner + 8.1.7.v20120910 + jetty-runner.jar + + + + + + org.codehaus.mojo appassembler-maven-plugin From 7909c05adc5fb9c46acafd9ae27104b8fbd08ed6 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Thu, 17 Apr 2014 00:50:39 +0100 Subject: [PATCH 3/3] Add annon login credentials. --- src/main/java/net/ess3/tracker/Main.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/ess3/tracker/Main.java b/src/main/java/net/ess3/tracker/Main.java index ae84e9c..db22f74 100644 --- a/src/main/java/net/ess3/tracker/Main.java +++ b/src/main/java/net/ess3/tracker/Main.java @@ -2,6 +2,7 @@ import com.atlassian.jira.rest.client.JiraRestClient; import com.atlassian.jira.rest.client.auth.AnonymousAuthenticationHandler; +import com.atlassian.jira.rest.client.auth.BasicHttpAuthenticationHandler; import com.atlassian.jira.rest.client.domain.BasicIssue; import com.atlassian.jira.rest.client.domain.Issue; import com.atlassian.jira.rest.client.domain.IssueFieldId; @@ -47,7 +48,7 @@ public int compare(Issue o1, Issue o2) { static { try { - client = new JerseyJiraRestClient(new URI(url), new AnonymousAuthenticationHandler()); + client = new JerseyJiraRestClient(new URI(url), new BasicHttpAuthenticationHandler("support", "support")); } catch (Exception ex) { throw new ExceptionInInitializerError(ex); }