美文网首页
Maven打war包 RSA premaster secret

Maven打war包 RSA premaster secret

作者: Bertram_Wang | 来源:发表于2019-02-22 18:04 被阅读0次

Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): RSA premaster secret error: SunTls12RsaPremasterSecret KeyGenerator not available -> [Help 1]

错误信息
总算找到了一个处理方式。。。。。
在pom.xml文件添加以下代码
<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <version>2.4.3</version>
</dependency>

在setting.xml文件添加mirror

<mirror> 
    <id>Central</id> 
    <url>http://repo1.maven.org/maven2</url> 
    <mirrorOf>central</mirrorOf> 
</mirror> 

最后重新打包即可。maven build;


成功打包

相关文章

网友评论

      本文标题:Maven打war包 RSA premaster secret

      本文链接:https://www.haomeiwen.com/subject/ydtyyqtx.html