diff --git a/pom.xml b/pom.xml
index 336635a65d..f177e695db 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,7 +32,7 @@
Chelsea.BUILD-SNAPSHOT
1.3.1.BUILD-SNAPSHOT
1.2.1.BUILD-SNAPSHOT
- 1.2.1.BUILD-SNAPSHOT
+ 1.2.2.BUILD-SNAPSHOT
diff --git a/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy b/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy
index 65209fbfc8..8c6c525c5b 100644
--- a/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy
+++ b/tests/spring-cloud-contract-stub-runner-camel/src/test/groovy/org/springframework/cloud/contract/stubrunner/messaging/camel/CamelStubRunnerSpec.groovy
@@ -173,7 +173,12 @@ class CamelStubRunnerSpec extends Specification {
@Bean
ActiveMQConnectionFactory activeMQConnectionFactory(@Value('${activemq.url:vm://localhost?broker.persistent=false}') String url) {
- return new ActiveMQConnectionFactory(brokerURL: url, trustAllPackages: true)
+ ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(brokerURL: url)
+ try {
+ factory.trustAllPackages = true
+ } catch (Throwable e) {
+ }
+ return factory
}
@Bean