maven 找不到包 atlassian

maven cannot find package atlassian

我不是真正的 java 开发人员,但我需要一个由 java 编写的 JIRA 插件:https://github.com/garaio/jira2vertec-Gateway

您必须使用 maven 构建此项目。问题是,如果我尝试使用 mvn build install 构建它,我会收到以下错误消息:

Unresolveable build extension: Plugin com.atlassian.maven.plugins:maven-jira-plugin:6.3.15 or one of its dependencies could not be resolved: Could not find artifact com.atlassian.maven.plugins:maven-jira-plugin:jar:6.3.15 in central (https‍://repo.maven.apache.org/maven2) -> [Help 2]

几年前我已经使用过 maven,据我所知,maven 几乎了解所有相关的库。我正在尝试构建它的插件也应该可以工作。所以我不知道问题出在哪里。也许 https://repo.maven.apache.org/maven2 不是正确的存储库?但我没有在 Maven 的 settings.xml 中进行任何更改。

我正在使用 apache-maven-3.5.3。

maven-jira-plugin Maven 存储库中不存在 6.3.15

更改为 5.0.18

<amps.version>5.0.18</amps.version>

编辑 1 :

如果你想使用 6.3.15,你应该使用 Spring 插件库而不是中央库

你可以通过

<project>
  <repositories>
    <repository>
      <id>my-repo1</id>
      <name>Spring Plugins</name>
      <url>http://repo.spring.io/plugins-release/</url>
    </repository>
</project>

如果您想使用多个存储库,请获取更多信息:Link

我已经安装了 [atlassian 插件 sdk][1] 并在此插件中使用了 apache maven。

但是您可以使用标准的 Maven 并像这样扩展 settings.xml 文件:

<profile>
  <id>defaultProfile</id>
  <activation>
    <activeByDefault>true</activeByDefault>
  </activation>

  <repositories>
    <repository>
      <id>atlassian-public</id>
      <url>https://maven.atlassian.com/repository/public</url>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
    </repository>
   <repository>
     <id>atlassian-plugin-sdk</id>
      <url>file://${env.ATLAS_HOME}/repository</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>atlassian-public</id>
      <url>https://maven.atlassian.com/repository/public</url>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
      <snapshots>
        <updatePolicy>never</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </snapshots>
    </pluginRepository>
    <pluginRepository>
      <id>atlassian-plugin-sdk</id>
      <url>file://${env.ATLAS_HOME}/repository</url>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
  <properties>
    <downloadSources>true</downloadSources>
    <downloadJavadocs>true</downloadJavadocs>
  </properties>