一个yum简单故障的处理
2014-01-03 00:49
295 查看
今天在新的Linux服务器上将项目check out出来以后,重新build,就出现了下面的问题:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1:war (default-war) on project rendezvous: Error assembling WAR: Failed to read filesystem attributes for: /opt/dev1/test/target/test/WEB-INF/web.xml: Failed to retrieve numeric file attributes using: '/bin/sh -c l s -1nlad /opt/dev1/test/target/test/WEB-INF/web.xml': Error while executing process. Cannot run program "/bin/sh": java.io.IOException: err or=12, Cannot allocate memory -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1:war (default-war) on proj ect rendezvous: Error assembling WAR: Failed to read filesystem attributes for: /opt/dev1/test/target/dev1/WEB-INF/web.xml
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
Google了一圈没有找到有用的信息,最后请教了Maven的牛人,猜测是JDK引起的。因为我安装的是Open JDK。于是抱着试试看的态度,卸载了Open JDK,然后下载安装了Sun JDK。再运行mvn package -Dmaven.test.skip=true, 真的出现了BUILD SUCCESS。
忽然想起以前好像因为Open JDK出现过其他问题,当时就换了Sun的。所以不推荐大家使用OPEN-JDK。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1:war (default-war) on project rendezvous: Error assembling WAR: Failed to read filesystem attributes for: /opt/dev1/test/target/test/WEB-INF/web.xml: Failed to retrieve numeric file attributes using: '/bin/sh -c l s -1nlad /opt/dev1/test/target/test/WEB-INF/web.xml': Error while executing process. Cannot run program "/bin/sh": java.io.IOException: err or=12, Cannot allocate memory -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1:war (default-war) on proj ect rendezvous: Error assembling WAR: Failed to read filesystem attributes for: /opt/dev1/test/target/dev1/WEB-INF/web.xml
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
Google了一圈没有找到有用的信息,最后请教了Maven的牛人,猜测是JDK引起的。因为我安装的是Open JDK。于是抱着试试看的态度,卸载了Open JDK,然后下载安装了Sun JDK。再运行mvn package -Dmaven.test.skip=true, 真的出现了BUILD SUCCESS。
忽然想起以前好像因为Open JDK出现过其他问题,当时就换了Sun的。所以不推荐大家使用OPEN-JDK。
相关文章推荐
- 一个简单的在线字符处理小工具
- 小问题不简单,一个无线故障的排查过程
- cloudstack 4.0 XenServer 日常简单故障处理
- java对txt文本文件的复制粘贴(对文件内容进行了简单的修改)以行为一个处理单位
- 字符串处理的一个简单题
- 一个简单的用户信息处理理组件
- 加速yum的一个简单方法
- 对于表单域乱码的处理!!只要一个简单的方法的,好好....
- 一个简单好玩的图像处理练习
- ffmpeg+sdl教程----编写一个简单的播放器7(处理快进快退命令)
- C#事件演示程序1)——一个最简单的C#事件处理程序
- 一个简单的四则运算程序C语言实现--无法处理括号
- 一个简单的Android图片处理Demo
- 在一般处理程序里写一个简单验证码
- 转:一个简单的FileUpload处理逻辑
- 一个简单的进度条比处理文件解析
- 题目:输入一个英文句子,翻转句子中单词的顺序,但单词内字符的顺序不变。句子中单词以空格符隔开。为简单起见,标点符号和普通字母一样处理。例如输入“I am a student.”,则输出“student
- 一个简单处理消息的例子-sendmessage应用
- Linux下,使用C/C++编写的一个简单的信号处理例程
- 百胜餐饮集团 (YUM) 财务共享中心使用 ABBYY FlexiCapture,使业务处理能力跨上了一个新台阶