Skip to main content
New Member
Feb 13, 2025 1:55 PM UTC
Solved

How to add sling pipes in the project

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.
ManviSharma
ManviSharmaAccepted solution
Adobe Employee
Feb 17, 2025 10:54 AM UTC

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
Feb 14, 2025 7:43 AM UTC

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.

 

Translate
Arun Patidar
ManviSharma
Adobe Employee
ManviSharmaAdobe EmployeeAccepted solution
Adobe Employee
Feb 17, 2025 10:54 AM UTC

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.

Translate
kautuk_sahni
Level 9
Feb 18, 2025 8:19 AM UTC

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

Translate
Kautuk Sahni
Level 2
Apr 28, 2025 4:24 PM UTC

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.

Translate