You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by dw...@apache.org on 2010/10/01 23:35:51 UTC
svn commit: r1003657 - /openjpa/trunk/openjpa-persistence-jdbc/pom.xml
Author: dwoods
Date: Fri Oct 1 21:35:50 2010
New Revision: 1003657
URL: http://svn.apache.org/viewvc?rev=1003657&view=rev
Log:
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...
Modified:
openjpa/trunk/openjpa-persistence-jdbc/pom.xml
Modified: openjpa/trunk/openjpa-persistence-jdbc/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/pom.xml?rev=1003657&r1=1003656&r2=1003657&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/pom.xml (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/pom.xml Fri Oct 1 21:35:50 2010
@@ -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>