Dear all,

Is there a way to get Chemistry to build with Java 1.5? When I do the
following on my Mac with java 1.5 (my Mac is too old to support Java 1.6.)

java -version
> java version "1.5.0_26"
> Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_26-b03-376-9M3263)
> Java HotSpot(TM) Client VM (build 1.5.0_26-156, mixed mode, sharing)
svn export 
https://svn.apache.org/repos/asf/incubator/chemistry/opencmis/trunk
 mvn clean install -Dmaven.test.skip=true

The following is output

...
[INFO] 
------------------------------------------------------------------------
[INFO] Building OpenCMIS Workbench
[INFO]    task-segment: [clean, install]
[INFO] 
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting file set:
/Users/ian/Desktop/Chemistry/trunk/chemistry-opencmis-workbench/chemistry-op
encmis-workbench/target (included: [**], excluded: [])
[INFO] [remote-resources:process {execution: default}]
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks

main:
    [mkdir] Created dir:
/Users/ian/Desktop/Chemistry/trunk/chemistry-opencmis-workbench/chemistry-op
encmis-workbench/target/start
     [copy] Copying 2 files to
/Users/ian/Desktop/Chemistry/trunk/chemistry-opencmis-workbench/chemistry-op
encmis-workbench/target/start
[INFO] Executed tasks
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 42 resources
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 49 source files to
/Users/ian/Desktop/Chemistry/trunk/chemistry-opencmis-workbench/chemistry-op
encmis-workbench/target/classes
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Compilation failure
Failure executing javac, but could not parse the error:
javac: invalid target release: 1.6
Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
  -verbose                   Output messages about what the compiler is
doing
  -deprecation               Output source locations where deprecated APIs
are used
  -classpath <path>          Specify where to find user class files
  -cp <path>                 Specify where to find user class files
  -sourcepath <path>         Specify where to find input source files
  -bootclasspath <path>      Override location of bootstrap class files
  -extdirs <dirs>            Override location of installed extensions
  -endorseddirs <dirs>       Override location of endorsed standards path
  -d <directory>             Specify where to place generated class files
  -encoding <encoding>       Specify character encoding used by source files
  -source <release>          Provide source compatibility with specified
release
  -target <release>          Generate class files for specific VM version
  -version                   Version information
  -help                      Print a synopsis of standard options
  -X                         Print a synopsis of nonstandard options
  -J<flag>                   Pass <flag> directly to the runtime system



[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 1 minute 13 seconds
[INFO] Finished at: Fri Jan 07 10:38:55 GMT 2011
[INFO] Final Memory: 93M/167M
[INFO] 
------------------------------------------------------------------------
2011-01-07 10:38:56.168:INFO::Shutdown hook executing
2011-01-07 10:38:56.168:INFO::Shutdown hook complete


Skipping the building of the workbench would suffice.

Regards,
Ian

Reply via email to