简体   繁体   English

Maven清理安装问题

[英]Maven clean install issue

When I run maven clean install from the command line it runs fine without any issues. 当我从命令行运行maven clean install时,它运行正常,没有任何问题。 However, when I run maven clean install through eclipse it gives and error. 但是,当我通过eclipse运行maven clean install时,它给出了错误。 I configured an external maven source and do not use the embedded maven resource which is used by eclipse. 我配置了一个外部maven源,并且不使用eclipse使用的嵌入式maven资源。

[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ client ---
[INFO] Compiling 2612 source files to C:\Users\Name\workspace\projectname\client\src\main\webbapp\WEB-INF\classes  
java.lang.OutOfMemoryError: PermGen space
Dumping heap to java_pid5368.hprof ...
Heap dump file created [126539667 bytes in 0.924 secs]
[ERROR] PermGen space -> [Help 1]

It runs fine when I run the maven clean install from the same source directory on the command prompt however, it is not working when I run it when it is configured through eclipse.What must be done? 当我在命令提示符下从同一个源目录运行maven clean install时,它运行正常但是,当我通过eclipse配置它时,它运行时它不起作用。必须做什么?

Use this for maven as well as your eclipse :) 将此用于maven以及你的日食:)

export MAVEN_OPTS="-Xmx2g -XX:MaxPermSize=4096M -XX:ReservedCodeCacheSize=1024m"
export JAVA_OPTS="-Xmx2g -XX:MaxPermSize=4096M -XX:ReservedCodeCacheSize=1024m"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM