aws-toolkit-eclipse icon indicating copy to clipboard operation
aws-toolkit-eclipse copied to clipboard

Toolkit should be able to upload maven generated jar

Open yunus opened this issue 6 years ago • 3 comments

When I want to upload a Lambda function via Eclipse AWS toolkit, the outcome becomes different than maven created jar. I place the log4j.properties file under sr/main/resources and only if I use “mvn package”, Lambda runtime picks it. If I use Eclipse toolkit, log4j.properties remains under Resources folder and lambda runtime is not able to find it. Is there a way to order eclipse toolkit only upload maven generated Jar?

yunus avatar Aug 29 '17 06:08 yunus

+1

ksclarke avatar Jan 22 '18 00:01 ksclarke

+1 Generally, the package created by the Eclipse plugin seems to consider the settings from pom.xml, but is one directoy level off. Because of the problem mentioned above, I put log4j2.xml into /src/main/java and added

<resource>
    <directory>${basedir}/src/main/java</directory>
    <includes>
        <include>log4j2.xml</include>
    </includes>
</resource>

to pom.xml, which resulted in log4j2.xml being copied to the /java-subdirectory in the Lambda package

tvand avatar Nov 27 '18 13:11 tvand

+1. It uploads a zip file and makes it difficult to debug between local and lambda runtime.

mynameisgv avatar May 05 '19 01:05 mynameisgv