我正在为Jira制作插件并发现新问题。当我制作.jar文件时 - 我的电脑以错误的方式制作。与此同时,我同事的个人电脑也从同一个源头开始完美。可能是什么问题? JDK版本还是Atlassian SDK?或其他什么?
这是我的pom.xml
<?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.my_Plugin</groupId>
<artifactId>my_Plugin</artifactId>
<version>1.1.2</version>
<organization>
<name>Example company</name>
<url>http://example.com</url>
</organization>
<name>SmartAct</name>
<description>This plugin for Atlassian JIRA.</description>
<packaging>atlassian-plugin</packaging>
<dependencies>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-api</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-core</artifactId>
<version>${jira.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.atlassian.activeobjects</groupId>
<artifactId>activeobjects-plugin</artifactId>
<version>0.19.16</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
</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>
<log4jProperties>src/log4j.properties</log4jProperties>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<jira.version>6.0.4</jira.version>
<amps.version>4.2.3</amps.version>
</properties>
<repositories>
<repository>
<id>saucelabs</id>
<url>http://repository-saucelabs.forge.cloudbees.com/release</url>
</repository>
<repository>
<id>atlassian maven1</id>
<url>https://maven.atlassian.com/maven1</url>
</repository>
<repository>
<id>atlassian old</id>
<url>https://maven.atlassian.com/content/groups/public</url>
</repository>
<repository>
<id>atlassian-public</id>
<url>https://m2proxy.atlassian.com/repository/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>atlassian-public</id>
<url>https://m2proxy.atlassian.com/repository/public</url>
</pluginRepository>
</pluginRepositories>
答案 0 :(得分:0)
如果可能的话,发布你的atlas-package命令,这样我们就可以猜测出错了什么。还请指定您的开发环境,Shell的IDE / OS /编码和目标平台,即Windows x64下的JIRA 6.0.4等。
此致,Holger
@Paul:BTW:这与从Eclipse内部运行没有任何关系,你需要一个JIRA实例用于这些类型的插件,请参见:Atlassian JIRA