zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eolive...@apache.org
Subject [zookeeper] branch branch-3.5 updated: ZOOKEEPER-3703: publish a test JAR
Date Tue, 04 Feb 2020 09:44:21 GMT
This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch branch-3.5
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/branch-3.5 by this push:
     new e45b5a8  ZOOKEEPER-3703: publish a test JAR
e45b5a8 is described below

commit e45b5a873aa1e238c753413e73ff81962ab991d4
Author: Jordan Zimmerman <jordan@jordjzimmerman@grubhub.com>
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@jordjzimmerman@grubhub.com>
    
    Reviewers: Enrico Olivelli <eolivelli@apache.org>, Norbert Kalmar <nkalmar@apache.org>
    
    Closes #1229 from Randgalt/ZOOKEEPER-3703-publish-test-jar
    
    (cherry picked from commit 6db92d7dfa426488b191afba319a16b96f4a36c6)
    Signed-off-by: Enrico Olivelli <eolivelli@apache.org>
---
 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 e80a2b3..6026c30 100755
--- a/zookeeper-server/pom.xml
+++ b/zookeeper-server/pom.xml
@@ -264,7 +264,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>


Mime
View raw message