Add aemmjml capabilities to AEM project using pom | Community
Skip to main content
Level 2
July 28, 2021
Solved

Add aemmjml capabilities to AEM project using pom

  • July 28, 2021
  • 2 replies
  • 1074 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kishore_Kumar_

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

2 replies

Vijayalakshmi_S
Level 10
July 28, 2021

Hi @kgiribabu,

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

 

kgiribabuAuthor
Level 2
July 28, 2021
I tried that and still getting the same error.
Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
August 8, 2021

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