首先声明,我还没学会Java,所以内容可能会很肤浅。
第一个问题:
报错:
Missing artifact com.oracle:ojdbc14:jar:11.2.0.4.0
参考解决方案:https://blog.csdn.net/qq_35893120/article/details/82878063
个人解决方案:
下载ojdbc6.jar以后,放在一个位置。然后执行:
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=11.2.0 -Dpackaging=jar -Dfile=ojdbc6.jar
第二个问题:
报错:
Could not transfer artifact net.shibboleth.tool:xmlsectool:jar:2.0.0 from/to shib-release
mvn报错内容:
Could not transfer artifact net.shibboleth.tool:xmlsectool:jar:2.0.0 from/to shib-release (https://build.shibboleth.net/nexus/content/repositories/releases): sun.security.
validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Hel
p 1]
Could not transfer metadata com.nimbusds:lang-tag/maven-metadata.xml from/to shib-release (https://build.shibboleth.net/nexus/content/repositories/releases): sun.security.val
idator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Downloading from shib-release: https://build.shibboleth.net/nexus/content/repositories/releases/net/shibboleth/tool/xmlsectool/2.0.0/xmlsectool-2.0.0.jar
根据提示信息,点击连接就可以下载。然后继续刚才的mvn那个命令就可以解决了。
以下为我的命令:
[#zeyu#]
mvn install:install-file -Dfile=E:/xmlsectool-2.0.0.jar -DgroupId=net.shibboleth.tool -DartifactId=xmls
ectool -Dversion=2.0.0 -Dpackaging=jar
第三个问题:
报错:
The POM for com.alibaba:druid:jar:1.1.10 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
解决:
参照:https://blog.csdn.net/cockroach02/article/details/102734426
转载:
开始一直以为是kernel-core哪有问题,是不是要重新编译下才能行,最后找到一个与我情况类似的博客,问题竟然是因为我没有安装配置Jdk的环境(由于使用的是IDE自带有jdk和maven),那就让我们继续回顾下jdk的安装配置:
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_212
CLASSPATH=%JAVA_HOME%/lib/tools.jar:%JAVA_HOME%/lib/dt.jar:.
path=%path%;%JAVA_HOME%\bin
配置好jdk后问题解决.