You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "haosdent (JIRA)" <ji...@apache.org> on 2015/09/21 18:59:04 UTC
[jira] [Commented] (MESOS-3482) Compile fails with -Duser.home
option set.
[ https://issues.apache.org/jira/browse/MESOS-3482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14900981#comment-14900981 ]
haosdent commented on MESOS-3482:
---------------------------------
According this link, http://stackoverflow.com/questions/11683715/suppressing-the-picked-up-java-options-message and http://cr.openjdk.java.net/~gbenson/zero-11-hotspot/hotspot/src/share/vm/runtime/arguments.cpp.html
Seems when current user is not root and set up _JAVA_OPTIONS, would print this error.
{code}
2489 if (os::getenv(name, buffer, sizeof(buffer)) &&
2490 !os::have_special_privileges()) {
2491 JavaVMOption options[N_MAX_OPTIONS]; // Construct option array
2492 jio_fprintf(defaultStream::error_stream(),
2493 "Picked up %s: %s\n", name, buffer);
{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
> 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)