Jira ticket:https://www.mulesoft.org/jira/browse/MULE-7707
如何覆盖连接器中的版本?这就是我在pom.xml中所做的事情
<dependency>
<groupId>org.mule.transports</groupId>
<artifactId>mule-transport-http</artifactId>
<version>3.5.0</version>
<exclusions>
<exclusion>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</exclusion>
</exclusions>
</dependency>
和依赖树:
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ dynamodb-connector ---
[INFO] org.mule.modules:dynamodb-connector:mule-module:1.0.0-SNAPSHOT
[INFO] +- joda-time:joda-time:jar:2.2:compile
[INFO] +- com.amazonaws:aws-java-sdk-dynamodb:jar:1.9.11:compile
[INFO] | \- com.amazonaws:aws-java-sdk-s3:jar:1.9.11:compile
[INFO] | \- com.amazonaws:aws-java-sdk-kms:jar:1.9.11:compile
[INFO] | \- com.amazonaws:aws-java-sdk-core:jar:1.9.11:compile
[INFO] | \- (joda-time:joda-time:jar:2.2:compile - omitted for duplicate)
[INFO] +- org.mule.modules:mule-module-json:jar:3.5.0:compile
[INFO] | +- org.mule.modules:mule-module-xml:jar:3.5.0:compile
[INFO] | | \- (joda-time:joda-time:jar:2.2:compile - omitted for duplicate)
[INFO] | \- org.kitchen-eel:json-schema-validator:jar:1.2.2:compile
[INFO] | \- (joda-time:joda-time:jar:2.2:compile - omitted for duplicate)
[INFO] \- org.mule.modules:mule-module-cxf:jar:3.5.0:provided (scope not updated to compile)
[INFO] +- org.apache.cxf:cxf-rt-databinding-jibx:jar:2.5.9:provided
[INFO] | \- org.jibx:jibx-run:jar:1.2.4.5:provided
[INFO] | \- (joda-time:joda-time:jar:2.2:provided - omitted for duplicate)
[INFO] \- org.apache.cxf:cxf-rt-ws-security:jar:2.5.9:provided
[INFO] \- org.apache.ws.security:wss4j:jar:1.6.9:provided
[INFO] \- org.opensaml:opensaml:jar:2.5.1-1:provided
[INFO] \- org.opensaml:openws:jar:1.4.2-1:provided
[INFO] \- org.opensaml:xmltooling:jar:1.3.2-1:provided
[INFO] \- (joda-time:joda-time:jar:2.2:provided - omitted for duplicate)
我不确定为什么一直抱怨java.lang.NoSuchMethodError: org.joda.time.format.DateTimeFormatter.withZoneUTC()
答案 0 :(得分:0)
Mule 3.6即将发布,包括MULE-7936,因此有一个经过全面测试的Mule,其中包含更新joda-time。我建议等待它或手动后退并继续使用该版本进行开发直到3.6发布。