I just started to use m2e to try to build the sample travellog elastic beanstalk project. On the console I’m getting “[ERROR] Project read error”.
This also appears in red on the “Dependency Hierarchy” tab.
What does this mean and how do I find out more details?
Edit: Adding 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>BeanstalkTest</groupId>
<artifactId>BeanstalkTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<dependencies>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-java-sdk</artifactId>
<version>[1.0.007,)</version>
</dependency>
</dependencies>
</project>
Ok. So I think I figured it out.
In workspace\.metadata there are log files, e.g. .log mine has this entry:
You can look in:
Workspace\.metadata\.plugins\org.eclipse.m2e.logback.configuration
to find the log files for m2e, e.g., 0.log
These are pretty detailed and useful. Anyway, my log file has this entry:
So, it appears that there is a problem with the definition for the aws-java-sdk dependencies. It specifies that the jackson-mapper-asl can be of version [1.8.) which appears to be invalid syntax.
If I modify the pom.xml to exclude that dependency it becomes:
and this does not produce the “Project Read Error”. So, basically two things:
Thanks Luca.