-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from vintmd/master
cos ranger version
- Loading branch information
Showing
29 changed files
with
763 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
base_dir=$(cd `dirname $0`;pwd) | ||
cd ${base_dir} | ||
hadoop_version_array=("2.6.5" "2.7.5" "2.8.5" "3.1.0" "3.3.0") | ||
|
||
origin_version=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec) | ||
|
||
for hadoop_version in ${hadoop_version_array[@]} | ||
do | ||
sed -i -E "s/<hadoop\.version>.*<\/hadoop\.version>/<hadoop\.version>${hadoop_version}<\/hadoop\.version>/g" pom.xml | ||
mvn versions:set -DnewVersion=${hadoop_version}-${origin_version} | ||
mvn clean verify | ||
rm -rf dep/${hadoop_version} | ||
mkdir -p dep/${hadoop_version} | ||
cp target/*.jar dep/${hadoop_version}/ | ||
cp target/*.asc dep/${hadoop_version}/ | ||
cp target/*.pom dep/${hadoop_version}/ | ||
|
||
mvn versions:set -DnewVersion=${origin_version} | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.