local atlassian stash server 错误调试插件

local atlassian stash server error debugging plugin

我正在尝试设置一个开发环境来为 Atlassian 存储服务器创建一个 git 挂钩插件。当我 运行 atlas-debug 启动 Web 服务器然后浏览到 localhost:port Stash 主页不显示并且我在控制台中收到此错误...

[INFO] [talledLocalContainer] 2015-03-10 21:09:51,279 WARN  [threadpool:thread-15]  c.a.s.i.s.g.t.DefaultTranscodeServer GET /stash HTTP/1.1
[INFO] [talledLocalContainer] Host: localhost:52883
[INFO] [talledLocalContainer] Connection: keep-alive
[INFO] [talledLocalContainer] Pragma: no-cache
[INFO] [talledLocalContainer] Cache-Control: no-cache
[INFO] [talledLocalContainer] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[INFO] [talledLocalContainer] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36
[INFO] [talledLocalContainer] Accept-Encoding: gzip, deflate, sdch
[INFO] [talledLocalContainer] Accept-Language: en-US,en;q=0.8
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]  could not be transcoded; ignoring request
[INFO] [talledLocalContainer] java.lang.IllegalArgumentException: The specified path, GET /stash HTTP/1.1
[INFO] [talledLocalContainer] Host: localhost:52883
[INFO] [talledLocalContainer] Connection: keep-alive
[INFO] [talledLocalContainer] Pragma: no-cache
[INFO] [talledLocalContainer] Cache-Control: no-cache
[INFO] [talledLocalContainer] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
[INFO] [talledLocalContainer] User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36
[INFO] [talledLocalContainer] Accept-Encoding: gzip, deflate, sdch
[INFO] [talledLocalContainer] Accept-Language: en-US,en;q=0.8
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer] , does not belong to Stash and cannot be transcoded.
[INFO] [talledLocalContainer]   at com.atlassian.stash.internal.scm.git.transcode.DefaultTranscoder.transcode(DefaultTranscoder.java:52) ~[stash-scm-git-3.7.1.jar:na]
[INFO] [talledLocalContainer]   at com.atlassian.stash.internal.scm.git.transcode.DefaultTranscodeServer$TranscodeChannelHandler.transcode(DefaultTranscodeServer.java:162) [stash-scm-git-3.7.1.jar:na]
[INFO] [talledLocalContainer]   at com.atlassian.stash.internal.scm.git.transcode.DefaultTranscodeServer$TranscodeChannelHandler.run(DefaultTranscodeServer.java:138) [stash-scm-git-3.7.1.jar:na]
[INFO] [talledLocalContainer]   at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:71) [stash-platform-3.7.1.jar:na]
[INFO] [talledLocalContainer]   at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_75]
[INFO] [talledLocalContainer]   at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_75]
[INFO] [talledLocalContainer]   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access1(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_75]
[INFO] [talledLocalContainer]   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_75]
[INFO] [talledLocalContainer]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_75]
[INFO] [talledLocalContainer]   at java.lang.Thread.run(Thread.java:745) [na:1.7.0_75]
[INFO] [talledLocalContainer]   ... 1 frame trimmed

我 运行正在 Mac OSX 10.9.5 和 javac 1.7.0_75

我用 brew 安装了 Atlassian 插件 SDK

brew install atlassian/tap/atlassian-plugin-sdk

使用

创建了一个空插件
atlas-create-stash-plugin

使用

创建了一个默认的 post 存储库挂钩
atlas-create-stash-plugin-module

然后用

启动服务器
atlas-debug

当我浏览到 localhost 时出现上述错误

似乎我在 java 版本中匹配不当。将 JAVA_HOME 设置为正确的版本有帮助