[
https://issues.apache.org/jira/browse/MESOS-3482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14906442#comment-14906442
]
haosdent commented on MESOS-3482:
---------------------------------
After add
{code}
+ # skip build javadoc because Homebrew sandbox set _JAVA_OPTIONS would
+ # trigger maven-javadoc-plugin bug.
+ # https://issues.apache.org/jira/browse/MESOS-3482
+ maven_javadoc_patch = <<-EOS.undent
+ <properties>
+ <maven.javadoc.skip>true</maven.javadoc.skip>
+ </properties>
+ \\0
+ EOS
+ inreplace "src/java/mesos.pom.in",
+ "<url>http://mesos.apache.org</url>",
+ maven_javadoc_patch
+
{code}
==> Summary
🍺 /usr/local/Cellar/mesos/0.24.0: 1184 files, 78M, built in 10.9 minutes
> 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)