Saturday, June 14, 2014

java.lang.IllegalArgumentException while importing guava sources into Eclipse

Today I encountered a problem with importing guava sources into Eclipse.

Steps to reproduce:

0. Checkout guava sources
1. Import project into Eclipse as "Existing Maven Projects"


The problem is related to guava module. I noticed that guava/pom.xml uses "bundle" packaging type but it seems that Eclipse doesn't understand it.

A quick solution:

1. Comment out "<packaging>bundle</packaging>" line in guava/pom.xml
2. Update project (in Eclipse: right click on the module > Maven > Update project)

No comments:

Post a Comment