HIGUCHI Yuta | 88f3bf3 | 2013-06-20 10:37:47 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Pavlin Radoslavov | 4c7a077 | 2014-01-04 08:52:57 -0800 | [diff] [blame] | 3 | # |
| 4 | # A helper script to update the modified local copy of "curator" or the "kryo2" |
| 5 | # version. |
| 6 | # |
| 7 | # NOTE: This script is useful only for developers. |
| 8 | # Usage: |
| 9 | # 1. Update the "curator" jar file or the "kryo2" pom.xml file as appropriate. |
| 10 | # 2. Run this script. |
| 11 | # 3. Push the modified repo/ directory to the source code repository. |
| 12 | # |
| 13 | |
HIGUCHI Yuta | 88f3bf3 | 2013-06-20 10:37:47 -0700 | [diff] [blame] | 14 | if [ -z "${MVN}" ]; then |
| 15 | MVN="mvn" |
| 16 | fi |
| 17 | |
Yuta HIGUCHI | d62fb87 | 2014-01-02 10:40:32 -0800 | [diff] [blame] | 18 | # Install Kryo2 workaround to local repo |
| 19 | # - Shaded(rename package name to allow mixing 2 different Kryo version) |
| 20 | # - Install created sharded jar to local repo |
Yuta HIGUCHI | 5548a49 | 2013-10-24 00:39:23 -0700 | [diff] [blame] | 21 | ${MVN} -f kryo2/pom.xml package exec:exec |
| 22 | |
Yuta HIGUCHI | d62fb87 | 2014-01-02 10:40:32 -0800 | [diff] [blame] | 23 | # Install modified curators to local repo |
| 24 | ${MVN} install:install-file -Dfile=./curator/curator-framework-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-framework -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true |
| 25 | ${MVN} install:install-file -Dfile=./curator/curator-client-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-client -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true |
| 26 | ${MVN} install:install-file -Dfile=./curator/curator-recipes-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-recipes -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true |
| 27 | ${MVN} install:install-file -Dfile=./curator/curator-x-discovery-1.3.5-SNAPSHOT.jar -DgroupId=com.netflix.curator -DartifactId=curator-x-discovery -Dversion=1.3.5-SNAPSHOT -Dpackaging=jar -DgeneratePom=true -DlocalRepositoryPath=./repo -DcreateChecksum=true |
HIGUCHI Yuta | 88f3bf3 | 2013-06-20 10:37:47 -0700 | [diff] [blame] | 28 | |