2012-02-15 40 views
1

我的测试Tomcat 6服务器具有自签名证书。经理webapp只能通过SSL访问,并带有这个自签证书。当我尝试与货物maven2的-plugin的部署,我得到的错误:使用货物和无效的SSL证书进行部署

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 

我大概证书添加到默认的Java密钥库,但我想保持部署尽可能实现可移植性和不要求每个需要部署应用程序的人来安装证书。我想仅通过签出项目来部署应用程序,为应用程序服务器配置密码并运行Maven。

我无法在货物文档中找到忽略无效证书的方法。

您能否指点我正确的方向?

回答