我们在CentOS上有一个只有root用户的构建设置。Ant命令运行良好,直到我们创建了一些用户。现在这些用户不能运行ant命令。用户看到以下错误信息
axis:
[taskdef] Could not load definitions from resource axis-tasks.properties. It could not be found.
BUILD FAILED
/home/akshay/code_17sp1/vobs/company/ipnpm_src/Pwg/build.xml:100: Problem: failed to create task or type axis-wsdl2java
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
和build . xml: 100
<axis-wsdl2java url="${company-pwg.base}/src/NpViewService.wsdl"
output="${axis.output}">
我认为这与类路径或权限有关。
编辑:类路径:
export MSPSDK=8.10.0.3
export SONA_WSDL_VERSION=12.5.0.1
export TMPDIR=$HOME/tmp
export RELEASE=$HOME/Release
export JAVA_HOME=/usr/java/current
export ANT_HOME=/usr/local/apache-ant-1.6.5
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
for root $HOME =/root$HOME =/HOME/akshay
类路径中缺少axis ANT任务jar和依赖项。我猜根用户有一些额外的jar位于它的主目录?
- /根/.ant/lib
对于适用于所有用户的通用解决方案,请检查以下答案:
- ant命令在执行时显示错误:resource axis-tasks。无法找到属性
它使用Apache ivy插件来管理依赖项