+1
 
> On Apr 25, 2016, at 7:59 AM, Michael Osipov <micha...@apache.org> wrote:
> 
> Am 2016-04-15 um 22:34 schrieb Michael Osipov:
>> Hi folks,
>> 
>> we all know that people once in a while complain that my JAVA_HOME is
>> not properly discovered on $PLATFORM, etc. Surprisingly, we require
>> JAVA_HOME to be set in the installation documentation, yet we discover
>> it anyway. This is a contradiction. Moreover, our discovery mechanism
>> can never be complete and won't. It bloats.
>> 
>> In MNG-6003 [1], I propose to throw away all of this code and solely
>> rely on the dev's input. If he/she it not able to set it properly,
>> he/she shouldn't write code at all. Most of the time, on Unix/Linux,
>> this isn't even necessary because a JDK is installed by default.
>> 
>> I have created a feature branch [1] for this. If no one objects, I will
>> merge this into master.
>> 
>> The change have been tested with, without JAVA_HOME and invalid
>> JAVA_HOME on
>> 
>> * Windows 10
>> * Cygwin (Git Bash)
>> * Ubuntu 14.04 LTS (from /home as well as /opt and with symlinks from
>> /usr/local/bin)
>> * FreeBSD 10.2-RELEASE (from /home as well as from /usr/local and with
>> symlinks from /usr/local/bin)
> 
> Verified to work on OS X 10.7.x with latest Oracle JDK 1.8.0_92.
> 
> Compiled from branch snapshot with Maven 3.3.9 and then ran Maven 
> 3.4-SNAPSHOT to compile itself:
> MacPro:maven-MNG-6003-196234a do$ 
> /Users/do/apache-maven-3.4.0-SNAPSHOT/bin/mvn -v
> Apache Maven 3.4.0-SNAPSHOT (NON-CANONICAL_2016-04-23T13:05:55+02:00_do; 
> 2016-04-23T13:05:55+02:00)
> Maven home: /Users/do/apache-maven-3.4.0-SNAPSHOT
> Java version: 1.8.0_92, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "Mac OS X", version: "10.7.5", arch: "x86_64", family: "Unix"
> 
> and help:system says:
> ===============================================================================
> ========================= Platform Properties Details 
> =========================
> ===============================================================================
> 
> ===============================================================================
> System Properties
> ===============================================================================
> 
> java.runtime.name=Java(TM) SE Runtime Environment
> sun.boot.library.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib
> java.vm.version=25.92-b14
> gopherProxySet=false
> maven.multiModuleProjectDirectory=/Users/do/Downloads/maven-MNG-6003-196234a
> java.vm.vendor=Oracle Corporation
> java.vendor.url=http://java.oracle.com/
> guice.disable.misplaced.annotation.check=true
> path.separator=:
> java.vm.name=Java HotSpot(TM) 64-Bit Server VM
> file.encoding.pkg=sun.io
> user.country=DE
> sun.java.launcher=SUN_STANDARD
> sun.os.patch.level=unknown
> java.vm.specification.name=Java Virtual Machine Specification
> user.dir=/Users/do/Downloads/maven-MNG-6003-196234a
> java.runtime.version=1.8.0_92-b14
> java.awt.graphicsenv=sun.awt.CGraphicsEnvironment
> java.endorsed.dirs=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/endorsed
> os.arch=x86_64
> java.io.tmpdir=/var/folders/w8/2p4kmj7n4xn51zf79swq4t6c0000gn/T/
> line.separator=
> 
> java.vm.specification.vendor=Oracle Corporation
> os.name=Mac OS X
> classworlds.conf=/Users/do/apache-maven-3.4.0-SNAPSHOT/bin/m2.conf
> sun.jnu.encoding=UTF-8
> java.library.path=/Users/do/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
> java.specification.name=Java Platform API Specification
> java.class.version=52.0
> sun.management.compiler=HotSpot 64-Bit Tiered Compilers
> os.version=10.7.5
> http.nonProxyHosts=local|*.local|169.254/16|*.169.254/16
> user.home=/Users/do
> user.timezone=Europe/Berlin
> java.awt.printerjob=sun.lwawt.macosx.CPrinterJob
> file.encoding=UTF-8
> java.specification.version=1.8
> java.class.path=/Users/do/apache-maven-3.4.0-SNAPSHOT/boot/plexus-classworlds-2.5.2.jar
> user.name=do
> java.vm.specification.version=1.8
> sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher help:system
> java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre
> sun.arch.data.model=64
> user.language=de
> java.specification.vendor=Oracle Corporation
> awt.toolkit=sun.lwawt.macosx.LWCToolkit
> java.vm.info=mixed mode
> java.version=1.8.0_92
> java.ext.dirs=/Users/do/Library/Java/Extensions:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/ext:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
> sun.boot.class.path=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/sunrsasign.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre/classes
> java.vendor=Oracle Corporation
> maven.home=/Users/do/apache-maven-3.4.0-SNAPSHOT
> file.separator=/
> java.vendor.url.bug=http://bugreport.sun.com/bugreport/
> sun.io.unicode.encoding=UnicodeBig
> sun.cpu.endian=little
> socksNonProxyHosts=local|*.local|169.254/16|*.169.254/16
> ftp.nonProxyHosts=local|*.local|169.254/16|*.169.254/16
> sun.cpu.isalist=
> 
> ===============================================================================
> Environment Variables
> ===============================================================================
> 
> HOME=/Users/do
> TERM_SESSION_ID=16C9393A-773A-447F-A184-1195C1664140
> COMMAND_MODE=unix2003
> JAVA_ARCH=x86_64
> Apple_PubSub_Socket_Render=/tmp/launch-7ti3gg/Render
> LOGNAME=do
> USER=do
> TMPDIR=/var/folders/w8/2p4kmj7n4xn51zf79swq4t6c0000gn/T/
> LANG=de_DE.UTF-8
> Apple_Ubiquity_Message=/tmp/launch-CSfJjn/Apple_Ubiquity_Message
> SHELL=/bin/bash
> JAVA_MAIN_CLASS_870=org.codehaus.plexus.classworlds.launcher.Launcher
> TERM_PROGRAM_VERSION=303.2
> PWD=/Users/do/Downloads/maven-MNG-6003-196234a
> MAVEN_CMD_LINE_ARGS= help:system
> TERM_PROGRAM=Apple_Terminal
> SHLVL=1
> __CF_USER_TEXT_ENCODING=0x1F5:0:3
> com.apple.java.jvmTask=CommandLine
> DISPLAY=/tmp/launch-iwRtZz/org.x:0
> MAVEN_PROJECTBASEDIR=/Users/do/Downloads/maven-MNG-6003-196234a
> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
> TERM=xterm-256color
> SSH_AUTH_SOCK=/tmp/launch-3iplRx/Listeners
> OLDPWD=/Users/do/Downloads/maven-MNG-6003-196234a
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder, Takari and Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
---------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to