hungkhang / sipservlets

Automatically exported from code.google.com/p/sipservlets
0 stars 0 forks source link

The source encoding is not specified in the root pom.xml, which can cause maven to bail out because the build becomes platform dependent #242

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- simply build the source on a machine whose default encoding isn't UTF-8. Due 
to "bad" characters in the source code, maven will fail to compile.

What is the expected output? What do you see instead?
It should compile but instead I get:

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ 
sip-servlets-spec ---
[WARNING] File encoding has not been set, using platform encoding 
ANSI_X3.4-1968, i.e. build is platform dependent!
[INFO] Compiling 54 source files to 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[143,65]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[143,66]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[143,67]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[143,70]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[143,71]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[143,72]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[149,49]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[149,50]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[149,51]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[149,54]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[149,55]
 unmappable character for encoding ASCII
[ERROR] 
/mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/c
ent5/sip-servlets-spec/src/main/java/javax/servlet/sip/B2buaHelper.java:[149,56]
 unmappable character for encoding ASCII

What version of the product are you using? On what operating system?
compiling branch mss_2x (assume it is same on master). Cent OS 5

Please provide any additional information below.
Fix simply by specifying the source encoding to make the build not platform 
dependent.

Fix: 
http://code.google.com/r/jonas-mss/source/detail?r=4680a7be94185c9a1a2faa64667c6
3a4c9ecee3f&name=mss_2x

Original issue reported on code.google.com by jo...@twilio.com on 7 Nov 2013 at 5:00

GoogleCodeExporter commented 9 years ago

Original comment by jean.deruelle on 8 Nov 2013 at 1:53

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7361763b9da3.

Original comment by jean.der...@telestax.com on 8 Nov 2013 at 1:53

GoogleCodeExporter commented 9 years ago
Thanks for the patch and report

Original comment by jean.deruelle on 8 Nov 2013 at 1:54

GoogleCodeExporter commented 9 years ago
Could this one be merged into the mss_2x branch as well?

Original comment by jo...@twilio.com on 11 Nov 2013 at 12:20

GoogleCodeExporter commented 9 years ago

Original comment by jean.der...@telestax.com on 25 Aug 2014 at 10:52