Add more default memory settings for build. - Helps prevent need for boilerplate MAVEN_OPTS environment variables and such. - Good defaults to prevent build from failing. - Also added perm gen settings for the pre-1.8 profile.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/1bcf0491 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/1bcf0491 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/1bcf0491 Branch: refs/heads/master Commit: 1bcf0491c237e28ce16ecd2384ff8b33ebef9aaa Parents: f129d7d Author: Matt Sicker <[email protected]> Authored: Sat Aug 30 18:25:10 2014 -0500 Committer: Matt Sicker <[email protected]> Committed: Sat Aug 30 18:25:10 2014 -0500 ---------------------------------------------------------------------- pom.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/1bcf0491/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 9e2e892..51d4c2b 100644 --- a/pom.xml +++ b/pom.xml @@ -669,6 +669,13 @@ <showDeprecation>true</showDeprecation> <showWarnings>true</showWarnings> <encoding>UTF-8</encoding> + <fork>true</fork> + <meminitial>256</meminitial> + <maxmem>1024</maxmem> + <compilerArguments> + <Xmaxwarns>10000</Xmaxwarns> + <Xlint/> + </compilerArguments> </configuration> </plugin> <plugin> @@ -1201,6 +1208,14 @@ <argLine>-XX:MaxPermSize=512m</argLine> </configuration> </plugin> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <compilerArgs> + <arg>-XX:MaxPermSize=512m</arg> + </compilerArgs> + </configuration> + </plugin> </plugins> </build> </profile>
