Hudson项目构建成功的方法

之前报错如下

Started by user anonymous
Updating file:///D:/MySVNRepo revision: 2013-7-15 15:20:33 depth:infinity ignoreExternals: false
At revision 6
no change for file:///D:/MySVNRepo since the previous build
[workspace] $ E:\mavon\apache-maven-3.1.0-alpha-1-bin\apache-maven-3.1.0-alpha-1\bin\mvn.bat test indtall
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.172s
[INFO] Finished at: Mon Jul 15 15:20:37 CST 2013
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\Documents and Settings\chaigw\.hudson\jobs\youare\workspace). Please verify you invoked Maven from the correct directory. -> [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/MissingProjectException
Finished: FAILURE

看异常就知道 运行 mvn 方法 找不到 pom.xml文件了,但是建立过程并未找项目,因为流程是,进行编译的时候自动建立一个工作空间,然后找pom文件,说明路径一定配置有问题,问题在于svn的路径要写上项目名
file:///D:/MySVNRepo/mavenT

这个改完了就好了,如下
Started by user anonymous
Checking out a fresh workspace because there's no workspace at C:\Documents and Settings\chaigw\.hudson\jobs\no\workspace
Cleaning workspace C:\Documents and Settings\chaigw\.hudson\jobs\no\workspace
Checking out file:///D:/MySVNRepo/mavenT revision: 2013-7-15 15:37:08 depth:infinity ignoreExternals: false
A         .settings
A         .settings\org.eclipse.jdt.core.prefs
A         .settings\org.maven.ide.eclipse.prefs
A         target
A         target\maven-archiver
A         target\maven-archiver\pom.properties
AU        target\mavenT-0.0.1.jar
A         src
A         src\test
A         src\test\java
A         src\test\resources
A         src\main
A         src\main\java
A         src\main\java\com
A         src\main\java\com\maven
A         src\main\java\com\maven\MavenWorld.java
A         src\main\java\com\maven\MavenWorldImpl.java
A         src\main\resources
A         pom.xml
A         .project
A         .classpath
At revision 6
[workspace] $ mvn.bat install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building mavenT 0.0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ mavenT ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ mavenT ---
[WARNING] File encoding has not been set, using platform encoding GBK, i.e. build is platform dependent!
[INFO] Compiling 2 source files to C:\Documents and Settings\chaigw\.hudson\jobs\no\workspace\target\classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ mavenT ---
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ mavenT ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ mavenT ---
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ mavenT ---
[INFO] Building jar: C:\Documents and Settings\chaigw\.hudson\jobs\no\workspace\target\mavenT-0.0.1.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ mavenT ---
[INFO] Installing C:\Documents and Settings\chaigw\.hudson\jobs\no\workspace\target\mavenT-0.0.1.jar to E:\mavon\apache-maven-3.1.0-alpha-1-bin\repo\proj\mavenT\0.0.1\mavenT-0.0.1.jar
[INFO] Installing C:\Documents and Settings\chaigw\.hudson\jobs\no\workspace\pom.xml to E:\mavon\apache-maven-3.1.0-alpha-1-bin\repo\proj\mavenT\0.0.1\mavenT-0.0.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.235s
[INFO] Finished at: Mon Jul 15 15:37:20 CST 2013
[INFO] Final Memory: 9M/22M
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS


 
 
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

静山晚风

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值