可以在 AEM 版本 6.4.2 中使用 Archetype 22 吗?

huangapple go评论60阅读模式
英文:

Can we use the Archetype 22 for AEM version 6.4.2?

问题

目前,我们处于版本6.4.2,并且正在将新的存储库添加到实例中。我们计划将AEM实例升级到将来的6.4.6或.8版本(时间表尚未确定)。
在构建项目之后,我们打算从代码中移除所有核心组件(因为每个原型与不同版本相关联- 原型22附带2.7.0,而我的环境使用2.5.0)的依赖项。

当我比较两个pom.xml文件时,原型22会在结构中创建额外的all文件夹。
以下是其他pom.xml文件中存在的一些差异-

<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>${bnd.version}</version>
</plugin>

<dependencies>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.caconfig.bnd-plugin</artifactId>
<version>1.0.2</version>
</dependency>
</dependencies>

<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>

我们可以使用原型22吗?

英文:

Currently, we are in 6.4.2, and we are adding a new repo to the instance. We are planning for the AEM instance upgrade to 6.4.6 or .8 in the future( not yet decided for timeline).
After building the project, we intended to all core components( because every archetype tied with diff versions- archetype 22 comes with 2.7.0 and my env using 2.5.0) dependencies from the code.

when i compare 2 pom.xml's, archetype 22 is creating extra all folder in the structure
below are the few differences present in remaining pom.xml files-

&lt;plugin&gt;
&lt;groupId&gt;biz.aQute.bnd&lt;/groupId&gt;
&lt;artifactId&gt;bnd-maven-plugin&lt;/artifactId&gt;
&lt;version&gt;${bnd.version}&lt;/version&gt;
&lt;/plugin&gt;

&lt;dependencies&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.sling&lt;/groupId&gt;
&lt;artifactId&gt;org.apache.sling.caconfig.bnd-plugin&lt;/artifactId&gt;
&lt;version&gt;1.0.2&lt;/version&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;

&lt;dependency&gt;
&lt;groupId&gt;javax.annotation&lt;/groupId&gt;
&lt;artifactId&gt;javax.annotation-api&lt;/artifactId&gt;
&lt;/dependency&gt;

Can we use archetype 22?

答案1

得分: 1

如果您只需要更新核心组件,您可以这样做,核心组件与原型版本无关,而与AEM本身相关。在这里检查兼容性:https://github.com/adobe/aem-core-wcm-components/releases

最新版本(2.9.0)与6.4.8兼容。

<dependency>
    <groupId>com.adobe.cq</groupId>
    <artifactId>core.wcm.components.all</artifactId>
    <type>zip</type>
    <version>2.9.0</version>
</dependency>

例如,在我们的项目中,我们正在使用Archetype 14或15的2.8.0版本。

英文:

If you only need to update the core components you can do it, Core components are not tied to the Archetype version, but to AEM itself. Check compatibility here: https://github.com/adobe/aem-core-wcm-components/releases

The latest version (2.9.0) works with 6.4.8.

       &lt;dependency&gt;
            &lt;groupId&gt;com.adobe.cq&lt;/groupId&gt;
            &lt;artifactId&gt;core.wcm.components.all&lt;/artifactId&gt;
            &lt;type&gt;zip&lt;/type&gt;
            &lt;version&gt;2.9.0&lt;/version&gt;
        &lt;/dependency&gt;

For example, in our project, we are using 2.8.0 with Archetype 14 or 15.

huangapple
  • 本文由 发表于 2020年5月29日 21:48:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/62087475.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定