Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Component-Sip-Servlets MSS-3.0.0.FINAL Roadmap-Fix

New issue 242 by [email protected]: The source encoding is not specified in the root pom.xml, which can cause maven to bail out because the build becomes platform dependent
http://code.google.com/p/sipservlets/issues/detail?id=242

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/cent5/sip-servlets-spec/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /mnt/jenkins/workspace/twilio.mobicents-sip-servlet.twilio_mss_2x/BUILD_TARGET/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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/cent5/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=4680a7be94185c9a1a2faa64667c63a4c9ecee3f&name=mss_2x

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "mobicents-all-issues-changes" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to