[
https://issues.jenkins-ci.org/browse/JENKINS-13725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163498#comment-163498
]
Andrey Myatlyuk commented on JENKINS-13725:
-------------------------------------------
Hi Alexandre,
Can you please check default character mapping on your machine? When the
default mapping is ASCII, then you would see this error. To check default
character mapping settings, you can run this simple java code:
https://gist.github.com/2871211
If I run your example with ASCII character encoding specified, I get the
following:
kukido-ml01:java kukido$ javac -encoding ASCII Accent.java
Accent.java:3: warning: unmappable character for encoding ASCII
Busca por todos os itens que tenham no nome e/ou email o par??metro
^
While running it with UTF-8 yields the following results:
kukido-ml01:java kukido$ javac -encoding UTF8 Accent.java
No issues, the file is compiled successfully.
In the log that you provided, I don't see typical Maven warning for the cases
when character encoding is not specified:
[WARNING] Using platform encoding (MacRoman actually) to copy filtered
resources, i.e. build is platform dependent!
Do you have <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
property set in pom.xml? If not, can you try to run with the property set?
Thank you,
Andrey
> Bug encoding file
> -----------------
>
> Key: JENKINS-13725
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13725
> Project: Jenkins
> Issue Type: Bug
> Components: core
> Reporter: alexandre schossler
> Fix For: current
>
>
> I am running on a debian server jenkins, already rolled my whole project, all
> classes are in the UTF-8, but when trying to build the project occurs in the
> following error
> tarted by timer
> Building in workspace /home/hudson/.jenkins/workspace/scuv
> Updating http://192.168.3.100/svn/SCUV/trunk
> At revision 226
> no change for http://192.168.3.100/svn/SCUV/trunk since the previous build
> Parsing POMs
> [scuv] $ /home/jdk6u31/bin/java -cp
> /home/hudson/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/home/maven_2.2.1/boot/classworlds-1.1.jar
> hudson.maven.agent.Main /home/maven_2.2.1
> /home/hudson/.jenkins/war/WEB-INF/lib/remoting-2.13.jar
> /home/hudson/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar
> 47805
> /home/hudson/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar
> <===[JENKINS REMOTING CAPACITY]===>channel started
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.beanutils.converters.BooleanConverter).
> log4j:WARN Please initialize the log4j system properly.
> Executing Maven: -B -f /home/hudson/.jenkins/workspace/scuv/pom.xml clean
> install
> [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, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory /home/hudson/.jenkins/workspace/scuv/target
> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
> [INFO] [javadoc:jar {execution: default}]
> [INFO] Not executing Javadoc as the project is not a Java classpath-capable
> package
> [INFO] [install:install {execution: default-install}]
> [INFO] Installing /home/hudson/.jenkins/workspace/scuv/pom.xml to
> /home/hudson/.m2/repository/br/com/digitaldoc/scuv/scuv/0.0.1/scuv-0.0.1.pom
> [INFO] Installing
> /home/hudson/.jenkins/workspace/scuv/target/scuv-0.0.1-site.xml to
> /home/hudson/.m2/repository/br/com/digitaldoc/scuv/scuv/0.0.1/scuv-0.0.1-site.xml
> [JENKINS] Archiving /home/hudson/.jenkins/workspace/scuv/pom.xml to
> /home/hudson/.jenkins/jobs/scuv/modules/br.com.digitaldoc.scuv$scuv/builds/2012-05-09_14-46-21/archive/br.com.digitaldoc.scuv/scuv/0.0.1/scuv-0.0.1.pom
> [JENKINS] Archiving
> /home/hudson/.jenkins/workspace/scuv/target/scuv-0.0.1-site.xml to
> /home/hudson/.jenkins/jobs/scuv/modules/br.com.digitaldoc.scuv$scuv/builds/2012-05-09_14-46-21/archive/br.com.digitaldoc.scuv/scuv/0.0.1/scuv-0.0.1-site.xml
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building SCUV Persistence Module
> [INFO] task-segment: [clean, install]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [clean:clean {execution: default-clean}]
> [INFO] Deleting directory
> /home/hudson/.jenkins/workspace/scuv/scuv.persistence/target
> [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 58 source files to
> /home/hudson/.jenkins/workspace/scuv/scuv.persistence/target/classes
> [JENKINS] Archiving
> /home/hudson/.jenkins/workspace/scuv/scuv.persistence/pom.xml to
> /home/hudson/.jenkins/jobs/scuv/modules/br.com.digitaldoc.scuv$scuv.persistence/builds/2012-05-09_14-46-21/archive/br.com.digitaldoc.scuv/scuv.persistence/0.0.1/scuv.persistence-0.0.1.pom
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> /home/hudson/.jenkins/workspace/scuv/scuv.persistence/src/main/java/br/com/digitaldoc/scuv/dao/ClienteDao.java:[57,67]
> unmappable character for encoding ASCII
> .....
> the character of the error that has an accent, and is a comment
> /**
> * Busca por todos os itens que tenham no nome e/ou email o parĂ¢metro
> * passado
> *
> */
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira