Hi Jonathan, With [1] (trunk) and [2] (0.12) I removed the unused import as mentioned by Steve. Thanks for notice.
The 0.12 branch is expected to be compatible to Java 6. The trunk (1.0.0-SNAPSHOT) expects Java 7. best Rupert [1] http://svn.apache.org/r1559628 [2] http://svn.apache.org/r1559629 On Sun, Jan 19, 2014 at 10:01 PM, steve reinders <steve...@gmail.com> wrote: > Comment the line > > import java.lang.Character.UnicodeScript; > > in > > org.apache.stanbol.enhancer.jobmanager.event.impl; > > It looks to be a JDK 1.7 reference that isn't used. > > Using NetBeans all tests passed. > > > On Thu, Jan 16, 2014 at 2:48 PM, Jonathan Hunt < > stanbol.apache....@huntdesign.co.nz> wrote: > >> Hi all >> >> I'm trying the instructions in Instant Apache Stanbol ( >> http://www.packtpub.com/apache-stanbol/book) but the build fails. Should >> I be checking out a different branch? >> >> On OSX 10.8.5: >> >> $ mvn -version >> Apache Maven 3.0.4 (r1232337; 2012-01-17 21:44:56+1300) >> Maven home: /usr/share/maven >> Java version: 1.6.0_65, vendor: Apple Inc. >> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home >> Default locale: en_US, platform encoding: MacRoman >> OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac" >> >> $ java -version >> java version "1.6.0_65" >> Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609) >> Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode) >> >> $ svn co >> http://svn.apache.org/repos/asf/stanbol/trunkstanbol_instant_apache_stanbol >> $ cd stanbol_instant_apache_stanbol/ >> $ export MAVEN_OPTS="-Xmx1024M -XX:MaxPermSize=256M" >> $ mvn install -DskipTests=true >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 8:10.909s >> [INFO] Finished at: Thu Jan 16 19:37:05 NZDT 2014 >> [INFO] Final Memory: 150M/298M >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile >> (default-compile) on project org.apache.stanbol.enhancer.eventjobmanager: >> Compilation failure >> [ERROR] >> /Users/jonathan/Documents/HuntDesign/Projects/stanbol_instant_apache_stanbol/enhancer/jobmanager/event/src/main/java/org/apache/stanbol/enhancer/jobmanager/event/impl/EventJobManagerImpl.java:[24,26] >> cannot find symbol >> [ERROR] symbol : class UnicodeScript >> [ERROR] location: class java.lang.Character >> [ERROR] -> [Help 1] >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >> goal org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile >> (default-compile) on project org.apache.stanbol.enhancer.eventjobmanager: >> Compilation failure >> /Users/jonathan/Documents/HuntDesign/Projects/stanbol_instant_apache_stanbol/enhancer/jobmanager/event/src/main/java/org/apache/stanbol/enhancer/jobmanager/event/impl/EventJobManagerImpl.java:[24,26] >> cannot find symbol >> symbol : class UnicodeScript >> location: class java.lang.Character >> >> >> 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:320) >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) >> 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:597) >> 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 >> /Users/jonathan/Documents/HuntDesign/Projects/stanbol_instant_apache_stanbol/enhancer/jobmanager/event/src/main/java/org/apache/stanbol/enhancer/jobmanager/event/impl/EventJobManagerImpl.java:[24,26] >> cannot find symbol >> symbol : class UnicodeScript >> location: class java.lang.Character >> >> >> at >> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656) >> at >> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128) >> 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] Re-run Maven using the -X switch to enable full debug logging. >> [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.stanbol.enhancer.eventjobmanager >> >> Jonathan Hunt >> http://huntdesign.co.nz >> +64 21 529 250 >> PO Box 1062, Christchurch 8140, New Zealand >> >> -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen