修改 pom
修改 groupId
sed -i "s/<groupId>org.apache.arrow<\/groupId>/<groupId>com.intel.arrow<\/groupId>/g" `grep "<groupId>org.apache.arrow</groupId>" ./ -rl`
sed -i "s/<groupId>org.apache.arrow.gandiva<\/groupId>/<groupId>com.intel.arrow<\/groupId>/g" `grep "<groupId>org.apache.arrow.gandiva</groupId>" ./ -rl`
修改版本号
sed -i "s/<version>0.17.0<\/version>/<version>0.17.0-Beta1<\/version>/g" `grep "<version>0.17.0</version>" ./ -rl`
删掉 parent
sed -i '/<parent>/, /<\/parent>/d' pom.xml
添加一些属性信息
sed -i '/<\/mailingLists>/a <distributionManagement>\n <snapshotRepository>\n <id>ossrh<\/id>\n <url>https://oss.sonatype.org/content/repositories/snapshots<\/url>\n <\/snapshotRepository>\n <repository>\n <id>ossrh<\/id>\n <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/<\/url>\n <\/repository>\n <\/distributionManagement>' pom.xml
sed -i '/<\/mailingLists>/a <developers>\n <developer>\n <name>xx<\/name>\n <email>xx@intel.com<\/email>\n <organization>intel bigdata<\/organization>\n <organizationUrl>https://github.com/Intel-bigdata<\/organizationUrl>\n <\/developer>\n <\/developers>' pom.xml
sed -i '/<\/mailingLists>/a <licenses>\n <license>\n <name>The Apache License, Version 2.0<\/name>\n <url>http://www.apache.org/licenses/LICENSE-2.0.txt<\/url>\n <\/license>\n <\/licenses>' pom.xml
添加插件
sed -i '/<\/profiles>/i <profile>\n <id>deploy<\/id>\n <build>\n <plugins>\n <plugin>\n <groupId>org.apache.maven.plugins<\/groupId>\n <artifactId>maven-source-plugin<\/artifactId>\n <version>2.2.1<\/version>\n <executions>\n <execution>\n <id>attach-sources<\/id>\n <goals>\n <goal>jar-no-fork<\/goal>\n <\/goals>\n <\/execution>\n <\/executions>\n <\/plugin>\n <plugin>\n <groupId>org.apache.maven.plugins<\/groupId>\n <artifactId>maven-javadoc-plugin<\/artifactId>\n <version>2.9.1<\/version>\n <executions>\n <execution>\n <id>attach-javadocs<\/id>\n <goals>\n <goal>jar<\/goal>\n <\/goals>\n <\/execution>\n <\/executions>\n <\/plugin>\n <plugin>\n <groupId>org.apache.maven.plugins<\/groupId>\n <artifactId>maven-gpg-plugin<\/artifactId>\n <version>1.5<\/version>\n <executions>\n <execution>\n <id>sign-artifacts<\/id>\n <phase>verify<\/phase>\n <goals>\n <goal>sign<\/goal>\n <\/goals>\n <\/execution>\n <\/executions>\n <\/plugin>\n <\/plugins>\n <\/build>\n <\/profile>' pom.xml
在pom里选择要release的模块
<id>arrow-jni</id>
<modules>
<!-- these have dependency on cpp -->
<module>dataset</module>
<!--<module>adapter/orc</module>-->
<module>gandiva</module>
</modules>
Install or deploy
如果引文网络问题,可以先 install ,然后打成 bundle jar,手动上传。
#install
mvn -Parrow-jni -Pdeploy -Dcheckstyle.skip=true -DskipTests clean install