[
https://issues.apache.org/jira/browse/MESOS-3482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14906229#comment-14906229
]
haosdent commented on MESOS-3482:
---------------------------------
I update to lastest jdk. Don't have this error anymore. Seems the root error is
build javadoc failed
{code}
Downloaded:
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/plexus-container-default-1.0-alpha-9.jar
(191 KB at 77.9 KB/sec)
Downloaded:
https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0.5/plexus-utils-3.0.5.jar
(226 KB at 87.7 KB/sec)
[WARNING] -subpackages option is not supported on Java version < 1.4
[INFO]
Usage: javadoc [options] [packagenames] [sourcefiles] [@files]
-overview <file> Read overview documentation from HTML file
-public Show only public classes and members
-protected Show protected/public classes and members
(default)
-package Show package/protected/public classes and
members
-private Show all classes and members
-help Display command line options and exit
-doclet <class> Generate output via alternate doclet
-docletpath <path> Specify where to find doclet class files
-sourcepath <pathlist> Specify where to find source files
-classpath <pathlist> Specify where to find user class files
-cp <pathlist> Specify where to find user class files
-exclude <pkglist> Specify a list of packages to exclude
-subpackages <subpkglist> Specify subpackages to recursively load
-breakiterator Compute first sentence with BreakIterator
-bootclasspath <pathlist> Override location of class files loaded
by the bootstrap class loader
-source <release> Provide source compatibility with specified
release
-extdirs <dirlist> Override location of installed extensions
-verbose Output messages about what Javadoc is doing
-locale <name> Locale to be used, e.g. en_US or en_US_WIN
-encoding <name> Source file encoding name
-quiet Do not display status messages
-J<flag> Pass <flag> directly to the runtime system
-X Print a synopsis of nonstandard options and
exit
Provided by Standard doclet:
-d <directory> Destination directory for output files
-use Create class and package usage pages
-version Include @version paragraphs
{code}
> Compile fails with -Duser.home option set.
> ------------------------------------------
>
> Key: MESOS-3482
> URL: https://issues.apache.org/jira/browse/MESOS-3482
> Project: Mesos
> Issue Type: Bug
> Components: build
> Affects Versions: 0.24.0
> Environment: OS X 10.11, MacBook Pro Mid-2012, Clang-700.0.72
> Reporter: Dominyk Tiller
> Assignee: haosdent
> Labels: build
>
> Apologies in advance; I'm not sure if this is technically your bug or a bug
> with the upstream javadoc plugin.
> I'm trying to sandbox the Mesos installation so the downloaded
> plugins/jars/etc needed by Maven for installation aren't retained after the
> build, as otherwise they get dumped in "$HOME/.m2". To achieve this I've
> exported:
> {noformat}
> _JAVA_OPTIONS=-Duser.home=/private/tmp/mesos20150921-21602-19h9jrr/mesos-0.24.0/.brew_home
> {noformat}
> This causes the following build failure:
> {noformat}
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 02:48 min
> [INFO] Finished at: 2015-09-21T15:24:14+01:00
> [INFO] Final Memory: 29M/242M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar
> (build-and-attach-javadocs) on project mesos: MavenReportException: Error
> while creating archive:
> [ERROR] Exit code: 1 - Picked up _JAVA_OPTIONS:
> -Duser.home=/private/tmp/mesos20150921-21602-19h9jrr/mesos-0.24.0/.brew_home
> [ERROR] javadoc: error - No packages or classes specified.
> [ERROR]
> [ERROR] Command line was:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/javadoc
> @options
> [ERROR]
> [ERROR] Refer to the generated Javadoc files in
> '/private/tmp/mesos20150921-21602-19h9jrr/mesos-0.24.0/src/java/target/apidocs'
> dir.
> {noformat}
> Can confirm without setting that variable, the build is fine.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)