Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Add aemmjml capabilities to AEM project using pom

kgiribabu
Level 2
Level 2

I am working on adding AEMMJML (https://github.com/Netcentric/aemmjml) capabilities to my aem project. I was able to add it using package install but our team looking towards adding them as dependencies to the project. I added appropriate pom entries but the  'aemmjml-foundation' needs node js dependency and I am not able resolve that issue.

 

Here is the pom entry which I have added to my project pom file :

 <dependency>
<groupId>biz.netcentric.cq.tools.aemmjml</groupId>
<artifactId>aemmjml-foundation-package</artifactId>
<version>0.1.0</version>
<type>zip</type>
</dependency>

 

I got below error while running mvn clean install:

 

 Failed to execute goal on project jackson-campaign.core: Could not resolve dependencies for project com.jackson:jackson-campaign.core:bundle:2.2.2-SNAPSHOT: The following artifacts could not be resolved: org.nodejs.dist:nodejs-binaries:zip:win-x64:12.16.3, org.nodejs.dist:nodejs-binaries:tar.gz:darwin-x64:12.16.3, org.nodejs.dist:nodejs-binaries:tar.gz:linux-x64:12.16.3: Failure to find org.nodejs.dist:nodejs-binaries:zip:win-x64:12.16.3 in https://artifactorytest.jacksonnational.com/artifactory/maven-release-virtual was cached in the local repository, resolution will not be reattempted until the update interval of maven-release has elapsed or updates are forced -> [Help 1] 

 

 

 

Any help on this is greatly appreciated. 

1 Accepted Solution
kishorekumar14
Correct answer by
Level 8
Level 8

Hi @kgiribabu ,

 

Can you please check prerequisite mentioned in the read me of aemmjml.

https://github.com/Netcentric/aemmjml/blob/develop/doc/build-and-development.md 

 

"In order to build and package AEM MJML you need to provide a maven repository hosting the nodejs artifacts, which are packaged together with the implementation. We recommend to use Maven NodeJS Proxy for this but please follow the instructions outlined in the repository and never use it without having a caching proxy in front of it. If you are using Nexus user, you can simply create a proxy repository of the aforementioned."

View solution in original post

3 Replies
Vijayalakshmi_S
Community Advisor
Community Advisor

Hi @kgiribabu,

Can you try build using  "mvn -U clean install"

 

kishorekumar14
Correct answer by
Level 8
Level 8

Hi @kgiribabu ,

 

Can you please check prerequisite mentioned in the read me of aemmjml.

https://github.com/Netcentric/aemmjml/blob/develop/doc/build-and-development.md 

 

"In order to build and package AEM MJML you need to provide a maven repository hosting the nodejs artifacts, which are packaged together with the implementation. We recommend to use Maven NodeJS Proxy for this but please follow the instructions outlined in the repository and never use it without having a caching proxy in front of it. If you are using Nexus user, you can simply create a proxy repository of the aforementioned."

View solution in original post