English 中文(简体)
maven release plugin - wagonail with ssh auth but snapshort and Release work - eh?
原标题:maven release plugin - wagon fails with ssh auth but snapshort and release deploy works - eh?

我祝福,并希望得到任何帮助。 我的建筑机器不能再使用ma子释放 p。 当我试图在从双方部署期间失败时。 然而,这一机器可以使用标准部署方法释放储存库(存放在与中间商有联系的同一机器上)。

  • release:perform works from my desktop
  • release:perform fails on my build machine with auth error
  • deploy to a snapshot or release repository works from desktop and build machine
  • release:perform fails from my build machine with the following:

www.un.org/Depts/DGACM/index_spanish.htm 不可逆转地部署艺术品: 认证失败: Cannot有联系。 理由: 取消

这两台机器都是窗户,而我预想的是,由于幻觉和正常的部署工程,这台机器都是科索沃。 我对下面没有uck。 任何建议都会受到欢迎。 增 编

Peter

www.un.org/Depts/DGACM/index_spanish.htm 页: 1

  • setting.xml (identical)
  • Path (different, but no impact when I made identical)
  • Local Repositories (tried clearing each to see if that was it - no impact)
  • maven installations - same

www.un.org/Depts/DGACM/index_spanish.htm 指挥——通常由胡德森管理,但由手头管理。

mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 release:clean clean --batch-mode
mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 release:prepare --batch-mode
mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 deploy --batch-mode
mvn.bat -DdevelopmentVersion=1.0.16 -DreleaseVersion=1.0.15 -DscmCommentPrefix=SCM-1 release:perform --batch-mode

<>POM

    <groupId>com.releng.experiment</groupId>
      <artifactId>simplejar</artifactId>
      <packaging>jar</packaging>
      <version>1.0.16-SNAPSHOT</version>
      <name>simplejar</name>
      <url>http://maven.apache.org</url>
    ...
      <scm>
        <url>http://svn-da/svn/darepos/users/pkahn/simplejar/trunk</url>
        <developerConnection>scm:svn:http://svn-da/svn/darepos/users/pkahn/simplejar/trunk</developerConnection>
      </scm>

      <build>
        <finalName>${project.artifactId}-${project.version}-${buildNumber}</finalName> 
        <plugins>
                <plugin>
                   <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <configuration>
                        <releaseProfiles>release</releaseProfiles>
                        <goals>deploy</goals>
                    </configuration>        
                </plugin>    
            </plugins>
      </build>
    <distributionManagement>
      <repository>
        <id>daeng</id>
        <name>DA Engineering</name>
        <url>scp://mavenrepo/opt/sonatype-work/nexus/storage/daeng/</url>
      </repository>
      <snapshotRepository>
        <id>daeng-snap</id>
        <name>DA Engineering</name>
        <url>scp://mavenrepo/opt/sonatype-work/nexus/storage/daeng-snap/</url>
      </snapshotRepository>
    </distributionManagement>
</project>
问题回答

一些建议/建议:

  • double check that the ssh part is correct
    • the ~/.ssh directory
    • the known_hosts file
  • use the latest version of the maven release plugin i.e. <version>2.0</version>
  • try to run with -X to see if you get more useful information




相关问题
Derby gets stuck closing?

I ve got unit tests (in maven) that use derby. At the end of the test run, there is a very long pause, with these log messages before the pause. INFO: Closing Hibernate SessionFactory Nov 16, 2009 8:...

Execute goal on parent after children complete

I have a multi-module maven project (several levels of nesting). Normally, when I execute a maven build (like mvn install or whatever), maven will run all the goals for the parent project before ...

Including dependencies in a jar with Maven

Is there a way to force maven(2.0.9) to include all the dependencies in a single jar file? I have a project the builds into a single jar file. I want the classes from dependencies to be copied into ...

Java Equivalent of distcc

Distcc makes it easy to distribute a C or C++ compile job across a number of machines, and is a godsend for working with large, frequently-built codebases. An increasing number of our large projects ...

Maven Assembly Problem

I have a maven multiple-module project, which is giving me headaches in the assembly:assembly phase. I have a module which has an assembly defined in it which works fine when I invoke mvn assembly:...

热门标签