Tuesday, November 9, 2021

Create a Lambda Function with a custom JAR

 

To add the local jar to local maven,  you  can use this command:

mvn install:install-file -Dfile="C:/Users/NROLL97/Main.jar" -DgroupId=keydoxWeb -DartifactId=keydoxWebCodec -Dversion=1.0 -Dpackaging=jar

 

Then added it as a dependency like this:

 <dependency>

    <groupId>keydoxWeb</groupId>

    <artifactId>keydoxWebCodec</artifactId>

    <version>1.0</version>

  </dependency>

And then it worked!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Deploying a Java web application to Amazon ECS

 You can deploy a Java web application that uses the AWS SDK for Java (v2) to Amazon Elastic Container Service (Amazon ECS). Amazon ECS is a...