Table of Contents |
---|
Get the Magnolia S3 Connector:
Code Block <dependency> <groupId>info.magnolia.amazon</groupId> <artifactId>amazon-s3-connector-module</artifactId> <version>1.2.1</version> </dependency> <dependency> <groupId>info.magnolia.dam</groupId> <artifactId>magnolia-dam-external-app</artifactId> <version>2.3.2</version> </dependency>
Get the code:
Code Block git clone https://github.com/elohmrow/s3.git
Build the code:
Code Block ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules\-> cd s3/action/ ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\-> mvn clean install
Find the resultant jar file:
Code Block ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\-> ff .jar ... running [find . "*.jar*" 2>/dev/null] ./target/action-1.0-SNAPSHOT.jar ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\->
Move the jar file to your WEB-INF/lib and restart Magnolia to install the custom action. For example:
Code Block ~/Desktop/REWE/__DAY__TWO__/daytwo/light_modules/s3/action (master)\-> mv target/action-1.0-SNAPSHOT.jar ~/Desktop/REWE/__DAY__TWO__/daytwo/daytwo-webapp/target/daytwo-webapp-1.0-SNAPSHOT/WEB-INF/lib/
- Add your Amazon access key and secret access key in
/modules/amazon-s3-connector-module/config
Upload an Asset the normal way, then log in to S3 Console to see if it is there (and/or refresh the S3 app within Magnolia)
Page Turner | ||
---|---|---|
|