From 148e9f13411112cd0b42da381b5acbbd54dbbcc9 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sat, 4 Aug 2012 18:20:54 +0000 Subject: [PATCH] fix some dependencies and back to surefire 2.12 as it break on webapp-it-js git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1369387 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-web/archiva-webapp-js/pom.xml | 25 +++++++++++++++++++ .../api/DefaultFileUploadService.java | 4 +-- pom.xml | 1 + 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml index e0020d81e..24c10118c 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-js/pom.xml @@ -78,6 +78,31 @@ archiva-repository-admin-api + + org.sonatype.sisu + sisu-inject-plexus + + + org.sonatype.sisu + sisu-guice + + + + + org.sonatype.sisu + sisu-guice + + + org.sonatype.sisu + sisu-guava + + + + + + com.google.guava + guava + org.apache.archiva diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java b/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java index 4954ee336..55cf09999 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java @@ -60,7 +60,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; -import javax.annotation.Nullable; + import javax.inject.Inject; import javax.inject.Named; import javax.servlet.http.HttpServletRequest; @@ -240,7 +240,7 @@ public class DefaultFileUploadService filesToAdd = Iterables.filter( fileMetadatas, new Predicate() { - public boolean apply( @Nullable FileMetadata fileMetadata ) + public boolean apply( FileMetadata fileMetadata ) { return fileMetadata != null && fileMetadata.isPomFile(); } diff --git a/pom.xml b/pom.xml index d7b034017..702dc8bde 100644 --- a/pom.xml +++ b/pom.xml @@ -1771,6 +1771,7 @@ org.apache.maven.plugins maven-surefire-plugin + 2.12 ${surefire.redirectTestOutputToFile} alphabetical -- 2.39.5