diff --git a/src/main/java/com/oneandone/go/plugin/maven/MavenRepositoryPoller.java b/src/main/java/com/oneandone/go/plugin/maven/MavenRepositoryPoller.java index 7aa1fcc2..deb2a8c4 100644 --- a/src/main/java/com/oneandone/go/plugin/maven/MavenRepositoryPoller.java +++ b/src/main/java/com/oneandone/go/plugin/maven/MavenRepositoryPoller.java @@ -69,6 +69,7 @@ public PackageRevisionMessage latestModificationSince(final PackageMaterialPrope LOGGER.info(String.format("no modification since %s", previouslyKnownRevision.getRevision())); return null; } + LOGGER.info("latest revision is " + updatedPackage.getRevision()); if (updatedPackage.getTimestamp().getTime() < previouslyKnownRevision.getTimestamp().getTime()) LOGGER.warn(String.format("Updated Package %s published earlier (%s) than previous (%s, %s)", @@ -150,7 +151,7 @@ private void validateConfig(final PackageMaterialProperties repoConfig, final Pa private PackageRevisionMessage poll(final MavenRepoConfig repoConfig, final MavenPackageConfig packageConfig) { final MavenRevision latest = new RepositoryClient(repoConfig, packageConfig).getLatest(); if (latest == null) { - return new PackageRevisionMessage(); + return null; } return latest.toPackageRevision(); }