[英]maven-jaxb2-plugin - ignore ssl error
I am using maven-jaxb2-plugin and I get the following error 我正在使用maven-jaxb2-plugin并收到以下错误
Caused by: java.security.cert.CertPathValidatorException: timestamp check failed
I understand the certificate expired and I do not manage the webservice. 我了解证书已过期,并且我不管理Web服务。 So how do I ignore the SSL error.
因此,我该如何忽略SSL错误。
I try to generate-source as 我尝试生成源为
generate-sources -Dmaven.wagon.provider.http=httpclient -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
But I still get the same error. 但是我仍然遇到同样的错误。 How do I configure Maven to ignore SSL error and generate sources.
如何配置Maven忽略SSL错误并生成源。
I stronly advise against compiling online resources. 我强烈建议不要编译在线资源。
Create a local copy of what you're compiling and use catalogs to rewrite URLs. 创建您正在编译的内容的本地副本,并使用目录重写URL。
<configuration>
<catalogs>
<catalog>
<dependencyResource>
<groupId>com.acme.foo</groupId>
<artifactId>bar</artifactId>
<!--
Version can be omitted if artifact is already
configured in dependencies or dependency management.
-->
<version><!-- Version --></version>
<resource>catalog.cat</resource>
</dependencyResource>
</catalog>
</catalogs>
</configuration>
Catalog file is as simple as: 目录文件很简单:
REWRITE_SYSTEM "http://www.w3.org" "w3c"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.