aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/gentoo/java/ebuilder/maven/MavenCache.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/gentoo/java/ebuilder/maven/MavenCache.java b/src/main/java/org/gentoo/java/ebuilder/maven/MavenCache.java
index 19e40f9..45ff1d9 100644
--- a/src/main/java/org/gentoo/java/ebuilder/maven/MavenCache.java
+++ b/src/main/java/org/gentoo/java/ebuilder/maven/MavenCache.java
@@ -57,7 +57,7 @@ public class MavenCache {
for (final CacheItem curCacheItem : versions) {
if (curCacheItem.getParsedMavenVersion().compareTo(mavenVersion)
- <= 0) {
+ >= 0) {
cacheItem = curCacheItem;
break;
@@ -65,7 +65,7 @@ public class MavenCache {
}
if (cacheItem == null) {
- cacheItem = versions.get(versions.size() - 1);
+ return "!!!suitble-avenVersion-not-found!!!";
}
final StringBuilder sbDependency = new StringBuilder(50);