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 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); } 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