D:\code\aem-guides-wknd>java -version
java version "11.0.23" 2024-04-16 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.23+7-LTS-222)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.23+7-LTS-222, mixed mode)
D:\code\aem-guides-wknd>mvn -v
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: D:\apache-maven-3.9.6
Java version: 11.0.23, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-11
Default locale: en_IN, platform encoding: Cp1252
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate "-D archetypeGroupId=com.adobe.aem" "-D archetypeArtifactId=aem-project-archetype" "-D archetypeVersion=48" "-D appTitle=WKND Sites Project" "-D appId=wknd" "-D groupId=com.adobe.aem.guides" "-D artifactId=aem-guides-wknd" "-D package=com.adobe.aem.guides.wknd" "-D version=0.0.1-SNAPSHOT" "-D aemVersion=6.5.0"
mvn clean install -PautoInstallSinglePackage -Pclassic
WKND en page is appearing blank.
Is there anything I am doing wrong here?? java version 11 is compatible too
Views
Replies
Total Likes
Hi @shivparekh21 , I could see that you have created a new maven project instead of building an existing https://github.com/adobe/aem-guides-wknd project, kindly clone the project again and use the below commands to deploy to the instance.
$ mvn clean install -PautoInstallPackage
Most likely you are missing an SP in your AEM instance, please review the system requirements here: https://github.com/adobe/aem-guides-wknd?tab=readme-ov-file#system-requirements and make sure you are using the correct version with the respective SP.
Hope this helps
Do I need service package when i am deploying it to server??
Views
Replies
Total Likes
Hi @shivparekh21 ,
It looks like you're encountering dependency resolution issues when building the WKND project in AEM 6.5 using Maven. These errors indicate that certain OSGi dependencies are not being resolved during the build process.
Here are the steps to troubleshoot and resolve these issues:
Ensure that the pom.xml of your project contains the correct dependencies and repositories for resolving the required bundles.
Make sure you have the following repositories configured in your pom.xml:
<repositories>
<repository>
<id>adobe-public-releases</id>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
</repository>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
Ensure that the dependencies for the required packages are listed in your core/pom.xml or all/pom.xml:
<dependencies>
<!-- Example dependencies, adjust versions as needed -->
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-sdk-api</artifactId>
<version>2021.10.5455.20211012T100432Z-210900</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>cq-wcm-api</artifactId>
<version>6.5.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.11.3</version>
</dependency>
<!-- Add other required dependencies similarly -->
</dependencies>
Ensure that you are using the correct Maven profiles during the build. For AEM 6.5, the classic profile should be sufficient, but you might need to adjust the build profiles.
mvn clean install -PautoInstallSinglePackage -Pclassic
Check if the specific versions of the required OSGi bundles are available in the Adobe repository. If they are not, you might need to adjust the versions in your pom.xml.
Sometimes, updating the project and synchronizing dependencies can resolve version conflicts:
mvn clean install -U
Here’s an example configuration snippet for core/pom.xml:
<project>
<!-- Other configurations -->
<dependencies>
<dependency>
<groupId>com.adobe.aem</groupId>
<artifactId>aem-sdk-api</artifactId>
<version>2021.10.5455.20211012T100432Z-210900</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.adobe.cq</groupId>
<artifactId>cq-wcm-api</artifactId>
<version>6.5.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.11.3</version>
</dependency>
<!-- Add other dependencies similarly -->
</dependencies>
<repositories>
<repository>
<id>adobe-public-releases</id>
<url>https://repo.adobe.com/nexus/content/groups/public/</url>
</repository>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
<!-- Other configurations -->
</project>
By ensuring that the correct dependencies and repositories are configured in your pom.xml files, you should be able to resolve the issues with missing packages and OSGi dependencies. If problems persist, review the error logs for more specific details on the root cause and adjust your project configuration accordingly.
Views
Replies
Total Likes
@shivparekh21 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies