try using o-m-p instead of antrun to reduce memory overhead. this is a temp change, as enhancing takes 5x longer with o-m-p...

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1003657 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-10-01 21:35:50 +00:00
parent c92c435728
commit d58eaa98ee
1 changed files with 30 additions and 1 deletions

View File

@ -55,7 +55,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${surefire.jvm.args}</argLine>
<includes>
<include>org/apache/openjpa/persistence/enhance/DynamicEnhancementSuite.java</include>
</includes>
@ -771,6 +770,7 @@
<build>
<plugins>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
@ -795,6 +795,35 @@
</execution>
</executions>
</plugin>
-->
<!-- Try using o-m-p to reduce antrun memory leaks -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<configuration>
<excludes>org/apache/openjpa/persistence/inheritance/serializable/**,org/apache/openjpa/persistence/detach/serializable/**,org/apache/openjpa/persistence/xml/**,org/apache/openjpa/persistence/unenhanced/**,org/apache/openjpa/persistence/property/AccessModsEntity.class,org/apache/openjpa/enhance/Unenhanced**,org/apache/openjpa/persistence/jdbc/annotations/Unenhanced**,org/apache/openjpa/enhance/AbstractUnenhanced**,org/apache/openjpa/kernel/AbstractUnenhanced**</excludes>
<addDefaultConstructor>true</addDefaultConstructor>
<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
</configuration>
<executions>
<execution>
<id>enhancer</id>
<phase>process-test-classes</phase>
<goals>
<goal>test-enhance</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-persistence-jdbc</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>