This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch branch-3.6
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/branch-3.6 by this push:
new 3008ab7 ZOOKEEPER-3703: publish a test JAR
3008ab7 is described below
commit 3008ab70ea418ef97a4ccff968b96a4b5198a96c
Author: Jordan Zimmerman <jordan@[email protected]>
AuthorDate: Tue Feb 4 10:43:30 2020 +0100
ZOOKEEPER-3703: publish a test JAR
It would be very helpful to Apache Curator and others if ZooKeeper
published its testing code as a Maven Test JAR. Curator, for example, could use
it to improve its testing server to make it easier to inject error conditions
without having to have forced time delays and other hacks.
NOTE: if we move forward with gRPC (ZOOKEEPER-102) that would be in a new
module and this would be required. So, might as well do it now.
Author: Jordan Zimmerman <jordan@[email protected]>
Reviewers: Enrico Olivelli <[email protected]>, Norbert Kalmar
<[email protected]>
Closes #1229 from Randgalt/ZOOKEEPER-3703-publish-test-jar
(cherry picked from commit 6db92d7dfa426488b191afba319a16b96f4a36c6)
Signed-off-by: Enrico Olivelli <[email protected]>
---
zookeeper-server/pom.xml | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/zookeeper-server/pom.xml b/zookeeper-server/pom.xml
index 7a72b37..5fb044a 100755
--- a/zookeeper-server/pom.xml
+++ b/zookeeper-server/pom.xml
@@ -295,7 +295,20 @@
</systemPropertyVariables>
</configuration>
</plugin>
- </plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>publish-test-jar</id>
+ <goals>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
</project>