最近我将JDev从12.2.1.2版本升级到12.2.1.3。我发现的第一个问题是有关名为com.oracle.commons.beanutils.commons.beanutils:commons-beanutils-1.9.2:jar的依赖项。
我看到有一个补丁。我用opatch apply应用了补丁,然后在运行命令mvn包后出现另一个错误:
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: com.oracle.weblogic:jms-internal-notran-adp:jar:12.2.1-3-0, com.oracle.weblogic:jms-internal-xa-adp:jar:12.2.1-3-0, com.oracle.weblogic:jms-local-adp:jar:12.2.1-3-0, com.oracle.weblogic:jms-notran-adp:jar:12.2.1-3-0, com.oracle.weblogic:jms-xa-adp:jar:12.2.1-3-0: Could not find artifact com.oracle.weblogic:jms-internal-notran-adp:jar:12.2.1-3-0 in central (https://repo.maven.apache.org/maven2)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:384)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:205)
以前有人见过这个问题吗?
谢谢!
答案 0 :(得分:0)
我的OSB项目今天也遇到类似的问题,并且已通过以下步骤解决了问题:
1-将Oracle存储库添加到pom.xml:
<repositories>
<repository>
<id>maven.oracle.com</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<url>https://maven.oracle.com</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>maven.oracle.com</id>
<url>https://maven.oracle.com</url>
</pluginRepository>
</pluginRepositories>
2-构建项目并验证依赖项是否已下载
3-如果发生SSL错误:
无法与maven.oracle.com进行传输 (https://maven.oracle.com): sun.security.validator.ValidatorException:PKIX路径构建 失败:sun.security.provider.certpath.SunCertPathBuilderException: 无法找到到请求目标的有效认证路径
3.1-下载Oracle公共证书并以别名'maven.oracle.com.pem'的pem格式保存:
openssl s_client -showcerts -connect maven.oracle.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM >maven.oracle.com.pem
3.2-通过别名“ maven.oracle.com”将证书导入到JDK信任库:
keytool -importcert -file maven.oracle.com.pem -keystore cacerts -alias "maven.oracle.com"
3.3-验证是否一切成功:
keytool -list -keystore cacerts -alias maven.oracle.com
PS ::如果询问任何密码,则默认的JDK cacerts密码为“ changeit”。
请先备份cacerts。