Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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]

Avatar

Level 3

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] ------------------------------------------------------------------------

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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



Esteban Bustamante

View solution in original post

5 Replies

Avatar

Community Advisor

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-...

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-ca...), 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>


Esteban Bustamante

Avatar

Level 3

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

 

Thanks for the response anyway!

Avatar

Correct answer by
Community Advisor

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



Esteban Bustamante

Avatar

Administrator

@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.



Kautuk Sahni