Maven configuration: divert test console output to log files; increase max perm gen to avoid OOMs this will otherwise cause in Maven

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1421332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Steven Rowe 2012-12-13 15:13:43 +00:00
parent 3fad0b1dcd
commit acbe23061b
12 changed files with 117 additions and 12 deletions

View File

@ -551,7 +551,8 @@
<runOrder>random</runOrder> <runOrder>random</runOrder>
<reportFormat>plain</reportFormat> <reportFormat>plain</reportFormat>
<workingDirectory>${project.build.directory}/test</workingDirectory> <workingDirectory>${project.build.directory}/test</workingDirectory>
<argLine>-Xmx512M</argLine> <redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>-Xmx512M -XX:MaxPermSize=256M</argLine>
<systemPropertyVariables> <systemPropertyVariables>
<tempDir>.</tempDir> <tempDir>.</tempDir>
<java.awt.headless>true</java.awt.headless> <java.awt.headless>true</java.awt.headless>

View File

@ -35,6 +35,7 @@
<module-directory>solr/contrib/analysis-extras</module-directory> <module-directory>solr/contrib/analysis-extras</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -98,5 +99,16 @@
</includes> </includes>
</testResource> </testResource>
</testResources> </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>

View File

@ -35,6 +35,7 @@
<module-directory>solr/contrib/clustering</module-directory> <module-directory>solr/contrib/clustering</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -123,5 +124,16 @@
</includes> </includes>
</testResource> </testResource>
</testResources> </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>

View File

@ -35,6 +35,7 @@
<module-directory>solr/contrib/dataimporthandler-extras</module-directory> <module-directory>solr/contrib/dataimporthandler-extras</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -101,5 +102,16 @@
</includes> </includes>
</testResource> </testResource>
</testResources> </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>

View File

@ -35,6 +35,7 @@
<module-directory>solr/contrib/dataimporthandler</module-directory> <module-directory>solr/contrib/dataimporthandler</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -104,6 +105,15 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -38,6 +38,7 @@
<module-directory>solr/contrib/extraction</module-directory> <module-directory>solr/contrib/extraction</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -98,5 +99,16 @@
</includes> </includes>
</testResource> </testResource>
</testResources> </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>

View File

@ -39,6 +39,7 @@
<module-directory>solr/contrib/langid</module-directory> <module-directory>solr/contrib/langid</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -104,5 +105,16 @@
</includes> </includes>
</testResource> </testResource>
</testResources> </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>

View File

@ -35,6 +35,7 @@
<module-directory>solr/contrib/uima</module-directory> <module-directory>solr/contrib/uima</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -123,5 +124,16 @@
</includes> </includes>
</testResource> </testResource>
</testResources> </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>

View File

@ -35,6 +35,7 @@
<module-directory>solr/contrib/velocity</module-directory> <module-directory>solr/contrib/velocity</module-directory>
<top-level>../../../..</top-level> <top-level>../../../..</top-level>
<module-path>${top-level}/${module-directory}</module-path> <module-path>${top-level}/${module-directory}</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<scm> <scm>
<connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection> <connection>scm:svn:${vc-anonymous-base-url}/${module-directory}</connection>
@ -139,5 +140,16 @@
</includes> </includes>
</testResource> </testResource>
</testResources> </testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>

View File

@ -34,6 +34,7 @@
<module-directory>solr/core</module-directory> <module-directory>solr/core</module-directory>
<top-level>../../../../..</top-level> <top-level>../../../../..</top-level>
<module-path>${top-level}/${module-directory}/src/test</module-path> <module-path>${top-level}/${module-directory}/src/test</module-path>
<surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
@ -118,6 +119,15 @@
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>

View File

@ -99,15 +99,6 @@
<doctitle>${project.name} ${project.version} API (${now.version})</doctitle> <doctitle>${project.name} ${project.version} API (${now.version})</doctitle>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>../test-classes/maven.testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>

View File

@ -34,7 +34,7 @@
<module-directory>solr/solrj</module-directory> <module-directory>solr/solrj</module-directory>
<top-level>../../../../..</top-level> <top-level>../../../../..</top-level>
<module-path>${top-level}/${module-directory}/src/test</module-path> <module-path>${top-level}/${module-directory}/src/test</module-path>
<maven.install.skip>true</maven.install.skip> <surefire-solr-directory>${top-level}/../../solr</surefire-solr-directory>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
@ -108,6 +108,15 @@
<skip>true</skip> <skip>true</skip>
</configuration> </configuration>
</plugin> </plugin>
</plugins> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<java.util.logging.config.file>${surefire-solr-directory}/testlogging.properties</java.util.logging.config.file>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>