Author: tomekr
Date: Tue May 9 08:07:46 2017
New Revision: 1794503
URL: http://svn.apache.org/viewvc?rev=1794503&view=rev
Log:
OAK-4136 - release profile in maven
OAK-4148 - RAT plugin complains about derby files
merging revisions: 1737998,1738004,1738963 from trunk
Modified:
jackrabbit/oak/branches/1.2/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/random/AbstractRandomizedTest.java
jackrabbit/oak/branches/1.2/oak-parent/pom.xml
jackrabbit/oak/branches/1.2/oak-pojosr/pom.xml
Modified:
jackrabbit/oak/branches/1.2/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/random/AbstractRandomizedTest.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.2/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/random/AbstractRandomizedTest.java?rev=1794503&r1=1794502&r2=1794503&view=diff
==============================================================================
---
jackrabbit/oak/branches/1.2/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/random/AbstractRandomizedTest.java
(original)
+++
jackrabbit/oak/branches/1.2/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/random/AbstractRandomizedTest.java
Tue May 9 08:07:46 2017
@@ -56,7 +56,6 @@ public abstract class AbstractRandomized
@Before
public void setUp() throws Exception {
- System.setProperty("derby.stream.error.file", "target/derby.log");
jackrabbitRepository = JcrUtils.getRepository(
new File("target", "jackrabbit").toURI().toURL().toString());
oakRepository = new Jcr().createRepository();
Modified: jackrabbit/oak/branches/1.2/oak-parent/pom.xml
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.2/oak-parent/pom.xml?rev=1794503&r1=1794502&r2=1794503&view=diff
==============================================================================
--- jackrabbit/oak/branches/1.2/oak-parent/pom.xml (original)
+++ jackrabbit/oak/branches/1.2/oak-parent/pom.xml Tue May 9 08:07:46 2017
@@ -61,6 +61,7 @@
<h2.version>1.4.190</h2.version>
<findbugs.version>3.0.0</findbugs.version>
<java.version.signature>java16</java.version.signature>
+ <derby.version>10.12.1.1</derby.version>
<!-- specifies on which fixture to run the integration testing tests.
override in profiles or provide from command line to change behaviour.
Provide
@@ -206,6 +207,7 @@
<mongo.db2>${mongo.db2}</mongo.db2>
<segment.db>${segment.db}</segment.db>
<nsfixtures>${fixtures}</nsfixtures>
+
<derby.stream.error.file>${project.build.directory}/derby.log</derby.stream.error.file>
</systemPropertyVariables>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
@@ -221,6 +223,7 @@
<mongo.db>${mongo.db}</mongo.db>
<mongo.db2>${mongo.db2}</mongo.db2>
<nsfixtures>${fixtures}</nsfixtures>
+
<derby.stream.error.file>${project.build.directory}/derby.log</derby.stream.error.file>
</systemPropertyVariables>
</configuration>
</plugin>
@@ -532,6 +535,91 @@
</build>
</profile>
+ <!-- - - - - - - - - - - - - - - - - - - - will run all the required tests
before a release -->
+ <profile>
+ <id>release</id>
+ <properties>
+ <nsfixtures />
+
<rdb.jdbc-url>jdbc:derby:./target/derby-release-test;create=true</rdb.jdbc-url>
+
<derby.stream.error.file>${project.build.directory}/derby.log</derby.stream.error.file>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemProperties>
+
<derby.stream.error.file>${project.build.directory}/derby.log</derby.stream.error.file>
+ </systemProperties>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ <configuration>
+ <systemProperties>
+
<derby.stream.error.file>${project.build.directory}/derby.log</derby.stream.error.file>
+ </systemProperties>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>verify</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ <configuration>
+ <failOnViolation>false</failOnViolation>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <version>${findbugs.version}</version>
+ <configuration>
+ <failOnError>false</failOnError>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derby</artifactId>
+ <version>${derby.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- other profiles -->
<profile>
<id>rat</id>
@@ -613,7 +701,7 @@
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
- <version>10.12.1.1</version>
+ <version>${derby.version}</version>
</dependency>
</dependencies>
</profile>
Modified: jackrabbit/oak/branches/1.2/oak-pojosr/pom.xml
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.2/oak-pojosr/pom.xml?rev=1794503&r1=1794502&r2=1794503&view=diff
==============================================================================
--- jackrabbit/oak/branches/1.2/oak-pojosr/pom.xml (original)
+++ jackrabbit/oak/branches/1.2/oak-pojosr/pom.xml Tue May 9 08:07:46 2017
@@ -84,25 +84,6 @@
</configuration>
</plugin>
</plugins>
- <pluginManagement>
- <plugins>
- <!-- Some component is creating derby.log in test. Need to be
deleted-->
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.5</version>
- <configuration>
- <filesets>
- <fileset>
- <directory>${project.basedir}</directory>
- <includes>
- <include>derby.log</include>
- </includes>
- </fileset>
- </filesets>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
</build>
<dependencies>