• maven中可以直接引用的java系统属性和环境变量属性


    一、查看命令:

    mvn help :system
    

    二、引用

    在pom文件中通过 ${变量名}来引用

    ===============================================================================
    ========================= Platform Properties Details =========================
    ===============================================================================
    
    ===============================================================================
    System Properties
    ===============================================================================
    
    java.runtime.name=Java(TM) SE Runtime Environment
    sun.boot.library.path=C:Program FilesJavajdk1.8.0_91jrein
    java.vm.version=25.91-b15
    java.vm.vendor=Oracle Corporation
    maven.multiModuleProjectDirectory=D:	oolsIntelliJIDEA15.0.2IdeaProject2starwifi
    java.vendor.url=http://java.oracle.com/
    path.separator=;
    guice.disable.misplaced.annotation.check=true
    java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    file.encoding.pkg=sun.io
    user.script=
    user.country=CN
    sun.java.launcher=SUN_STANDARD
    sun.os.patch.level=Service Pack 1
    java.vm.specification.name=Java Virtual Machine Specification
    user.dir=D:	oolsIntelliJIDEA15.0.2IdeaProject2starwifi
    java.runtime.version=1.8.0_91-b15
    java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs=C:Program FilesJavajdk1.8.0_91jrelibendorsed
    os.arch=amd64
    java.io.tmpdir=C:UsersADMINI~1AppDataLocalTemp
    line.separator=
    
    java.vm.specification.vendor=Oracle Corporation
    user.variant=
    os.name=Windows 7
    classworlds.conf=D:	oolsapache-maven-3.3.9in..inm2.conf
    sun.jnu.encoding=GBK
    java.library.path=C:Program FilesJavajdk1.8.0_91in;C:WindowsSunJavain;C:Windowssystem32;C:Windows;C:ProgramDataOracleJavajavapath;C:
    Windowssystem32;C:Windows;C:Program FilesJavajdk1.8.0_91in;D:	oolsapache-maven-3.3.9in;C:WindowsSystem32Wbem;C:WindowsSystem32Window
    sPowerShellv1.0;D:	oolsgradle-3.2.1in;C:Program FilesTortoiseGitin;C:Program FilesMySQLMySQL Server 5.1in;.
    java.specification.name=Java Platform API Specification
    java.class.version=52.0
    sun.management.compiler=HotSpot 64-Bit Tiered Compilers
    os.version=6.1
    user.home=C:UsersAdministrator
    user.timezone=Asia/Shanghai
    java.awt.printerjob=sun.awt.windows.WPrinterJob
    java.specification.version=1.8
    file.encoding=GBK
    user.name=Administrator
    java.class.path=D:	oolsapache-maven-3.3.9in..ootplexus-classworlds-2.5.2.jar
    java.vm.specification.version=1.8
    sun.arch.data.model=64
    java.home=C:Program FilesJavajdk1.8.0_91jre
    sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher help:system
    java.specification.vendor=Oracle Corporation
    user.language=zh
    awt.toolkit=sun.awt.windows.WToolkit
    java.vm.info=mixed mode
    java.version=1.8.0_91
    java.ext.dirs=C:Program FilesJavajdk1.8.0_91jrelibext;C:WindowsSunJavalibext
    sun.boot.class.path=C:Program FilesJavajdk1.8.0_91jrelib
    esources.jar;C:Program FilesJavajdk1.8.0_91jrelib
    t.jar;C:Program FilesJavajdk
    1.8.0_91jrelibsunrsasign.jar;C:Program FilesJavajdk1.8.0_91jrelibjsse.jar;C:Program FilesJavajdk1.8.0_91jrelibjce.jar;C:Program Files
    Javajdk1.8.0_91jrelibcharsets.jar;C:Program FilesJavajdk1.8.0_91jrelibjfr.jar;C:Program FilesJavajdk1.8.0_91jreclasses
    sun.stderr.encoding=ms936
    java.vendor=Oracle Corporation
    maven.home=D:	oolsapache-maven-3.3.9in..
    file.separator=
    java.vendor.url.bug=http://bugreport.sun.com/bugreport/
    sun.cpu.endian=little
    sun.io.unicode.encoding=UnicodeLittle
    sun.stdout.encoding=ms936
    sun.desktop=windows
    sun.cpu.isalist=amd64
    
    ===============================================================================
    Environment Variables
    ===============================================================================
    
    GRADLE_USER_HOME=E:gradle_repository.gradle
    CLASSWORLDS_JAR="D:	oolsapache-maven-3.3.9in..ootplexus-classworlds-2.5.2.jar"
    PSMODULEPATH=C:Windowssystem32WindowsPowerShellv1.0Modules
    COMMONPROGRAMW6432=C:Program FilesCommon Files
    PROGRAMW6432=C:Program Files
    WINDOWS_TRACING_LOGFILE=C:BVTBinTestsinstallpackagecsilogfile.log
    PROCESSOR_ARCHITECTURE=AMD64
    CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
    =D:=D:	oolsIntelliJIDEA15.0.2IdeaProject2starwifi
    FP_NO_HOST_CHECK=NO
    PATH=C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:Program FilesJavajdk1.8.0_91in;D:	oolsapache-maven-3.3.9in;C:Wind
    owsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;D:	oolsgradle-3.2.1in;C:Program FilesTortoiseGitin;C:Program FilesMySQLMySQL
    Server 5.1in
    PROGRAMDATA=C:ProgramData
    WDIR=D:
    SYSTEMROOT=C:Windows
    TMP=C:UsersADMINI~1AppDataLocalTemp
    PROGRAMFILES(X86)=C:Program Files (x86)
    EXEC_DIR=D:	oolsIntelliJIDEA15.0.2IdeaProject2starwifi
    COMPUTERNAME=PC-20180423HOPQ
    OS=Windows_NT
    PROMPT=$P$G
    MAVEN_HOME=D:	oolsapache-maven-3.3.9
    WINDIR=C:Windows
    GRADLE_HOME=D:	oolsgradle-3.2.1
    SYSTEMDRIVE=C:
    =::=::
    COMSPEC=C:Windowssystem32cmd.exe
    =C:=C:UsersAdministrator
    HOMEDRIVE=C:
    LOGONSERVER=\PC-20180423HOPQ
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
    COMMONPROGRAMFILES=C:Program FilesCommon Files
    PROGRAMFILES=C:Program Files
    COMMONPROGRAMFILES(X86)=C:Program Files (x86)Common Files
    NUMBER_OF_PROCESSORS=4
    TEMP=C:UsersADMINI~1AppDataLocalTemp
    USERDOMAIN=PC-20180423HOPQ
    M2_HOME=D:	oolsapache-maven-3.3.9in..
    HOME=C:UsersAdministrator
    PROCESSOR_LEVEL=6
    ERROR_CODE=0
    SESSIONNAME=Console
    USERNAME=Administrator
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    WINDOWS_TRACING_FLAGS=3
    PUBLIC=C:UsersPublic
    PROCESSOR_REVISION=4501
    USERPROFILE=C:UsersAdministrator
    APPDATA=C:UsersAdministratorAppDataRoaming
    HOMEPATH=UsersAdministrator
    LOCALAPPDATA=C:UsersAdministratorAppDataLocal
    JAVA_HOME=C:Program FilesJavajdk1.8.0_91
    ALLUSERSPROFILE=C:ProgramData
    MAVEN_CMD_LINE_ARGS=help:system
    MAVEN_PROJECTBASEDIR=D:	oolsIntelliJIDEA15.0.2IdeaProject2starwifi
    MAVEN_JAVA_EXE="C:Program FilesJavajdk1.8.0_91injava.exe"
    

      

  • 相关阅读:
    for,while循环嵌套二次练习
    break语句;continue语句
    实际运用for、while循环嵌套
    for,while循环嵌套
    while循环
    if语法分支
    js读取cookie,并利用encrypt和decrypt加密和解密方法
    instance of的java用法
    objectmapper使用
    日志组件slf4j介绍及配置详解
  • 原文地址:https://www.cnblogs.com/geekdc/p/9244268.html
Copyright © 2020-2023  润新知