- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用最新版本的 atlassian SDK 为 JIRA 开发插件。我已经编写了大部分代码,并向我的项目的 pom.xml 文件添加了一些我需要的依赖项(见下文)。
不幸的是,在运行 atlas-run 启动我的本地 JIRA 环境时,由于以下错误,它无法加载我的插件:
'com.COMPANY.COMPANY-worklog-plugin' - 'COMPANY-worklog-plugin' failed to load.
[INFO] [talledLocalContainer] Cannot start plugin: com.COMPANY.COMPANY-worklog-plugin
[INFO] [talledLocalContainer] Unresolved constraint in bundle com.COMPANY.COMPANY-plugin [167]: Unable to resolve 167.0: missing requirement [167.0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.inject)
[INFO] [talledLocalContainer]
[INFO] [talledLocalContainer]It was loaded from C:\Project\COMPANY-worklog-plugin\target\jira\home\plugins\installed-plugins\COMPANY-worklog-plugin-1.0.0-SNAPSHOT.jar
几天来我一直被相同类型的错误所困扰,包括以下内容:(我设法通过将依赖项添加到我的 POM 来修复):
[INFO] [talledLocalContainer]Unresolved constraint in bundle com.maxxton.worklog-plugin [167]: Unable to resolve 167.0: missing requirement [167.0] osgi.wiring.package; (osgi.wiring.package=bsh)
我试过以下方法:
我的POM如下:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.maxxton</groupId>
<artifactId>maxxton-worklog-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<organization>
<name>Example Company</name>
<url>http://www.example.com/</url>
</organization>
<name>maxxton-worklog-plugin</name>
<description>This is the com.maxxton:maxxton-worklog-plugin plugin for Atlassian JIRA.</description>
<packaging>atlassian-plugin</packaging>
<dependencies>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-api</artifactId>
<version>${jira.version}</version>
</dependency>
<!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
<!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
<!--<dependency>-->
<!--<groupId>com.atlassian.jira</groupId>-->
<!--<artifactId>jira-core</artifactId>-->
<!--<version>${jira.version}</version>-->
<!--<!–<scope>provided</scope>–>-->
<!--<scope>compile</scope>-->
<!--</dependency>-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-annotation</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-runtime</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.beanshell</groupId>
<artifactId>bsh</artifactId>
<version>2.0b4</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.3.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.0.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.3.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20140107</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.mashape.unirest</groupId>
<artifactId>unirest-java</artifactId>
<version>1.4.9</version>
<scope>compile</scope>
</dependency>
<!-- WIRED TEST RUNNER DEPENDENCIES -->
<dependency>
<groupId>com.atlassian.plugins</groupId>
<artifactId>atlassian-plugins-osgi-testrunner</artifactId>
<version>${plugin.testrunner.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2-atlassian-1</version>
<scope>compile</scope>
</dependency>
<!-- Uncomment to use TestKit in your project. Details at https://bitbucket.org/atlassian/jira-testkit -->
<!-- You can read more about TestKit at https://developer.atlassian.com/display/JIRADEV/Plugin+Tutorial+-+Smarter+integration+testing+with+TestKit
-->
<!--
<dependency>
<groupId>com.atlassian.jira.tests</groupId>
<artifactId>jira-testkit-client</artifactId>
<version>${testkit.version}</version>
<scope>test</scope>
</dependency>
--> </dependencies>
<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>
<!-- Uncomment to install TestKit backdoor in JIRA. -->
<!--
<pluginArtifacts>
<pluginArtifact>
<groupId>com.atlassian.jira.tests</groupId>
<artifactId>jira-testkit-plugin</artifactId>
<version>${testkit.version}</version>
</pluginArtifact>
</pluginArtifacts>
-->
<enableQuickReload>true</enableQuickReload>
<enableFastdev>false</enableFastdev>
<!-- See here for an explanation of default instructions: -->
<!-- https://developer.atlassian.com/docs/advanced-topics/configuration-of-instructions-in-atlassian-plugins
-->
<instructions>
<Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
<!-- Add package to export here -->
<Export-Package>
com.maxxton.api,
</Export-Package>
<!-- Add package import here -->
<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional",
*
</Import-Package>
<!-- Ensure plugin is spring powered -->
<Spring-Context>*</Spring-Context>
</instructions>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
<version>${atlassian.spring.scanner.version}</version>
<executions>
<execution>
<goals>
<goal>atlassian-spring-scanner</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
<configuration>
<scannedDependencies>
<dependency>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-external-jar</artifactId>
</dependency>
</scannedDependencies>
<verbose>false</verbose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins> </build>
<properties>
<jira.version>7.2.4</jira.version>
<amps.version>6.2.6</amps.version>
<plugin.testrunner.version>1.2.3</plugin.testrunner.version>
<atlassian.spring.scanner.version>1.2.13</atlassian.spring.scanner.version>
<!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. -->
<atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
<!-- TestKit version 6.x for JIRA 6.x -->
<testkit.version>6.3.11</testkit.version>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target> </properties>
</project>
谢谢。
最佳答案
看起来我找到了修复它的方法,但我不确定它是否是一个好的修复方法。它与导入某些包有关;我不确定它背后的逻辑,但它似乎已经消除了所有的包错误,导致我的插件在启动我的本地环境时完美加载。
对于那些好奇的人,我改变了我的:
<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional",
*
</Import-Package>
到
<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional",
*;version="0";resolution:=optional
</Import-Package>
关于maven - 无法启动插件 : Unable to resolve 167. 0 : missing requirement [167. 0] osgi.wiring.package; (osgi.wiring.package=com.atlassian.inject),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40929269/
我的虚拟机定义了主机名,例如 mycrucible。此 VM 部署在云中。但是这个域名没有注册。因此,我只能通过 IP 地址访问我的 Crucible 安装。 当我收到来自 Crucible 的通知时
我已经安装/设置了 atlassian-plugin-sdk,所以我可以研究 JIRA 插件开发。 但是,当我运行“atlas-run-standalone --product jira”命令并启动
这是我运行 atlas-create-jira-plugin 时得到的结果后跟 atlas-create-jira-plugin-module选择选项1: Component Import . 问题是
Atlassian plugin SDK用于为 Atlassian 产品创建插件。 该套件包括两个程序,atlas-run和 atlas-run-standalone似乎执行相同的任务:在其中一个产品
我刚刚格式化了我的笔记本电脑,并安装了所有新的东西。但是现在我无法启动 Jira。 这是我收到的错误信息: The POM for com.atlassian.plugin:atlassian-spr
我刚刚格式化了我的笔记本电脑,并安装了所有新的东西。但是现在我无法启动 Jira。 这是我收到的错误信息: The POM for com.atlassian.plugin:atlassian-spr
我创建了骨架存储插件项目(atlas-create-stash-plugin)并发出了 atlas-run 命令。并在构建期间将存储部署到 Tomcat 中。我还没有配置存储,并且在第一个屏幕中提示我
在Crucible中,我使用高级搜索。 我尝试为未审查的指定用户选择所有提交。 以下查询: select revisions from dir / where (on branch master or
如何在Sourcetree中添加Devart的Code Compare作为自定义差异和合并工具? 最佳答案 我通过添加像Alex建议的代码来修改了C:\Users\[User Name]\.gitco
我添加了我现在不想跟踪的存储库文件。我不希望它们出现在这个待处理的文件窗口中,但我不想从项目中删除它们。问题是我不知道如何解决它。我尝试了一切。我什至从存储库中删除了它们(但不是从项目中删除,所以它们
我使用 Sourcetree 通过 ssh 拉取和推送到服务器。 Sourcetree 已记住密码,但密码已更改。我找不到如何通知 Sourcetree 新密码。 根据 Google 搜索,我尝试了以
我在提交更改中仅添加了 1 条评论。我还没推。我怎样才能添加更多评论?我有点害怕做错事。 最佳答案 只是想用这些简单的图片更清楚地说明这个老问题,尽管这仅适用于最新的提交(针对 SourceTree
我的存储库去了哪里?它们在 Sourcetree 的左侧,现在它是空白的,我不知道如何找到它们。看截图: 最佳答案 版本 2.0+ 书签已更改为本地存储库文件夹并被视为选项卡。 单击选项卡旁边的 +
我正在删除源树上的帐户,但是每当我尝试删除时: Tools > Options > Authentication SourceTree不会删除保存的密码。我需要删除密码,因为它包含与帐户关联的错误详细
我在 Windows 7 上使用 Git 的 Source tree 客户端。我已经使用过与用于 mercurial 的 tortoisehg 客户端进行比较,我也喜欢在 SourceTree 中使用
我们正在尝试使用 Atlassian 产品,我已经使用 GreenHopper 准备了一个敏捷冲刺,并且对流程几乎没有混淆。 以下是我们在办公室进行当前开发的方式: 开发人员完成分配给他们的问题。将它
我想提交我的作品。但是当我想查看我更改的内容并将它们写入提交消息时,我看到我的一些更改不会显示。 问题是什么? 最佳答案 更改选项中的最大行数和大小 工具 > 选项 > 差异 更改最大差异线数 和 更
我正在尝试在系统上安装SourceTree应用程序。在下图所示的步骤中,我尝试通过现有帐户登录,或者也尝试使用“我的Atlassian”帐户登录,但是我无法再继续了。有人可以帮我这个忙吗?我可以登录,
最近我在我的 Windows 机器上安装了 Source Tree。如何使用源代码树将代码提交、合并到中央存储库?还有我怎样才能切换分支?任何人都可以向我提供如何克服这个问题的链接吗? 最佳答案 您好
我正在构建一个插件,每当我在 atlassian stash 中打开或编辑拉取请求时,都会将 http 请求发送到服务器。我已经让插件可以使用硬编码值(如 url、各种 url 参数等),但现在我需要
我是一名优秀的程序员,十分优秀!