问题一、> Failed to apply plugin [id 'com.cinnober.gradle.semver-git']
解决方式:
安装git
yum -y install git
问题二、
> Task :az-crypto:test
azkaban.crypto.DecryptionTest > testV1_1 FAILED
java.lang.RuntimeException: java.lang.RuntimeException: org.jasypt.exceptions.EncryptionOperationNotPossibleException: Encryption raised an exception. A possible cause is you are using strong encryption algorithms and you have not installed the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in this Java Virtual Machine
at azkaban.crypto.Crypto.decrypt(Crypto.java:76)
at azkaban.crypto.DecryptionTest.testV1_1(DecryptionTest.java:35)
解决方式:
下载官方JCE无限制强度加密策略文件,覆盖即可
一键安装脚本
# yum -y curl unzip
curl -q -L -C - -b "oraclelicense=accept-securebackup-cookie" -o /tmp/jce_policy-8.zip \
-O http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip \
&& unzip -oj -d ${JAVA_HOME}/jre/lib/security /tmp/jce_policy-8.zip \*/\*.jar \
&& rm /tmp/jce_policy-8.zip
问题三
FAILURE: Build failed with an exception.
* What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
解决方式:
gradle 3.0后官方文档有一段话:
在gradlew
后面加上--no-daemon
(关闭daemon)参数即可
./gradlew --no-daemon build