I am new to Maven and trying to set up one of my first POM s. My application will cache using EhCache. Go to Maven Central Repo (link here ) I copied -n-pasted the <dependency> and copied it into my pom.xml as follows:
...many dependencies above this point <dependency> <scope>compile</scope> <groupId>org.hibernate</groupId> <artifactId>hibernate-entitymanager</artifactId> <version>4.0.1.Final</version> </dependency> <dependency> <scope>compile</scope> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> <version>2.5.0</version> </dependency> <dependency> <scope>compile</scope> <groupId>jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>3.5.3</version> </dependency> ...many dependencies below this point
When I save the changes, Eclipse creates a workspace and gives me an error when opening the <dependency> for EhCache 2.5:
Missing artifact net.sf.ehcache: ehcache: jar: 2.5.0
So, I realized that maybe v.2.5.0 is something wrong with him, and repeated the same for 2.4.7 (the latest 2.4.x release before 2.5.0 ). The same deal.
Since I'm so new to Maven, I donβt even know where to start looking. I tried Project >> Clean and even restarted Eclipse to make sure that it was just a typical Eclipse quirk. Not.
I think:
- Can EhCache publish bad JAR files to Maven repository?
- Can Maven Repo have something wrong with him?
- Perhaps this is due to the fact that something else is not configured in my
pom.xml ? - Could this be a "JAR hell" problem where I have a conflict somewhere on my dependency graph?
How will SO begin to solve this problem? Thanks in advance!
source share