zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abraham Fine (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (ZOOKEEPER-2995) ant docs fails when Java 1.9 is present on my system
Date Thu, 08 Mar 2018 05:32:00 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-2995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Abraham Fine reassigned ZOOKEEPER-2995:
---------------------------------------

    Assignee:     (was: Abraham Fine)

> ant docs fails when Java 1.9 is present on my system
> ----------------------------------------------------
>
>                 Key: ZOOKEEPER-2995
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2995
>             Project: ZooKeeper
>          Issue Type: Bug
>    Affects Versions: 3.5.3, 3.4.11, 3.6.0
>            Reporter: Abraham Fine
>            Priority: Major
>
> When attempting to compile the documentation (with JAVA_HOME set to 1.7) I see output
like this:
> {code}
> $ ant docs -Dforrest.home=$(brew info apache-forrest | grep /Cellar | awk '{print $1;}')
-d
> Apache Ant(TM) version 1.9.7 compiled on April 9 2016
> Trying the default build file: build.xml
> Buildfile: REDACTED/zookeeper/build.xml
> Adding reference: ant.PropertyHelper
> Detected Java version: 1.7 in: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre
> OTHER STUFF
> docs:
> Class org.apache.tools.ant.taskdefs.condition.Os loaded from parent loader (parentFirst)
> Condition false; setting forrest.exec to forrest
> Setting project property: forrest.exec -> forrest
>      [exec] Current OS is Mac OS X
>      [exec] Executing '/usr/local/Cellar/apache-forrest/0.9/bin/forrest'
>      [exec] The ' characters around the executable and arguments are
>      [exec] not part of the command.
> Execute:Java13CommandLauncher: Executing '/usr/local/Cellar/apache-forrest/0.9/bin/forrest'
> The ' characters around the executable and arguments are
> not part of the command.
>      [exec] Apache Forrest.  Run 'forrest -projecthelp' to list options
>      [exec]
>      [exec] Buildfile: /usr/local/Cellar/apache-forrest/0.9/libexec/main/forrest.build.xml
>      [exec]
>      [exec] check-java-version:
>      [exec] This is apache-forrest-0.9
>      [exec] Using Java 1.6 from /Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
> MORE STUFF
>      [exec]
>      [exec] BUILD FAILED
>      [exec] /usr/local/Cellar/apache-forrest/0.9/libexec/main/targets/site.xml:180: Warning:
Could not find file REDACTED/zookeeper/src/docs/build/tmp/brokenlinks.xml to copy.
>      [exec]
>      [exec] Total time: 3 seconds
>      [exec] -Djava.endorsed.dirs=/usr/local/Cellar/apache-forrest/0.9/libexec/lib/endorsed:${java.endorsed.dirs}
is not supported. Endorsed standards and standalone APIs
>      [exec] Error: Could not create the Java Virtual Machine.
>      [exec] in modular form will be supported via the concept of upgradeable modules.
>      [exec] Error: A fatal exception has occurred. Program will exit.
>      [exec]
>      [exec]   Copying broken links file to site root.
>      [exec]
> BUILD FAILED
> REDACTED/zookeeper/build.xml:501: exec returned: 1
> 	at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:644)
> 	at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
> 	at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
> 	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
> 	at org.apache.tools.ant.Task.perform(Task.java:348)
> 	at org.apache.tools.ant.Target.execute(Target.java:435)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
> 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
> 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:854)
> 	at org.apache.tools.ant.Main.startAnt(Main.java:236)
> 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
> 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
> {code}
> The build succeeds when I uninstall java 9.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message