AEM Wknd Project Added A Component and Getting exception : An error occurred while calculating the baseline: The baselining plugin detected versioning errors -> [Help 1] | Community
Skip to main content
Level 3
November 1, 2023
Solved

AEM Wknd Project Added A Component and Getting exception : An error occurred while calculating the baseline: The baselining plugin detected versioning errors -> [Help 1]

I was trying to add a component from the code side.

Steps to reproduce:

1) Clone the repository of wknd project https://github.com/adobe/aem-guides-wknd.git

2) checkout to main branch

3) Copy the helloworld component folder from ui.apps folder and paste and rename the new component to myhelloword

4)Change the cq:dialog appropraitely

5)change the html and .content.xml appropriately

6) Add MyHelloWorld.java in the core folder and by copy pasting the HelloWorld.java

7) Link the MyHelloWorld.java to the myhelloworld.html component as done in helloworld.html

😎 Build using mvn clean install -PautoInstallSinglePackage

 

I changed the package.info in the model package as follows

 

@org.osgi.annotation.versioning.Version("3.3.0")
package com.adobe.aem.guides.wknd.core.models;

But still getting the error. Could yoy please advice what to do to fix it?

Getting error as [ERROR] The bundle version change (3.2.0 to 3.2.1) is too low, the new version must be at least 3.3.0
[INFO] ------------------------------------------------------------------------

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
EstebanBustamante
EstebanBustamanteAccepted solution
New Participant
November 1, 2023

Look for the "bnd-baseline-maven-plugin" configuration, it must be in the core's pom.xml I think 

Esteban Bustamante

5 replies

kautuk_sahni
Employee
November 6, 2023

@vineetham123  Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Translate
Kautuk Sahni
EstebanBustamante
New Participant
November 1, 2023

Hi, 

 

This is most likely due to the BND baseline, please refer to this thread for a full explanation: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/the-bundle-version-change-2-1-0-to-2-1-1-is-too-low-the-new/td-p/543102

https://github.com/bndtools/bnd/issues/2859

 

To fix it you could either increase the version of the packages as the error suggests(https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/an-error-occurred-while-calculating-the-baseline-the-baselining/m-p/402179), or you could simply disable the BND baseline like below:

<plugin> <groupId>biz.aQute.bnd</groupId> <artifactId>bnd-baseline-maven-plugin</artifactId> <configuration> <failOnMissing>false</failOnMissing> <skip>true</skip> </configuration> </plugin>
Translate
Esteban Bustamante
Level 3
November 1, 2023

@estebanbustamante In which pom.xml do I need to add the plugin?

 

Thanks for the response anyway!

Translate
EstebanBustamante
EstebanBustamanteAccepted solution
New Participant
November 1, 2023

Look for the "bnd-baseline-maven-plugin" configuration, it must be in the core's pom.xml I think 

Translate
Esteban Bustamante