Few days ago I was trying to use Spring Boot to implement some small project and I encounter strange problem. When running command
mvn eclipse:eclipse
I was getting this error:
[INFO] Unable to read jar manifest from C:\Users\Maciek\.m2\repository\org\springframework\boot\spring-boot-dependencies\1.1.1.RELEASE\spring-boot-dependencies-1.1.1.RELEASE.pom
My pom.xml was like this:
<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"> ... <dependencies> <dependency> <!-- Import dependency management from Spring Boot --> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>1.1.1.RELEASE</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </project>
I was a bit surprised, but after some googling I found out that it was my stupid mistake with copy/paste. On the Spring Boot Reference Guide it was:
<dependencyManagement> <dependencies> <dependency> <!-- Import dependency management from Spring Boot --> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>1.1.2.BUILD-SNAPSHOT</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>
Skipping dependencyManagement was root cause of error mentioned at the beginning.
Be aware of copy/paste failures!