当Maven项目很大,或者你运行诸如 mvn site 这样的命令的时候,maven运行需要很大的内存,在默认配置下,就可能遇到java的堆溢出
exception:OutOfMemoryError
set
MAVEN_OPTS=-Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=384m
ANT_OPTS=-Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m
Windows #
- Go into your Control Panel > System > Advanced System Settings > Environment Variables settings
- Click "New" in your User Variables
- Variable name: "ANT_OPTS"
- Variable value: "-Xmx1024m -XX:MaxPermSize=512m"
Setting ANT_OPTS in ant.bat #
- Edit the ant.bat file in your ant home folder.
- Add the following line at the top of the file:
set ANT_OPTS=-Xmx1024m -XX:MaxPermSize=512m
Ubuntu #
Edit ~/.bashrc or ~/.bash_profile to include:
ANT_OPTS="-Xmx1024m -XX:MaxPermSize=512m" export ANT_OPTS
Make sure to exit the command prompt to realize the changes.
Mac OS X #
~/.profile
Append:
export ANT_OPTS="-Xmx1024m -XX:MaxPermSize=512m"
相关推荐
还在为找不到jar文件烦心吗,不用了到我空间来有你想要的,持续更新。。。 maven-ant-tasks.jar
开发项目必备的环境变量配置,其中包含java/maven/tomcat环境变量配置
Downloading from central: https://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml 很奇怪,我的maven仓库配置了私有库,,并且在maven setting.xml中配置了mirror...
maven包:maven-ant-tasks-2.1.3.jar 手动下载配置,解决国外源下载速度慢的问题
软件开发所需的环境jdk-8/Git/node/WinSCP/maven/VisualStudioSetup/dbeaver
The Mavent Ant Tasks allow several of Maven's artifact handling features to be used from within an Ant build. These include: Dependency management - including transitive dependencies, scope ...
我们在IDEA的安装目录下找到 /plugins/maven/lib/maven2/conf 或者 /plugins/maven/lib/maven3/conf目录(如果两个都有建议都改掉),向其中的setting.xnl文件中的/标签下添加如下的仓库地址(这里以阿里云为例): ...
Maven2.Ant.Junit合集,pdf和chm格式
maven下通用的ant配置文件,只要0积分。只需修改11行末尾的target/自己的工程名即可。
maven配置文件:配置阿里云远程仓库、本地仓库
1.生成文件:touch ~/base_profile 2.修改文件加入以下内容: export M2_HOME =你的maven路径 export PATH=$PATH:$M2_HOME/bin ... 则使用命令 chmod a+x /usr/local/maven/apache-maven-3.5.4/bin/mvn
NULL 博文链接:https://eileenlml.iteye.com/blog/1544138
apache tomcat,maven,ant下载
官网链接地址:http://repo1.maven.org/maven2/archetype-catalog.xml 百度云链接:https://pan.baidu.com/s/1dF8Qa9V 密码:37me
ant学习指导文档 maven配置 maven常见问题问答 对于初学或想深入了解maven的童鞋以指导
maven-ant-tasks:Apache Maven ant任务的镜像
thrift0.9.0及编译工具ant ,maven
The Mavent Ant Tasks allow several of Maven's artifact handling features to be used from within an Ant build. These include: Dependency management - including transitive dependencies, scope ...
maven3.3.3/ForWindows/ForLinux/src
maven资源 apache-maven-3.3.9-bin.zip