How to add sling pipes in the project | Community
Skip to main content
February 13, 2025
Solved

How to add sling pipes in the project

  • February 13, 2025
  • 4 replies
  • 885 views

Hi AEM Community,

 

II'm looking for insights on adding Sling Pipes in the project using pom.xml in AEM Cloud.

 

Added below dependencies in all/pom.xml,  tenant/pom.xml and root/pom.xml

<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.pipes</artifactId>
<version>4.5.0</version>
</dependency>
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.query</artifactId>
<version>4.0.4</version>
</dependency>

Added below com.adobe.dx in tentant.pom and root.pom

 

<dependency>
<groupId>com.adobe.dx</groupId>
<artifactId>content</artifactId>
<version>0.0.10</version>
</dependency>

 

Installed script by manually downloading(since not downloading via pom) adobe-dx/apps/scripts/pipe and executing mvn clean install.

Getting forbidden when accessing http://localhost:4502/apps/dx/scripts/exec.json/ .

 

Please share your strategies and experiences in this area!

 

 

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 ManviSharma

Hi,

 

The "forbidden" access error when trying to access http://localhost:4502/apps/dx/scripts/exec.json/ typically suggests a permissions issue.
- Also, If the script is not downloading via pom.xml, it might be due to the package not being available in the configured Maven repositories.

4 replies

arunpatidar
Community Advisor
Community Advisor
February 14, 2025

Hi @venkateshka6 

Since you are accessing Author instance, You need to login 

Sling pipes : check https://sling.apache.org/documentation/bundles/sling-pipes.html 

for sling query check - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-sling-query-comprehensive-guide-aem-community-blog-seeding/m-p/374152 

 

You may need to install Sling pipes and sling query bundle in AEM as well.

 

Arun Patidar
ManviSharma
Adobe Employee
ManviSharmaAdobe EmployeeAccepted solution
Adobe Employee
February 17, 2025

Hi,

 

The "forbidden" access error when trying to access http://localhost:4502/apps/dx/scripts/exec.json/ typically suggests a permissions issue.
- Also, If the script is not downloading via pom.xml, it might be due to the package not being available in the configured Maven repositories.

kautuk_sahni
Community Manager
Community Manager
February 18, 2025

@venkateshka6 Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
Level 2
April 28, 2025

Just in case anyone else is like me and didn't find the "correct answer" useful, particularly if you've upgraded from Sling Pipes 3.x to 4.x

The forbidden access occurs because you need to create a node at :

/system/sling/permissions/pipes/exec

Permissions can then be set on that node to control who can run the pipes.

This isn't mentioned in the Apache documentation, but is referenced in these presentations:
https://www.slideshare.net/slideshow/sling-pipes/244540797#7
https://adapt.to/2020/presentations/adaptto2020-lightningtalk-sling-pipes-4-0-0-update-nicolas-peltier.pdf

You'll also see that the DX Content package for Scripts adds a folder there if you dig into the code or look at what the package installs.