]> source.dussan.org Git - archiva.git/commitdiff
ensure archiva-cli is able to run
authorBrett Porter <brett@apache.org>
Wed, 30 Jul 2014 02:03:33 +0000 (12:03 +1000)
committerBrett Porter <brett@apache.org>
Wed, 30 Jul 2014 02:05:02 +0000 (12:05 +1000)
clean up the dependencies used and add some missing configuration form shade

archiva-cli/pom.xml
archiva-cli/src/main/resources/META-INF/spring-context.xml
archiva-modules/archiva-base/archiva-proxy-common/pom.xml

index dd603b8ae0d81e845fc57cfa66519586a2418b09..f47154902703fee5039e75d7cc7f8b81873e2abe 100644 (file)
     </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
-      <artifactId>archiva-metadata-consumer</artifactId>
-      <scope>runtime</scope>
+      <artifactId>archiva-repository-admin-api</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
-      <artifactId>archiva-configuration</artifactId>
+      <artifactId>archiva-consumer-api</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
-      <artifactId>archiva-consumer-api</artifactId>
+      <artifactId>archiva-plexus-bridge</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.archiva</groupId>
         </exclusion>
       </exclusions>
     </dependency>
-    <dependency>
-      <groupId>org.apache.maven.wagon</groupId>
-      <artifactId>wagon-file</artifactId>
-    </dependency>
     <dependency>
       <groupId>com.google.code.cli-parser</groupId>
       <artifactId>cli</artifactId>
       <version>7</version>
     </dependency>
-    <dependency>
-      <groupId>org.apache.maven</groupId>
-      <artifactId>maven-artifact-manager</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>commons-io</groupId>
-      <artifactId>commons-io</artifactId>
-    </dependency>
     <dependency>
       <groupId>commons-lang</groupId>
       <artifactId>commons-lang</artifactId>
     </dependency>
     <dependency>
       <groupId>org.springframework</groupId>
-      <artifactId>spring-beans</artifactId>
+      <artifactId>spring-context</artifactId>
     </dependency>
     <dependency>
       <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-jcl</artifactId>
-      <scope>compile</scope>
+      <artifactId>log4j-slf4j-impl</artifactId>
     </dependency>
+    <!-- Consumers to include -->
+    <!--
+    This will require some additional configuration now to point to an appropriate metadata repository storage, which is not in the CLI yet
     <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-1.2-api</artifactId>
-      <scope>compile</scope>
+      <groupId>org.apache.archiva</groupId>
+      <artifactId>archiva-metadata-consumer</artifactId>
+      <scope>runtime</scope>
     </dependency>
+    -->
   </dependencies>
   <build>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-shade-plugin</artifactId>
-        <version>1.2.2</version>
+        <version>2.3</version>
         <executions>
           <execution>
             <phase>package</phase>
index 02898785524bcce213ac89dac4046788f3cddb08..b40e3851a29a74da33c8989963ecb230d5ec19e8 100644 (file)
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:context="http://www.springframework.org/schema/context"
+       xmlns:util="http://www.springframework.org/schema/util"
        xsi:schemaLocation="http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
            http://www.springframework.org/schema/context 
-           http://www.springframework.org/schema/context/spring-context-3.0.xsd"
+           http://www.springframework.org/schema/context/spring-context-3.0.xsd
+           http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
        default-lazy-init="true">
 
+  <!-- Note: must include util namespace above to accommodate MSHADE-175 -->
+
   <context:annotation-config/>
   <context:component-scan base-package="org.apache.archiva.cli"/>
 
-</beans>
\ No newline at end of file
+</beans>
index 002fa8d5879f99a1bcfbbf1f8d39c02f89fd4442..9ac06824c3614e3d1f474c320ad1b12ee67cd79a 100644 (file)
       <artifactId>wagon-file</artifactId>
       <scope>test</scope>
     </dependency>
+    <!-- currently these are runtime as it's declared in the spring context
+         file, but is it necessary? -->
     <dependency>
       <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-http-lightweight</artifactId>
-      <scope>test</scope>
+      <scope>runtime</scope>
     </dependency>
     <dependency>
       <groupId>org.apache.maven.wagon</groupId>
       <artifactId>wagon-http</artifactId>
-      <scope>test</scope>
+      <scope>runtime</scope>
       <exclusions>
         <exclusion>
           <groupId>commons-logging</groupId>