eclipse


eclipse aws lamba new project error


Every time I create a new AWS Lambda Java Project in Eclipse using this guide I get the following compilation error.
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
public class MyHandler implements RequestHandler<Object, Object> {
#Override
public Object handleRequest(Object input, Context context) {
context.getLogger().log("Input: " + input);
// TODO: implement your handler
return null;
}
}
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.myproject</groupId>
<artifactId>myfirstlambda</artifactId>
<version>4.0.0</version>
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-core</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-events</artifactId>
<version>1.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>1.11.127</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
I have other projects that were previously created by my colleague and they seem to have the exact same structure and they work absolutely fine on my eclipse. They also work when I have tried matching the dependencies between the two projects and everything is the exact same.
More than that, I would like to believe that something that comes out of a template should not have compilation errors.
What am I doing wrong?

Related Links

Eclipse project dependencies
How to open a closed diagram in Papyrus
The path x is already mapped in workspace x. git tf checkin having Eclipse TFS path mapped
Log4j2 in Eclipse and Maven - need to have different config files
Where to find STS.ini file?
Tomcat run-java.lang.ClassCastException: org.apache.jasper.servlet.JspServlet cannot be cast to javax.servlet.Servlet
How to edit eclipse.ini to prepend existing java.library.path
java.lang.ClassNotFoundException: com.ebank.rajeev.controllers.Alogin
Create an Eclipse Template for Custom Indentation for Maps
Eclipse MARS - Cannot install Android ADT Plugin
Search spelling mistakes in Eclipse?
Accessing an earlier release?
Use the eclipse hibernate tool with hibernate spatial library
Import soapui tests to eclipse
Create a persistent class in eclipse for abap
Running the Eclipse Java formatter on the command line with eclipse 4.4

Categories

HOME
go
google-cloud-platform
jmeter
toolbox
interface
jwplayer
cakephp-3.4
vxml
mvc5
special-characters
okhttp
pattern-matching
mql5
minecraft-forge
mxgraph
ipmitool
magnetic-cards
symbol
foreign-keys
poedit
kendo-mobile
ksh
ember-cli
roslyn
monit
displaytag
data.stackexchange.com
fable-f#
nstimer
fractions
exchangewebservices
alm
spring-security4
wacom
login-script
python-import
swagger-php
google-knowledge-graph
lint
imagenet
connection-pool
linq-to-objects
mcustomscrollbar
portforwarding
escpos
placeholder
importerror
flask-login
arq
custom-font
spring-data-couchbase
ngmaterial
cup
otp
bbpress
renaming
branch-prediction
pytables
builtins
redbeard-ios
preprocessor
flex4.6
burrows-wheeler-transform
android-dateutils
jtwig
google-query-language
kango-framework
dbamp
yajsw
ess
doctype
gamekit
delayed-execution
theos
cosine-similarity
spy++
webfinger
ignite-ui
grails-domain-class
file-not-found
cfcache
ebay-lms
scringo
cardreader
cascadingdropdown
apache-abdera
preload
tree-balancing
wcf-configuration
failing-tests
koken
filemerge
winmain
exponentiation
dataform
nhprof
qglwidget
ruby-1.8
addchild
tabpanel
qtabbar
duplex
murmurhash
spread
interop-domino

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App