]> source.dussan.org Git - archiva.git/commitdiff
fix some dependencies and back to surefire 2.12 as it break on webapp-it-js
authorOlivier Lamy <olamy@apache.org>
Sat, 4 Aug 2012 18:20:54 +0000 (18:20 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 4 Aug 2012 18:20:54 +0000 (18:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1369387 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/pom.xml
archiva-modules/archiva-web/archiva-webapp-js/src/main/java/org/apache/archiva/webapp/ui/services/api/DefaultFileUploadService.java
pom.xml

index e0020d81e9c1a9921e76086505032808168b1466..24c10118c8a71543f758cc02f823ef79dec79af6 100644 (file)
       <artifactId>archiva-repository-admin-api</artifactId>
     </dependency>
 
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-inject-plexus</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.sonatype.sisu</groupId>
+          <artifactId>sisu-guice</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+    <dependency>
+      <groupId>org.sonatype.sisu</groupId>
+      <artifactId>sisu-guice</artifactId>
+      <exclusions>
+        <exclusion>
+          <groupId>org.sonatype.sisu</groupId>
+          <artifactId>sisu-guava</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+
+    <dependency>
+      <groupId>com.google.guava</groupId>
+      <artifactId>guava</artifactId>
+    </dependency>
 
     <dependency>
       <groupId>org.apache.archiva</groupId>
index 4954ee336b7620b4af34086dca5fa147fcb16aa1..55cf09999a57b39c5d59a456122243d5ef8a1ac9 100644 (file)
@@ -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<FileMetadata>()
         {
-            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 d7b034017c2f9e7330881bc8af539301618ebe1d..702dc8bde34095ccc701a322901d7101257f3375 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
+          <version>2.12</version>
           <configuration>
             <redirectTestOutputToFile>${surefire.redirectTestOutputToFile}</redirectTestOutputToFile>
             <runOrder>alphabetical</runOrder>