2016-07-08 158 views
0

我是Jira插件開發的新手。我開始使用helloworld插件開發流程,其中描述了Jira文檔。我嘗試使用atlas-create-jira-plugin-module命令幫助創建一個菜單,並且當我使用atlas-run命令嘗試項目時,我的插件未能加載,並在日誌中找到以下內容:加載Jira插件失敗

[INFO] [talledLocalContainer]  ___ FAILED PLUGIN REPORT 

_____________________ 
[INFO] [talledLocalContainer] 
[INFO] [talledLocalContainer]  2 plugins failed to load during JIRA startup. 
[INFO] [talledLocalContainer] 
[INFO] [talledLocalContainer]   'com.atlassian.tutorial.helloworld' - 'helloworld' failed to load. 
[INFO] [talledLocalContainer]     Cannot start plugin: com.atlassian.tutorial.helloworld 
[INFO] [talledLocalContainer]       Unresolved constraint in bundle com.atlassian.tutorial.helloworld [161]: Unable to resolve 161.0: missing requirement [161.0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.plugin.spring.scanner.annotation.export) 
[INFO] [talledLocalContainer] 
[INFO] [talledLocalContainer]     It was loaded from C:\workdir\atlastutorial\helloworld\target\jira\home\plugins\installed-plugins\helloworld-1.0.0-SNAPSHOT.jar 
[INFO] [talledLocalContainer] 
[INFO] [talledLocalContainer]   'com.atlassian.tutorial.helloworld-tests' - 'helloworld' failed to load. 
[INFO] [talledLocalContainer]     Cannot start plugin: com.atlassian.tutorial.helloworld-tests 
[INFO] [talledLocalContainer]       Unresolved constraint in bundle com.atlassian.tutorial.helloworld-tests [162]: Unable to resolve 162.0: missing requirement [162.0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.tutorial.helloworld.api) [caused by: Unable to resolve 161.0: missing requirement [161.0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.plugin.spring.scanner.annotation.export)] 

失敗的原因是什麼?

回答

0

閱讀關於spring scanner(我不能添加評論,所以我寫它作爲答案)。如果您可以請在這裏輸入您的pom文件。我認爲你的pom.xml文件中缺少一些東西。還有一件事,你是否創建了插件 atlas-create-jira-plugin命令?