CMS Magnolia木兰 - 休息 - 内容 - 交付版本在pom

时间:2018-02-27 20:32:18

标签: rest maven magnolia

我需要在Maven中安装magnolia-rest-content-delivery模块。

  • 在安装此模块之前,我有以下依赖项。项目的构建和安装都没有问题。

enter image description here

问题:如何在magnolia项目中定义依赖版本?

  • 首次尝试安装时不使用其他版本的群组info.magnolia.rest

enter image description here

导致错误`[ERROR]'dependencies.dependency.version'对于info.magnolia.rest:magnolia-rest-content-delivery:jar缺失.`

问题:magnolia-rest-content-delivery有什么特别之处,所以它确实需要版本?

  • 第二次尝试 - 将版本添加到

enter image description here

部署期间导致错误

Module Magnolia REST Content Delivery (version 2.0.1) is dependent on rest-integration (version 2.0.1/*),
but Magnolia REST Integration (version 1.2.1) is currently installed.
  • 第3次尝试:向info.magnolia.rest groupId
  • 中的所有依赖项添加相同版本

enter image description here

在部署期间导致相同的错误

Module Magnolia REST Content Delivery (version 2.0.1) is dependent on rest-integration (version 2.0.1/*), 
but Magnolia REST Integration (version 1.2.1) is currently installed.

我可以尝试下一步解决问题? 谢谢。

更新: Project的pom依赖于magnolia-enterprise-bundle-parent v#5.5.4

enter image description here

在依赖关系树中,我可以看到magnolia-rest-integration获取版本1.2.1

enter image description here

什么是覆盖BOM中定义版本的安全方法?

更新2:

我最终在dependencyManagement部分重写了依赖版本

enter image description here

清理本地maven存储库并构建

Regardles认为有效的pom现在显示了玉兰花休息模块的正确版本结果几乎相同

[ERROR] Module Magnolia REST Tools (version 2.0.1) is dependent on rest-integration (version 2.0.1/*), 
but Magnolia REST Integration (version 1.2.1) is currently installed.
[ERROR] Module Magnolia REST Content Delivery (version 2.0.1) is dependent on rest-integration (version 2.0.1/*), 
but Magnolia REST Integration (version 1.2.1) is currently installed.

我无法附加依赖树输出文件(这里是小摘录)

[INFO] +- info.magnolia.eebundle:magnolia-enterprise-standard-webapp:war:5.5.4:compile
[INFO] +- info.magnolia.rest:magnolia-rest-integration:jar:2.0.1:compile
[INFO] |  +- info.magnolia.core:magnolia-configuration:jar:5.5.4:compile
[INFO] |  |  \- org.atteo:evo-inflector:jar:1.2.1:compile
[INFO] |  +- javax.xml.bind:jaxb-api:jar:2.2:compile
[INFO] |  |  \- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] |  +- org.jboss.resteasy:resteasy-jaxrs:jar:3.0.19.SP1-redhat-1:compile
[INFO] |  |  +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final-redhat-1:compile
[INFO] |  |  \- org.jboss.logging:jboss-logging:jar:3.3.0.Final-redhat-1:compile
[INFO] |  +- org.jboss.resteasy:resteasy-jackson2-provider:jar:3.0.19.SP1-redhat-1:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-core:jar:2.8.6:compile
[INFO] |  |  \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.8.6:compile
[INFO] |  |     +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.8.6:compile
[INFO] |  |     \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.8.6:compile
[INFO] |  +- org.jboss.resteasy:resteasy-jaxb-provider:jar:3.0.19.SP1-redhat-1:compile
[INFO] |  +- javax.ws.rs:javax.ws.rs-api:jar:2.0:compile
[INFO] |  \- com.google.guava:guava:jar:18.0:compile
[INFO] +- info.magnolia.rest:magnolia-rest-services:jar:2.0.1:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.0:compile
[INFO] |  +- io.swagger:swagger-annotations:jar:1.5.4:compile
[INFO] |  +- org.apache.jackrabbit:jackrabbit-jcr-commons:jar:2.12.4:compile
[INFO] |  +- commons-codec:commons-codec:jar:1.10:compile
[INFO] |  +- org.jboss.resteasy:resteasy-jackson-provider:jar:3.0.19.SP1-redhat-1:compile
[INFO] |  |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.12:compile
[INFO] |  |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.12:compile
[INFO] |  |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.12:compile
[INFO] |  |  \- org.codehaus.jackson:jackson-xc:jar:1.9.12:compile
[INFO] |  \- org.jboss.resteasy:resteasy-client:jar:3.0.19.SP1-redhat-1:compile
[INFO] +- info.magnolia.rest:magnolia-rest-tools:jar:2.0.1:compile
[INFO] |  +- io.swagger:swagger-jaxrs:jar:1.5.4:compile
[INFO] |  |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.8.6:compile
[INFO] |  |  +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.8.6:compile
[INFO] |  |  |  +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] |  |  |  \- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] |  |  \- io.swagger:swagger-core:jar:1.5.4:compile
[INFO] |  |     +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.8.6:compile
[INFO] |  |     \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] |  \- io.swagger:swagger-models:jar:1.5.4:compile
[INFO] +- info.magnolia.rest:magnolia-rest-content-delivery:jar:2.0.1:compile
[INFO] |  +- javax.json:javax.json-api:jar:1.0:compile
[INFO] |  +- org.glassfish:javax.json:jar:1.0:compile
[INFO] |  \- org.apache.jackrabbit:jackrabbit-spi-commons:jar:2.12.4:compile
[INFO] |     \- org.apache.jackrabbit:jackrabbit-spi:jar:2.12.4:compile

这个mistic“Magnolia REST Integration(版本1.2.1)”提到的唯一地方是:

的.m2 \库\信息\木兰\束\玉兰捆父\ 5.5.4 \玉兰捆父 - 5.5.4.pom

enter image description here

1 个答案:

答案 0 :(得分:0)

休息的版本号来自您最有可能扩展的父pom,或来自您导入的Magnolia CE或EE webapp的依赖部分或来自BOM。没有办法说没有看到整个pom。至于内容交付的特殊之处 - 它没有在"来源"中定义。其他模块的版本因此您需要明确声明它 从错误中看,您最终可能会在webapp中找到两个版本的人工制品,或者没有拾取版本(即您的pom中有一些错误)。您根本不需要声明magnolia-rest-integration因为它应该被magnolia-rest-content-delivery-services-tools模块引入。

请包含指向整个pom的链接。另外,请提供运行mvn dependency:tree的输出以指出确切的错误。