maven-war-plugin chmod退出代码为:127 [英] maven-war-plugin chmod exit code was:127

查看:132
本文介绍了maven-war-plugin chmod退出代码为:127的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个外壳来调用蚂蚁,而后者又在Redhat中调用了maven.

I am running a shell to call a ant, which further call a maven in Redhat.

有人能指出这个错误的背景吗?

Could anyone point out the context of this error?

[错误]无法执行目标 org.apache.maven.plugins:maven-war-plugin:2.3:wa
项目网站上的r(默认战争):解压缩文件时出错 [/scratch/mingtzha/12.1/.../sites-dojo/target/sites-dojo-1.6.1-12.1.4.0-SNAPSHOT.war]至 [/scratch
/mingtzha/12.1/.../sites-dojo]:chmod退出代码为:127-> [帮助1]

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.3:wa
r (default-war) on project sites: Error unpacking file [/scratch/mingtzha/12.1/.../sites-dojo/target/sites-dojo-1.6.1-12.1.4.0-SNAPSHOT.war]to [/scratch
/mingtzha/12.1/.../sites-dojo]: chmod exit code was: 127 -> [Help 1]

我发现此"useJvmChmod"属性可能相关. http://maven.apache.org/plugins/maven-war -plugin/war-mojo.html

I found this "useJvmChmod" property maybe relevant. http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

推荐答案

此问题已解决.我在Shell脚本中犯了一个愚蠢的错误.我写了:PATH而不是:$ PATH,它实际上中断了所有命令行调用,例如"chmod".

This one is resolved. I had a silly mistake in Shell script. I wrote :PATH instead of :$PATH, it actually breaks all command line calls such as "chmod".

这篇关于maven-war-plugin chmod退出代码为:127的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆