Atlassian Bamboo .Net插件依赖项安装

乔瑞恩

我希望修改现有的Atlassian Bamboo .Net插件:https : //bitbucket.org/atlassian/bamboo-dotnet-plugin,以便MsTest分析器将包含StackTrace信息。

我已经在本地下载了存储库,并尝试使用Maven命令安装所有项目依赖项mvn clean install -U
不幸的是,并不是所有的jar都已下载,因此我在网上搜索了帮助,发现使用Atlassian SDK,我可以构建该项目并让它处理所有的maven东西,因为它的settings.xml文件中已经配置了所有东西。

问题是即使使用它,我仍然会遇到构建失败的情况。这是我的cmd输出:

[INFO] ---------------------------------------------------------------------

---
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:43 min
[INFO] Finished at: 2016-07-12T14:22:23+02:00
[INFO] Final Memory: 11M/29M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project atlassian-bamboo-plugin-dotnet: Could not resolve dependencies for project com.atlassian.bamboo.plugins.dotnet:atlassian-bamboo-plugin-dotn
et:atlassian-plugin:5.11.2-SNAPSHOT: The following artifacts could not be resolved: com.atlassian.bamboo:atlassian-bamboo-api:jar:5.12.0-SNAPSHOT, com.atlassian.bamboo:atlassian-bam
boo-core:jar:5.12.0-SNAPSHOT, com.atlassian.bamboo.plugins.scripttask:atlassian-bamboo-plugin-scripttask:jar:5.12.0-SNAPSHOT, com.atlassian.bamboo:atlassian-bamboo-test-utils:jar:5.
12.0-SNAPSHOT: Could not find artifact com.atlassian.bamboo:atlassian-bamboo-api:jar:5.12.0-SNAPSHOT in atlassian-public (https://maven.atlassian.com/repository/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

之后,我尝试了额外的操作mvn install并获得以下输出:

[INFO] Scanning for projects...
[WARNING] The POM for org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.5-atlassian-2 is missing, no dependency information available
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.5-atlassian-2 or one of its dependencies could not be resolved: Failure to find org
.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.5-atlassian-2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted unt
il the update interval of central has elapsed or updates are forced @
[ERROR] Unknown packaging: atlassian-plugin @ line 14, column 14
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.atlassian.bamboo.plugins.dotnet:atlassian-bamboo-plugin-dotnet:5.11.2-SNAPSHOT (C:\Users\Roy\Desktop\atlassian-bamboo-dotnet-plugin-7d0bf7a4f611\pom.xml) h
as 2 errors
[ERROR]     Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.5-atlassian-2 or one of its dependencies could not be resolved: Failure to find
 org.sonatype.plugins:nexus-staging-maven-plugin:jar:1.6.5-atlassian-2 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted
 until the update interval of central has elapsed or updates are forced -> [Help 2]
[ERROR]     Unknown packaging: atlassian-plugin @ line 14, column 14
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException

有人可以帮我解决这个问题吗?这是pom.xml文件:

<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>

  <parent>
    <groupId>com.atlassian.pom</groupId>
    <artifactId>public-pom</artifactId>
    <version>4.0.8</version>
  </parent>

  <groupId>com.atlassian.bamboo.plugins.dotnet</groupId>
  <artifactId>atlassian-bamboo-plugin-dotnet</artifactId>
  <version>5.11.2-SNAPSHOT</version>
  <packaging>atlassian-plugin</packaging>

  <name>Atlassian Bamboo .NET Plugin</name>
  <description>Plugin for Bamboo that provides .NET support</description>

  <properties>
    <bamboo.version>5.12.0-SNAPSHOT</bamboo.version>
    <bamboo.data.version>5.10.0</bamboo.data.version>
    <amps.version>5.0.4</amps.version>
    <failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>
  </properties>

  <scm>
    <connection>scm:hg:ssh://[email protected]/atlassian/bamboo-dotnet-plugin</connection>
    <developerConnection>scm:hg:ssh://[email protected]/atlassian/bamboo-dotnet-plugin</developerConnection>
    <url>https://bitbucket.org/atlassian/bamboo-dotnet-plugin/src</url>
    <tag>HEAD</tag>
  </scm>

  <issueManagement>
    <system>JIRA</system>
    <url>https://jira.atlassian.com/browse/BAM</url>
  </issueManagement>

  <licenses>
    <license>
      <name>BSD License</name>
      <url>https://bitbucket.org/atlassian/bamboo-dotnet-plugin</url>
    </license>
  </licenses>

  <developers>
    <developer>
      <name>Ross Rowe</name>
    </developer>
    <developer>
      <name>James William Dumay</name>
      <email>[email protected]</email>
    </developer>
  </developers>

  <contributors>
    <contributor>
      <name>Marko Lahma</name>
    </contributor>
    <contributor>
      <name>Krystian Brazulewicz</name>
      <email>[email protected]</email>
    </contributor>
    <contributor>
      <name>Joseph Clark</name>
      <email>[email protected]</email>
    </contributor>
  </contributors>

  <repositories>
    <repository>
      <id>atlassian-public</id>
      <url>https://maven.atlassian.com/repository/public</url>
      <snapshots>
        <enabled>true</enabled>
        <updatePolicy>always</updatePolicy>
        <checksumPolicy>warn</checksumPolicy>
      </snapshots>
      <releases>
        <enabled>true</enabled>
        <checksumPolicy>warn</checksumPolicy>
      </releases>
    </repository>
  </repositories>

  <dependencies>

    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-api</artifactId>
      <version>${bamboo.version}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-core</artifactId>
      <version>${bamboo.version}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <version>3.4</version>
      <scope>provided</scope>
    </dependency>

    <!-- Used for .NET script and command converters -->
    <dependency>
      <groupId>com.atlassian.bamboo.plugins.scripttask</groupId>
      <artifactId>atlassian-bamboo-plugin-scripttask</artifactId>
      <version>${bamboo.version}</version>
      <scope>provided</scope>
    </dependency>

    <!-- Required for accessing Windows registry -->
    <dependency>
      <groupId>net.java.dev.jna</groupId>
      <artifactId>jna-platform</artifactId>
      <version>3.2.7</version>
      <scope>compile</scope>
    </dependency>

    <!-- Test Dependencies -->

    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-test-utils</artifactId>
      <version>${bamboo.version}</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>com.atlassian.bamboo</groupId>
          <artifactId>atlassian-bamboo-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.google.collections</groupId>
          <artifactId>google-collections</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.github.stefanbirkner</groupId>
      <artifactId>system-rules</artifactId>
      <version>1.5.0</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymock</artifactId>
      <version>2.4</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.easymock</groupId>
      <artifactId>easymockclassextension</artifactId>
      <version>2.4</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>1.10.19</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>pl.pragmatists</groupId>
      <artifactId>JUnitParams</artifactId>
      <version>1.0.2</version>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.atlassian.maven.plugins</groupId>
          <artifactId>maven-amps-dispatcher-plugin</artifactId>
          <version>${amps.version}</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>1.8</version>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-bamboo-plugin</artifactId>
        <version>${amps.version}</version>
        <extensions>true</extensions>
        <configuration>
          <productVersion>${bamboo.version}</productVersion>
          <productDataVersion>${bamboo.data.version}</productDataVersion>
          <extractDependencies>true</extractDependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
乔瑞恩

所以我解决了。
问题是,在Atlassian存储库中没有这样的版本5.11.12-SNAPSHOT,因此我只是用最新版本替换了该版本。我不知道它是否会导致与较新版本的依赖关系版本的兼容性问题,但是更改它可以解决依赖关系下载问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

PhPUnit和Atlassian Bamboo

来自分类Dev

RoboCopy + Atlassian Bamboo持续集成

来自分类Dev

如何在Atlassian Bamboo中设置phpUnit?

来自分类Dev

无法在Atlassian Bamboo上执行并行运行?

来自分类Dev

有没有办法使用Atlassian Bamboo SDK或Bamboo REST API服务删除Bamboo代理?

来自分类Dev

如何通过bamboo安装python依赖模块

来自分类Dev

如何通过REST API从Bamboo Atlassian构建计划中检索我的自定义变量

来自分类Dev

Atlassian Bamboo:如果对特定文件进行了更改,请不要触发构建

来自分类Dev

在Atlassian Bamboo中,有什么方法可以获取最新的构建状态作为图像?

来自分类Dev

如何将NetBeans ant构建移植到构建服务器中(Atlassian Bamboo)

来自分类Dev

如何将NetBeans ant构建移植到构建服务器中(Atlassian Bamboo)

来自分类Dev

无法安装 Atlassian Connect Express

来自分类Dev

找不到Bamboo Maven插件

来自分类Dev

如何构建Atlassian插件以快速重新加载?

来自分类Dev

使用Atlassian .NET SDK时出现CommunicationException

来自分类Dev

插件之间的Atlassian Confluence通信/身份验证

来自分类Dev

wget localhost-连接被拒绝-AWS上的Atlassian安装

来自分类Dev

在Bamboo中运行时,不同的.NET构建结果

来自分类Dev

我可以在preUpdate中获得当前用户吗(Atlassian Bitbucket插件)

来自分类Dev

在Atlassian JIRA插件中为7.X替换不推荐使用的AbstractEditHandlerDetailsWebAction

来自分类Dev

在为每个构建容器插件创建Bamboo Sidekick代理时,如何指定JRE?

来自分类Dev

Bamboo远程构建代理在安装Node.js后找不到powershell.exe

来自分类Dev

Diff branches in Atlassian Stash

来自分类Dev

在Atlassian Stash的Diff分支

来自分类Dev

如何访问Atlassian云?

来自分类Dev

SoapUI / Maven / Bamboo:Bamboo工作例外

来自分类Dev

通过 Bamboo 根据环境动态更改 .Net Application 中的配置文件

来自分类Dev

在我的Atlassian插件的pom.xml中添加<dependency>会导致Spring BundleException违反约束条件

来自分类Dev

如何手动安装Maven插件,依赖项

Related 相关文章

  1. 1

    PhPUnit和Atlassian Bamboo

  2. 2

    RoboCopy + Atlassian Bamboo持续集成

  3. 3

    如何在Atlassian Bamboo中设置phpUnit?

  4. 4

    无法在Atlassian Bamboo上执行并行运行?

  5. 5

    有没有办法使用Atlassian Bamboo SDK或Bamboo REST API服务删除Bamboo代理?

  6. 6

    如何通过bamboo安装python依赖模块

  7. 7

    如何通过REST API从Bamboo Atlassian构建计划中检索我的自定义变量

  8. 8

    Atlassian Bamboo:如果对特定文件进行了更改,请不要触发构建

  9. 9

    在Atlassian Bamboo中,有什么方法可以获取最新的构建状态作为图像?

  10. 10

    如何将NetBeans ant构建移植到构建服务器中(Atlassian Bamboo)

  11. 11

    如何将NetBeans ant构建移植到构建服务器中(Atlassian Bamboo)

  12. 12

    无法安装 Atlassian Connect Express

  13. 13

    找不到Bamboo Maven插件

  14. 14

    如何构建Atlassian插件以快速重新加载?

  15. 15

    使用Atlassian .NET SDK时出现CommunicationException

  16. 16

    插件之间的Atlassian Confluence通信/身份验证

  17. 17

    wget localhost-连接被拒绝-AWS上的Atlassian安装

  18. 18

    在Bamboo中运行时,不同的.NET构建结果

  19. 19

    我可以在preUpdate中获得当前用户吗(Atlassian Bitbucket插件)

  20. 20

    在Atlassian JIRA插件中为7.X替换不推荐使用的AbstractEditHandlerDetailsWebAction

  21. 21

    在为每个构建容器插件创建Bamboo Sidekick代理时,如何指定JRE?

  22. 22

    Bamboo远程构建代理在安装Node.js后找不到powershell.exe

  23. 23

    Diff branches in Atlassian Stash

  24. 24

    在Atlassian Stash的Diff分支

  25. 25

    如何访问Atlassian云?

  26. 26

    SoapUI / Maven / Bamboo:Bamboo工作例外

  27. 27

    通过 Bamboo 根据环境动态更改 .Net Application 中的配置文件

  28. 28

    在我的Atlassian插件的pom.xml中添加<dependency>会导致Spring BundleException违反约束条件

  29. 29

    如何手动安装Maven插件,依赖项

热门标签

归档