我遇到服务器Hudson的问题。
我的项目java,我的工作区和所有类都有编码UTF-8,但是当尝试生成构建时会发生编码错误。
我使用Ubuntu服务器11.04,并开发Ubuntu 11.10。
发生的错误是:
/home/hudson/.hudson/jobs/SCUV/workspace/scuv.persistence/src/main/java/br/com/digitaldoc/scuv/abstracts/Bean.java:[29,18] error: unmappable character for encoding ASCII
在这一行有“ã”
任何人都知道如何解决这个问题?
这是控制台的输出:
Started by timer
Updating http://192.168.3.100/svn/SCUV/trunk revision: Apr 23, 2012 8:05:42 AM depth:infinity ignoreExternals: false
At revision 40
no change for http://192.168.3.100/svn/SCUV/trunk since the previous build
[workspace] $ mvn clean compile test
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] SCUV
[INFO] SCUV Persistence Module
[INFO] SCUV WebService Module
[INFO] SCUV WebApp Module
[INFO] ------------------------------------------------------------------------
[INFO] Building SCUV
[INFO] task-segment: [clean, compile, test]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] No goals needed for project - skipping
[INFO] No goals needed for project - skipping
[INFO] ------------------------------------------------------------------------
[INFO] Building SCUV Persistence Module
[INFO] task-segment: [clean, compile, test]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting file set: /home/hudson/.hudson/jobs/SCUV/workspace/scuv.persistence/target (included: [**], excluded: [])
[debug] execute contextualize
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 15 source files to /home/hudson/.hudson/jobs/SCUV/workspace/scuv.persistence/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/home/hudson/.hudson/jobs/SCUV/workspace/scuv.persistence/src/main/java/br/com/digitaldoc/scuv/inject/ScuvPersistenceAPI.java:[14,33] error: unmappable character for encoding ASCII
/home/hudson/.hudson/jobs/SCUV/workspace/scuv.persistence/src/main/java/br/com/digitaldoc/scuv/inject/ScuvPersistenceAPI.java:[14,34] error: unmappable character for encoding ASCII
////has more classes with the same error
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Apr 23 08:05:54 BRT 2012
[INFO] Final Memory: 22M/54M
[INFO] ------------------------------------------------------------------------
Recording test results
Performance: Percentage of errors greater or equal than 40% sets the build as unstable
Performance: Percentage of errors greater or equal than 60% sets the build as failure
Performance: Recording JUnit reports '**/TEST*.xml'
Sending e-mails to: asdasd@asdad.com
[DEBUG] Skipping watched dependency update for build: SCUV #7 due to result: FAILURE
Finished: FAILURE
答案 0 :(得分:2)
尝试删除~/.hudson
文件夹并重新配置。
告诉我它是否有效。