Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

shambhu
Level 1
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
Nirmal_Jose
Correct answer by
Community Advisor
Community 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

0 Replies
Nirmal_Jose
Correct answer by
Community Advisor
Community 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

zonroc
Level 2
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.