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

how to run submodule file from maven command line
Clone Gephi Toolkit from git to eclipse using EGit
CQ5 Multi OSGi Bundle Project
Reusing Eclipse Console Scroll Lock
How do I make Javadoc files show in Eclipse Package Explorer?
Where is the log updated for WAR file runs
Eclipse Kepler won't open on OS X 10.9.1
Save file in eclipse makes processor works hard
How to enable and disable items in the menu contribution?
Eclipse Keppler 64 on Ubuntu 12.04 Pydev Bookmark Menu disabled
Eclipse and qmake
TickLabels are missing in Jfreechart
Configuring PyDev auto completion in console
log file automatically created when open eclipse
Camel Blueprint test cases don't work
How do I revert all files to a previous commit using EGit?

Categories

HOME
algorithm
jpa
ng-idle
github-for-windows
jax-rs
mysql-workbench
mips
hugo
opengl-3
modal-dialog
accessibility
pattern-matching
watson-conversation
emoji
stellar.js
android-intent
intershop
feathersjs
asp.net-mvc-viewmodel
sar
imagemap
jquery-ias
string-concatenation
aggregation
syntax-highlighting
bulletphysics
angularjs-components
intersystems-cache
android-things
bioinformatics
boost-asio
google-cast
sql-server-2000
testbed
laravel-eloquent
mailkit
login-script
least-squares
processwire
node-mssql
filesystemwatcher
ods
odoo-website
naming
print-css
android-checkbox
importerror
clang++
configurationmanager
google-cse
corruption
pair-programming
context-switch
spring-data-couchbase
oracleclient
avx
visual-studio-2008-sp1
segment-io
resourcemanager
android-dateutils
angular-ui-typeahead
phpwebsocket
kendo-upload
grgit
lasso
jdk1.7
sql-server-data-tools
pyobjc
exceldatareader
at-job
ghcjs
sonarqube-5.0
webfinger
mdichild
rcaller
jquery-slider
memset
scriptaculous
nevron
node-blade
wp7test
superscrollorama
tree-balancing
monotouch.dialog
lambdaj
appjs
mapping-by-code
apache-commons-dbutils
procedures
htdocs
google-floodlight
strsep
w3c-geolocation
svk
commerceserver2007
rowlex
data-mapping
commercial-application

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