diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-11-09 07:41:59 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-11-09 07:41:59 +0100 |
commit | eb1c47ca843fc5ac23ab2e6d972811a8b215960b (patch) | |
tree | 61b240ea2932ec71ccea3e77d0d96e8f801f9b97 | |
parent | 21bd96ce470b1890abd87a9bc483328d0ddfda80 (diff) | |
download | sonarqube-eb1c47ca843fc5ac23ab2e6d972811a8b215960b.tar.gz sonarqube-eb1c47ca843fc5ac23ab2e6d972811a8b215960b.zip |
Log error when fail to deploy maven repository
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/mavendeployer/MavenRepository.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/mavendeployer/MavenRepository.java b/sonar-server/src/main/java/org/sonar/server/mavendeployer/MavenRepository.java index 6896f6d7a21..3d06e1c50d4 100644 --- a/sonar-server/src/main/java/org/sonar/server/mavendeployer/MavenRepository.java +++ b/sonar-server/src/main/java/org/sonar/server/mavendeployer/MavenRepository.java @@ -20,6 +20,7 @@ package org.sonar.server.mavendeployer; import org.apache.commons.io.FileUtils; +import org.slf4j.LoggerFactory; import org.sonar.api.config.Settings; import org.sonar.api.platform.Server; import org.sonar.server.platform.ServerSettings; @@ -54,7 +55,8 @@ public class MavenRepository { Artifact maven2Plugin = Mojo.createMaven2Plugin(serverId, installation.getMaven2Plugin()); maven2Plugin.deployTo(rootDir); - } catch (IOException e) { + } catch (Exception e) { + LoggerFactory.getLogger(getClass()).error("Fail to deploy Maven 2 plugin to: " + rootDir, e); throw new IllegalStateException("Fail to deploy Maven 2 plugin to: " + rootDir, e); } } |