Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 2 maven release plugin-Vang使用ssh验证失败,但是snapshort和release deploy可以工作-嗯?_Maven 2_Ssh_Release_Maven Release Plugin_Wagon - Fatal编程技术网

Maven 2 maven release plugin-Vang使用ssh验证失败,但是snapshort和release deploy可以工作-嗯?

Maven 2 maven release plugin-Vang使用ssh验证失败,但是snapshort和release deploy可以工作-嗯?,maven-2,ssh,release,maven-release-plugin,wagon,Maven 2,Ssh,Release,Maven Release Plugin,Wagon,我很困惑,希望能得到任何帮助。我的构建机器无法再使用maven发布插件。当我尝试时,它在从标记部署的过程中对auth失败。但是,这台机器可以使用标准的部署方法发布快照和发布存储库(它们位于以nexus为中介的同一台机器上) 发布:从我的桌面执行工作 发布:在我的生成计算机上执行失败,出现身份验证错误 从桌面和生成计算机部署到快照或发布存储库 发布:从我的生成计算机执行失败,原因如下: 部署项目时出错:身份验证失败:无法连接。原因:授权取消 mvn.bat -DdevelopmentVersi

我很困惑,希望能得到任何帮助。我的构建机器无法再使用maven发布插件。当我尝试时,它在从标记部署的过程中对auth失败。但是,这台机器可以使用标准的部署方法发布快照和发布存储库(它们位于以nexus为中介的同一台机器上)

  • 发布:从我的桌面执行工作
  • 发布:在我的生成计算机上执行失败,出现身份验证错误
  • 从桌面和生成计算机部署到快照或发布存储库
  • 发布:从我的生成计算机执行失败,原因如下:
部署项目时出错:身份验证失败:无法连接。原因:授权取消

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
这两台机器都是windows,我认为ssh是可以的,因为快照和正常部署都可以工作。我看了以下内容,但运气不好。欢迎提出任何建议。谢谢

彼得

检查的内容

  • setting.xml(相同)
  • 路径(不同,但相同时没有影响)
  • 本地存储库(已尝试清除每个存储库,以查看是否为本地存储库-无影响)
  • maven安装-相同
命令-通常由hudson运行,但也可以手动运行

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>
com.reling.experience
单纯形
罐子
1.0.16-快照
单纯形
http://maven.apache.org
...
http://svn-da/svn/darepos/users/pkahn/simplejar/trunk
scm:svn:http://svn-da/svn/darepos/users/pkahn/simplejar/trunk
${project.artifactId}-${project.version}-${buildNumber}
org.apache.maven.plugins
maven发布插件
释放
部署
大昂
DA工程
scp://mavenrepo/opt/sonatype-work/nexus/storage/daeng/
大阳快照
DA工程
scp://mavenrepo/opt/sonatype-work/nexus/storage/daeng-snap/

一些建议/想法:

  • 仔细检查ssh部分是否正确
    • ~/.ssh
      目录
    • known\u宿主
      文件
  • 使用最新版本的maven发布插件,即
    2.0
  • 尝试使用
    -X
    运行,查看是否获得了更多有用的信息

    • 一些建议/想法:

      • 仔细检查ssh部分是否正确
        • ~/.ssh
          目录
        • known\u宿主
          文件
      • 使用最新版本的maven发布插件,即
        2.0
      • 尝试使用
        -X
        运行,查看是否获得了更多有用的信息