[
https://issues.jenkins-ci.org/browse/JENKINS-7692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162896#comment-162896
]
evernat commented on JENKINS-7692:
----------------------------------
This is a java compilation problem so this is certainly not a Jenkins issue.
In your case you should compile the source files with UTF-8.
When using Maven, add the following for the maven-compiler-plugin in your
pom.xml:
<configuration>
<encoding>UTF-8</encoding>
</configuration>
> Compilation failure - duplicate case label
> ------------------------------------------
>
> Key: JENKINS-7692
> URL: https://issues.jenkins-ci.org/browse/JENKINS-7692
> Project: Jenkins
> Issue Type: Bug
> Components: maven2
> Environment: Hudson-1.359,
> file.encoding UTF-8
> java.version 1.6.0_18
> os.name Linux
> Reporter: vishaljain000
> Attachments: test.java
>
>
> Hi,
> We are using Hudson ver. 1.359 for build automation. One of our job giving
> Compilation error as shown in below logs.. Attaching herewith the part file
> where we face the issue of duplicate case label with "case" statements.
> FYI.. we are using "clean install" as goal & options in hudson configuration.
> --------------------
> {code}
> HUDSON] Archiving
> /appdata1/javaci/hudson/jobs/IPMR/workspace/IpmrCore/pom.xml to
> /appdata1/javaci/hudson/jobs/IPMR/modules/se.volvo.it.tdm.ipmr$IpmrCore/builds/2010-09-24_15-57-00/archive/se.volvo.it.tdm.ipmr/IpmrCore/1.0-SNAPSHOT/pom.xml
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> /file/location/....//ipmr/util/IpmrUtil.java:[679,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[682,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[685,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[688,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[691,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[694,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[697,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[700,4] duplicate case label
> /file/location/....//ipmr/util/IpmrUtil.java:[703,4] duplicate case label
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at
> org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at hudson.maven.agent.Main.launch(Main.java:165)
> at hudson.maven.MavenBuilder.call(MavenBuilder.java:165)
> at
> hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:696)
> at
> hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:640)
> at hudson.remoting.UserRequest.perform(UserRequest.java:114)
> at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> at hudson.remoting.Request$2.run(Request.java:270)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
> failure
> at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
> at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
> hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 28 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 25 seconds
> [INFO] Finished at: Fri Sep 24 15:57:28 CEST 2010
> [INFO] Final Memory: 46M/237M
> {code}
> Do hudson support different language characters & what may cause this issue.
> Thanks.!!
> Regards,
--
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