首页 \ 问答 \ Jenkins CI服务器中的Maven项目问题(Issue with Maven Project in Jenkins CI server)

Jenkins CI服务器中的Maven项目问题(Issue with Maven Project in Jenkins CI server)

现在我们尝试使用Jenkins CI工具部署maven项目。

我创建了一个示例maven项目并添加了我的本地存储库的存储库URL和凭据,然后我点击了Build Job。 然后Jenkins将我的代码下载到特定作业的工作空间并下载了所有依赖项,但我在Jenkins控制台输出中收到以下错误,如下所示。

Downloaded: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar (61 KB at 31.6 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar (228 KB at 74.4 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar (425 KB at 42.2 KB/sec)
Downloading: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar
Downloaded: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar (949 KB at 718.8 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:00.677s
[INFO] Finished at: Thu Aug 20 01:44:31 IST 2015
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gcrtesting: Could not resolve dependencies for project com.vidyayug.testing:gcrtesting:jar:0.0.1-SNAPSHOT: Could not find artifact com.sun:tools:jar:0 at specified path /usr/lib/jvm/java-7-openjdk-i386/jre/../lib/tools.jar -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[JENKINS] Archiving /var/lib/jenkins/workspace/Maven testing selenium/pom.xml to com.vidyayug.testing/gcrtesting/0.0.1-SNAPSHOT/gcrtesting-0.0.1-SNAPSHOT.pom
channel stopped
Finished: FAILURE

任何人都可以帮我解决问题


Now we are trying to deploy maven project by using the Jenkins CI tool.

I have created a sample maven project and added the repository URL and credentials of my local repository then i have clicked on the Build Job . then Jenkins downloaded my code into the work space of the particular job and its downloaded all the dependencies but i got the following error in the Jenkins console output as shown in the below.

Downloaded: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar (61 KB at 31.6 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.6/commons-codec-1.6.jar (228 KB at 74.4 KB/sec)
Downloaded: http://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar (425 KB at 42.2 KB/sec)
Downloading: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar
Downloaded: http://repo.bodar.com/com/googlecode/totallylazy/totallylazy/1.20/totallylazy-1.20.jar (949 KB at 718.8 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:00.677s
[INFO] Finished at: Thu Aug 20 01:44:31 IST 2015
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gcrtesting: Could not resolve dependencies for project com.vidyayug.testing:gcrtesting:jar:0.0.1-SNAPSHOT: Could not find artifact com.sun:tools:jar:0 at specified path /usr/lib/jvm/java-7-openjdk-i386/jre/../lib/tools.jar -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[JENKINS] Archiving /var/lib/jenkins/workspace/Maven testing selenium/pom.xml to com.vidyayug.testing/gcrtesting/0.0.1-SNAPSHOT/gcrtesting-0.0.1-SNAPSHOT.pom
channel stopped
Finished: FAILURE

Can any one help me to resolve the issue


原文:https://stackoverflow.com/questions/32118166
更新时间:2023-11-15 22:11

最满意答案

那这个呢?

/ De [crypt]密码

http://msdn.microsoft.com/en-us/library/ms162810.aspx


What about this?

/De[crypt] password

http://msdn.microsoft.com/en-us/library/ms162810.aspx

相关问答

更多

相关文章

更多

最新问答

更多
  • 延迟socket.io响应,并“警告 - websocket连接无效”(Delayed socket.io response, and “warn - websocket connection invalid”)
  • IIS 7.5仅显示homecontroller(IIS 7.5 only shows homecontroller)
  • 我如何删除ListView中的项目?(How I can remove a item in my ListView?)
  • 武陟会计培训类的学校哪个好点?
  • Spring事务管理:无法解析bean'transactionManager'的引用(Spring transaction management: Cannot resolve reference to bean 'transactionManager')
  • 无法在后面访问链接:焦点,移开,div(Link can't be accessed behind :focus, moved out of the way, div)
  • 总和形式选择值 - 我做错了什么(sum form select values - what am I doing wrong)
  • DocBook5 ISO 690参考书目的文档[关闭](Documentation for DocBook5 ISO 690 bibliography [closed])
  • 为什么改变所有点的颜色而不是一个?(Why changed the color for all points instead of one?)
  • 如何从字符串中删除所有尾部破折号?(How can I remove all trailing dashes from a string?)
  • 有没有办法以这种方式调用这个JavaScript函数?(is there a way to call this javascript function in this way?)
  • 在更换字符串时替换组(Replacing a group while replacing a string)
  • 如何用Dreamweaver制作网页表格
  • git:如何能够再次切换分支(git: how to be able to switch branches again)
  • 应用程序在打印联系人姓名和号码时崩溃(app crashes in the middle of printing contact names and numbers)
  • 用CSS @media查询目标移动设备解决方案的最准确的方法是什么?(what is the most accurate way to query target mobile device resolutions with CSS @media?)
  • Java - 如何仅使元音加倍(Java - How to double only Vowels)
  • 调用root.destroy()后出现“tkinter.TclError:invalid command name”错误(“tkinter.TclError: invalid command name” error after calling root.destroy())
  • 使用键绑定在两个表单之间切换(Switching between two forms with Key Bindings)
  • 我把正确的导入但错误仍然发生在Hibernate 5中的org.hibernate.MappingException(I put the correct import but the error still happen org.hibernate.MappingException in Hibernate 5)
  • 从宁波江北洪塘到宁波南站人力市场乘坐什么车子要转什么车子,我去人力市场考电工上岗证
  • jQuery - 用所有元素的新值替换属性值(jQuery - replace attribute value with new value of all elements)
  • Lenovo Low Profile USB Keyboard 下载后找不到电脑上没有
  • 将反应元素渲染到隐藏区域以进行测量(Render a react element to a hidden area for measurement)
  • 有没有可能确定iOS widget何时隐藏?(Is it possible to determine when iOS widget hides?)
  • 量角器 - 描述没有定义(Protractor - describe is not defined)
  • Jackson序列化:XML和JSON的不同格式(Jackson Serialization: Different formats for XML and JSON)
  • 在Javascfipt中解析XML(Parsing XML in Javascfipt)
  • Firebird客户端安装(Firebird client installation)
  • 在未安装XML DB的情况下从Oracle发送电子邮件(Send email from Oracle without XML DB installed)