incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Weir <robw...@apache.org>
Subject Re: JDK 7 Results (was RE: [VOTE] Release Apache ODF Toolkit 0.5-incubating(RC7))
Date Tue, 03 Jan 2012 21:17:21 GMT
On Mon, Jan 2, 2012 at 1:35 AM, Dennis E. Hamilton
<dennis.hamilton@acm.org> wrote:
> Just for fun, I also attempted to build (rc7) with JDK 7u2, since JDK 6u30
> seemed to work so well.
>
> No joy.  The Maven clean install failed with compiler errors in the very first
> compiles.
>
>  - Dennis
>
> SOME DETAILS
>
> I don't think this is an ODF Toolkit problem.  It appears to be somewhere
> between Maven and JDK 7.  The basic situation is that com.sun.javadoc and
> other packages in the %JAVA_HOME%\lib\tools.jar are not found.  I tried
> several variations (but I did not restrict Maven to not use any parallel
> builds).
>

Does Java 7 give you a tools.jar at all?  If so, what happens if you
just add it to the classpath?

-Rob

> Here is how it showed up:
>
> * MyMVN.bat 0.00 ESTABLISH MAVEN CONSOLE-SESSION ENVIRONMENT
> ** MyMaven64.bat 0.02 64-BIT APACHE MAVEN PROJECT-OBJECT ENVIRONMENT
> *** MyJDK64.bat 0.03 orcmid's ASTRAENDO 64-BIT JDK ENVIRONMENT
>         JDK C:\Program Files\Java\jdk1.7.0_02
>         %myJavaClasses% path C:\Users\orcmid\Documents\MyProjects\java
>         No %MAVEN_OPTS% for C:\Program Files\Apache\Maven\3.0.3
>
> C:\Users\orcmid\Downloads\odftoolkit-0.5-incubating>mvn --version
> Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
> Maven home: C:\Program Files\Apache\Maven\3.0.3
> Java version: 1.7.0_02, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_02\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> C:\Users\orcmid\Downloads\odftoolkit-0.5-incubating>
>             mvn clean install >2012-01-01-2021-install.log
> C:\Users\orcmid\Downloads\odftoolkit-0.5-incubating>exit
>
> ABBREVIATED 2012-01-01-2021-install.log:
>
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO]
> [INFO] Apache ODF Toolkit
> [INFO] ODF Custom Javadoc Taglets
> [INFO] XML Schema to Template Mapping Tool: Parent POM
> [INFO] XML Schema to Template Mapping Tool: Library
> [INFO] XML Schema to Template Mapping Tool: Maven2 Plugin
> [INFO] ODFDOM
> [INFO] ODF XSLT-Runner
> [INFO] ODF XSLT-Runner Ant Task
> [INFO] ODF Validator
> [INFO] Simple Java API for ODF (Simple ODF)
> [INFO]
> [INFO] ----------------------------------------------------------------------
> [INFO] Building Apache ODF Toolkit 0.5-incubating
> [INFO] ----------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ odftoolkit ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ odftoolkit
> ---
> [INFO]
> [INFO] --- maven-site-plugin:3.0:attach-descriptor (attach-descriptor) @
> odftoolkit ---
> [INFO]
> [INFO] --- maven-install-plugin:2.3.1:install (default-install) @ odftoolkit
> ---
> [INFO] Installing C:\Users\orcmid\Downloads\odftoolkit-0.5-incubating\pom.xml
> to
> C:\Users\orcmid\.m2\repository\org\apache\odftoolkit\odftoolkit\0.5-incubating\odftoolkit-0.5-incubating.pom
> [INFO]
> [INFO] ----------------------------------------------------------------------
> [INFO] Building ODF Custom Javadoc Taglets 0.8.8-incubating
> [INFO] ----------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ taglets ---
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ taglets ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ taglets
> ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> C:\Users\orcmid\Downloads\odftoolkit-0.5-incubating\taglets\src\main\resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ taglets ---
> [INFO] Compiling 3 source files to
> C:\Users\orcmid\Downloads\odftoolkit-0.5-incubating\taglets\target\classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR]
> \Users\orcmid\Downloads\odftoolkit-0.5-incubating\taglets\src\main\java\org\odftoolkit\odfdom\taglet\OdfElementTaglet.java:[27,22]
> error: package com.sun.javadoc does not exist
> [ERROR]
> \Users\orcmid\Downloads\odftoolkit-0.5-incubating\taglets\src\main\java\org\odftoolkit\odfdom\taglet\OdfElementTaglet.java:[28,28]
> error: package com.sun.tools.doclets does not exist
> [ERROR]
> \Users\orcmid\Downloads\odftoolkit-0.5-incubating\taglets\src\main\java\org\odftoolkit\odfdom\taglet\OdfElementTaglet.java:[43,42]
> error: cannot find symbol
>  [ ... MORE LIKE THOSE ... ]
> [INFO] 21 errors
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache ODF Toolkit ................................ SUCCESS [0.982s]
> [INFO] ODF Custom Javadoc Taglets ........................ FAILURE [0.718s]
> [INFO] XML Schema to Template Mapping Tool: Parent POM ... SKIPPED
> [INFO] XML Schema to Template Mapping Tool: Library ...... SKIPPED
> [INFO] XML Schema to Template Mapping Tool: Maven2 Plugin  SKIPPED
> [INFO] ODFDOM ............................................ SKIPPED
> [INFO] ODF XSLT-Runner ................................... SKIPPED
> [INFO] ODF XSLT-Runner Ant Task .......................... SKIPPED
> [INFO] ODF Validator ..................................... SKIPPED
> [INFO] Simple Java API for ODF (Simple ODF) .............. SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.137s
> [INFO] Finished at: Sun Jan 01 20:21:00 PST 2012
> [INFO] Final Memory: 22M/348M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile)
> on project taglets: Compilation failure: Compilation failure:
> [ ... ]
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [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 :taglets
>
> -----Original Message-----
> From: Dennis E. Hamilton [mailto:dennis.hamilton@acm.org]
> Sent: Sunday, January 01, 2012 14:28
> To: general@incubator.apache.org; 'odf-dev ODF Toolkit Incubator'
> Subject: RE: [VOTE] Release Apache ODF Toolkit 0.5-incubating(RC7)
>
> =0 (abstain, non-binding [;<) from me.
>
> With a different build configuration, I have matching results to the
> successful builds reported by others.  I don't know enough to interpret the
> outcome or the console-message details that occurred during the build.  I
> presume that it is desirable to eliminate [ERROR] and [WARNING] messages at
> some future opportunity; there does not appear to be any impact on the
> results.
>
>  - Dennis
>
> ANALYSIS AND SUMMARY
>
> Console Session (line breaks added for readability):
> ---------------
>
>    * MyMaven64.bat 0.02 64-BIT APACHE MAVEN PROJECT-OBJECT ENVIRONMENT
>    ** MyJDK64.bat 0.02 orcmid's ASTRAENDO 64-BIT JDK ENVIRONMENT
>             JDK C:\Program Files\Java\jdk1.6.0_30
>             %myJavaClasses% path C:\Users\orcmid\Documents\MyProjects\java
>             No %MAVEN_OPTS% for C:\Program Files\Apache\Maven\3.0.3
>
> [ ... ]

Mime
View raw message