Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
* Fixed check connection error message (was MalformedURLException)
Browse files Browse the repository at this point in the history
* Fixed log message level
* Fixed vendor information
  • Loading branch information
bitionaire committed Aug 16, 2016
1 parent 3180ebd commit 9801b60
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.oneandone</groupId>
<artifactId>go-maven-poller</artifactId>
<version>1.1.2</version>
<version>1.1.3</version>

<url>https://github.com/1and1/go-maven-poller</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public PackageRevisionMessage latestModificationSince(final PackageMaterialPrope
public CheckConnectionResultMessage checkConnectionToRepository(final PackageMaterialProperties repoConfig) {
try {
final MavenRepoConfig mavenRepoConfig = new MavenRepoConfig(repoConfig);

if (mavenRepoConfig.isRepoUrlMissing()) {
return new CheckConnectionResultMessage(CheckConnectionResultMessage.STATUS.FAILURE, "Repo URL missing");
}

if (!new RepositoryConnector(mavenRepoConfig).testConnection()) {
return new CheckConnectionResultMessage(CheckConnectionResultMessage.STATUS.FAILURE, "Did not get HTTP Status 200 response");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public MavenRevision getLatest() {
latest.setLastModified(lastUpdatedTimestamp.or(new Date()));
setLocationAndTrackBack(latest);
} else {
LOGGER.error("getLatest returning null");
LOGGER.debug("getLatest returning null");
}
return latest;

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<target-go-version>16.3</target-go-version>
<description>Polls a Maven repository by maven-metadata.xml</description>
<vendor>
<name>1und1 Internet AG</name>
<name>1&amp;1 Internet SE</name>
<url>https://github.com/1and1/go-maven-poller</url>
</vendor>
</about>
Expand Down

0 comments on commit 9801b60

Please sign in to comment.