• 设置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)
  • 相关阅读:
    umask
    mysql 错误总结 和FROM_UNIXTIME用法
    php 读取和下载execl
    Yii 2 load() 和 save()
    iframe 模拟ajax文件上传and formdata ajax 文件上传
    angular.js简单入门。
    mysql 慢日志
    mysql 基本操作 alter
    shell cut 用法
    微信支付与支付宝支付
  • 原文地址:https://www.cnblogs.com/tuifeideyouran/p/4548403.html
Copyright © 2020-2023  润新知