Skip to content

Commit

Permalink
Update pom.xml for ti
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag11699 <[email protected]>
  • Loading branch information
anurag-harness committed Nov 2, 2022
1 parent 4f4a7fc commit d42e536
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@
<c-client-openssl>yes</c-client-openssl>
<c-client-sasl>yes</c-client-sasl>

<harnessArgLine></harnessArgLine>

</properties>

<dependencyManagement>
Expand Down Expand Up @@ -704,8 +706,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<trimStackTrace>false</trimStackTrace>
<redirectTestOutputToFile>${redirectTestOutputToFile}</redirectTestOutputToFile>
<argLine>@{argLine} ${harnessArgLine}</argLine>
</configuration>
</plugin>
<plugin>
Expand Down
3 changes: 2 additions & 1 deletion zookeeper-contrib/zookeeper-contrib-loggraph/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<includes>
<include>**/*Test.java</include>
</includes>
<forkCount>${surefire-forkcount}</forkCount>
<reuseForks>false</reuseForks>
<argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber}</argLine>
<argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} ${harnessArgLine}</argLine>
<basedir>${project.basedir}</basedir>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
Expand Down
1 change: 1 addition & 0 deletions zookeeper-contrib/zookeeper-contrib-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<!-- ToDo -->
<skipTests>true</skipTests>
</configuration>
Expand Down
1 change: 1 addition & 0 deletions zookeeper-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<testSourceDirectory>${project.basedir}/src/main/java/</testSourceDirectory>
<testClassesDirectory>${project.build.directory}/classes/</testClassesDirectory>
</configuration>
Expand Down
3 changes: 2 additions & 1 deletion zookeeper-recipes/zookeeper-recipes-election/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<forkCount>${surefire-forkcount}</forkCount>
<reuseForks>false</reuseForks>
<argLine>-Xmx512m</argLine>
<argLine>-Xmx512m ${harnessArgLine}</argLine>
<basedir>${project.basedir}</basedir>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
Expand Down
3 changes: 2 additions & 1 deletion zookeeper-recipes/zookeeper-recipes-lock/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<forkCount>${surefire-forkcount}</forkCount>
<reuseForks>false</reuseForks>
<argLine>-Xmx512m</argLine>
<argLine>-Xmx512m ${harnessArgLine}</argLine>
<basedir>${project.basedir}</basedir>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
Expand Down
3 changes: 2 additions & 1 deletion zookeeper-recipes/zookeeper-recipes-queue/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<forkCount>${surefire-forkcount}</forkCount>
<reuseForks>false</reuseForks>
<argLine>-Xmx512m</argLine>
<argLine>-Xmx512m ${harnessArgLine}</argLine>
<basedir>${project.basedir}</basedir>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
Expand Down
3 changes: 2 additions & 1 deletion zookeeper-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useSystemClassLoader>false</useSystemClassLoader>
<includes>
<include>**/*Test.java</include>
</includes>
<forkCount>${surefire-forkcount}</forkCount>
<reuseForks>false</reuseForks>
<argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} -javaagent:${org.jmockit:jmockit:jar}</argLine>
<argLine>-Xmx512m -Dtest.junit.threads=${surefire-forkcount} -Dzookeeper.junit.threadid=${surefire.forkNumber} -javaagent:${org.jmockit:jmockit:jar} ${harnessArgLine}</argLine>
<basedir>${project.basedir}</basedir>
<systemPropertyVariables>
<build.test.dir>${project.build.directory}/surefire</build.test.dir>
Expand Down

0 comments on commit d42e536

Please sign in to comment.