[
https://issues.apache.org/jira/browse/SMX4-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594618#comment-13594618
]
Viacheslav Dubrovskyi commented on SMX4-1394:
---------------------------------------------
So seems you need change version in ./BUILDING
Building Apache ServiceMix 4
============================
Initial Setup
-------------
1) Install J2SE 5.0 SDK, which can be downloaded from
http://java.sun.com/j2se/1.5.0/download.jsp. Use version of 1.5.0_06 JDK.
> BUILD FAILURE
> camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixComponent.java
> -----------------------------------------------------------------------------------------------------------
>
> Key: SMX4-1394
> URL: https://issues.apache.org/jira/browse/SMX4-1394
> Project: ServiceMix 4
> Issue Type: Bug
> Affects Versions: 4.5.0
> Environment: java-1.5.0-sun-1.5.0.22-alt4
> java-1.5.0-sun-devel-1.5.0.22-alt4
> Reporter: Viacheslav Dubrovskyi
> Assignee: Freeman Fang
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project org.apache.servicemix.camel.component:
> Compilation failure
> [ERROR]
> /usr/src/RPM/BUILD/apache-servicemix-4.5.0/src/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixComponent.java:[21,-1]
> cannot access org.apache.camel.Endpoint
> [ERROR] bad class file:
> /usr/src/.m2/repository/org/apache/camel/camel-core/2.10.3/camel-core-2.10.3.jar(org/apache/camel/Endpoint.class)
> [ERROR] class file has wrong version 50.0, should be 49.0
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project org.apache.servicemix.camel.component:
> Compilation failure
> /usr/src/RPM/BUILD/apache-servicemix-4.5.0/src/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixComponent.java:[21,-1]
> cannot access org.apache.camel.Endpoint
> bad class file:
> /usr/src/.m2/repository/org/apache/camel/camel-core/2.10.3/camel-core-2.10.3.jar(org/apache/camel/Endpoint.class)
> class file has wrong version 50.0, should be 49.0
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:158)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> 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:592)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
> failure
> /usr/src/RPM/BUILD/apache-servicemix-4.5.0/src/camel/servicemix-camel/src/main/java/org/apache/servicemix/camel/nmr/ServiceMixComponent.java:[21,-1]
> cannot access org.apache.camel.Endpoint
> bad class file:
> /usr/src/.m2/repository/org/apache/camel/camel-core/2.10.3/camel-core-2.10.3.jar(org/apache/camel/Endpoint.class)
> class file has wrong version 50.0, should be 49.0
> 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.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR] mvn <goals> -rf :org.apache.servicemix.camel.component
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira