/
JAR Configuration to use Amazon SDK Libraries

JAR Configuration to use Amazon SDK Libraries

Step 1. Download the JAR file from Here

Step 2. Once it is download, move it to the Project folder and inside “src” create a directory inside it with hierarchy “src/lib/AmazonYojaka-1.0.jar“

Step 3. Now once Step 2 is done, Open the Project in Eclipse and Right-click on the Project>Select Build Path>Select Libraries>Select Add External JARs>Select the AmazonYojaka-1.0.jar as shown below:

Step 4. Add the following dependency in pom.xml

Outside <dependencies>

<dependencyManagement> <dependencies> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>bom</artifactId> <version>2.16.8</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>

Inside <dependencies>

<dependency> <groupId>com.amazon.yojaka</groupId> <artifactId>AmazonYojaka</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>aws-sdk-java</artifactId> <version>2.16.8</version> </dependency> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk</artifactId> <version>1.11.964</version> </dependency> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-opensdk</artifactId> <version>1.11.964</version> </dependency> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-kms</artifactId> <version>1.11.964</version> </dependency> <!-- https://mvnrepository.com/artifact/commons-net/commons-net -->

Step 5. After Importing the External JARs, Clean the Project and Update the Maven by Right-Clicking on the Project

Step 6. Now run the following command in the Project Folder

mvn install:install-file -Dfile=src/lib/AmazonYojaka-1.0.jar -DgroupId=com.amazon -DartifactId=AmazonYojaka -Dversion=1.0 -Dpackaging=jar

After running the above command, there should be an entry of AmazonYojaka-1.0.jar file in the following directory

C:\Users\pk997\.m2\repository\com\amazon\AmazonYojaka\1.0

Step 6. Once the above command runs successfully, try to access the AmazonYojaka library

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Related content