Activiti使用maven alfresco仓库问题处理

环境

项目用到了Activiti工作流引擎。 项目使用maven进行依赖管理。

遇到问题

项目使用的activiti版本是5.13,但是maven中央库中是从5.14开始的。 从网上找到https://maven.alfresco.com/nexus/content/groups/public/这个仓库包含5.13版本。 但是配置完该仓库,使用maven从里面下载的时候出现了异常。java.lang.RuntimeException: Could not generate DH keypair

搜索解决方案

从网上搜,找到了:这里还有这里

解决方法

下面内容摘自上述第二个搜索结果:

Solution: The problem is “Prime size must be multiple of 64, and can only range from 512 to 1024″. The maximum-acceptable size that Java accepts is 1024 bits, this is a known issue http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6521495. I tried using the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files, that did not work. The bug report mentioned using BouncyCastle’s JCE implementation to get around this problem.

  1. Download the BouncyCastle JCE jars. These particular links are for version 1.52 and work for Oracle Java 5 – Java 8. https://www.bouncycastle.org/download/bcprov-jdk15on-152.jar https://www.bouncycastle.org/download/bcprov-ext-jdk15on-152.jar OR: http://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on/1.52 http://mvnrepository.com/artifact/org.bouncycastle/bcprov-ext-jdk15on/1.52
  1. Copy jars to $JAVA_HOME/jre/lib/ext
  2. Edit $JAVA_HOME/jre/lib/security/java.security as follows: a. Locate the “security.provider” section. Keep security.provider.1=sun.security.provider.Sun b. Locate “security.provider.2″ and make that “security.provider.3″. Do this for all the remaining “security.provider.n” values. c. Set “security.provider.2″ to org.bouncycastle.jce.provider.BouncyCastleProvider security.provider.2=org.bouncycastle.jce.provider.BouncyCastleProvider
  1. Re-run the maven build and the errors should now be gone.

转载于:https://my.oschina.net/huanger/blog/484381

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值