Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Adding aws-java-sdk-osgi jar inside "install" folder of crx-quickstart of dev server while deployment

Avatar

Level 1

Hi,

I want aws-java-sdk-osgi jar file to be included inside the "install" folder dev environment during the deployment. In order to test and add objects to Amazon S3 bucket, I included the necessary files inside the "install" folder of local machine. But I want all the required files to be inside the "install" folder while deployment. Please let me know, how can I do that?

Please help.

Thanks in advance.

Shambhu

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

If this jar is for S3 datastore,  this should be placed by your IaC (infrastructure as Code) or configuration management system as this is needed for the base vanilla AEM instance to work. You should place it inside /install/15/ folder along with other jars like oak-blob-cloud. Only the configurations needs to be present in /install/ folder. 

 

If the jar is for your application, then it can be placed in /apps/<app-name>/install folder which will be picked up by AEM.

 

If this is for any functionality in your application, you should add its a maven dependency in your POM.xml

 

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi,

If this jar is for S3 datastore,  this should be placed by your IaC (infrastructure as Code) or configuration management system as this is needed for the base vanilla AEM instance to work. You should place it inside /install/15/ folder along with other jars like oak-blob-cloud. Only the configurations needs to be present in /install/ folder. 

 

If the jar is for your application, then it can be placed in /apps/<app-name>/install folder which will be picked up by AEM.

 

If this is for any functionality in your application, you should add its a maven dependency in your POM.xml

 

Avatar

Level 2

Not following your issue. How do you want AEM to interact with S3?  Sounds like you want an AEM Service to put objects into an S3 bucket. You state:

 

" add objects to Amazon S3 bucket"

 

If that is the case, why are you worrying about install folders? You should be looking at how to use the Amazon Java S3 API to interact with S3 from an OSGi service.