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

shambhu

30-03-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Nirmal_Jose

MVP

30-03-2020

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

 

Answers (1)

Answers (1)

zonroc

02-04-2020

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.