zoukankan      html  css  js  c++  java
  • 设置MAVEN_OPTS的推荐方法

    运行mvn eclipse:eclipse时,经常会出现因为maven项目过大,导致内存不足java栈溢出的error,需要更改MAVEN启动内存

    http://stackoverflow.com/questions/2819853/setting-java-heap-space-under-maven-2-on-windows

    To set MAVEN_OPTS under Windows 7:

    1. Right click on My Computer and select Properties (keyboard shortcut press Windows + Pause/Break)
    2. Click the Advanced System Settings link located in the left navigation of System Properties to display the Advanced System Properties
    3. Go to the Advanced tab and click the Environment Variables button located at the bottom of the Advanced System Properties configuration window
    4. Create a New user variable, set the Variable name to MAVEN_OPTS and set the Variable value to -Xmx1024m (or more)

    Open a new command window and run mvn.

    右键我的电脑,选择属性2 选择 高级系统设置3 在 高级 tab页下,点击环境变量按钮4 创建一个用户变量,变量名是MAVEN_OPTS 值为 -Xms512m -Xmx1024m (or more)
  • 相关阅读:
    Java LinkList遍历方式
    Java LinkedList的实现原理
    ArrayList 原理(2)
    ArrayList 原理(1)
    Java中HashMap的实现原理
    Java HashMap两种遍历方式
    【转】Unity3d:读取FBX中的动画
    C#与U3D中字符串尾0
    U3D中的又一个坑
    MaxScript 学习笔记【有转载】
  • 原文地址:https://www.cnblogs.com/tuifeideyouran/p/4548403.html
Copyright © 2011-2022 走看看