英文:
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-
<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>
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.
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>core.wcm.components.all</artifactId>
<type>zip</type>
<version>2.9.0</version>
</dependency>
For example, in our project, we are using 2.8.0
with Archetype 14 or 15.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论