ensure archiva-cli is able to run

clean up the dependencies used and add some missing configuration form shade
This commit is contained in:
Brett Porter 2014-07-30 12:03:33 +10:00
parent 0f2467eb86
commit 732531ebef
3 changed files with 25 additions and 29 deletions

View File

@ -34,17 +34,16 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.archiva</groupId> <groupId>org.apache.archiva</groupId>
<artifactId>archiva-metadata-consumer</artifactId> <artifactId>archiva-repository-admin-api</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.archiva</groupId>
<artifactId>archiva-configuration</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.archiva</groupId> <groupId>org.apache.archiva</groupId>
<artifactId>archiva-consumer-api</artifactId> <artifactId>archiva-consumer-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.apache.archiva</groupId>
<artifactId>archiva-plexus-bridge</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.archiva</groupId> <groupId>org.apache.archiva</groupId>
<artifactId>archiva-converter</artifactId> <artifactId>archiva-converter</artifactId>
@ -59,48 +58,39 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-file</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.google.code.cli-parser</groupId> <groupId>com.google.code.cli-parser</groupId>
<artifactId>cli</artifactId> <artifactId>cli</artifactId>
<version>7</version> <version>7</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact-manager</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency> <dependency>
<groupId>commons-lang</groupId> <groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId> <artifactId>commons-lang</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId> <artifactId>spring-context</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.logging.log4j</groupId> <groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId> <artifactId>log4j-slf4j-impl</artifactId>
<scope>compile</scope>
</dependency> </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> <dependency>
<groupId>org.apache.logging.log4j</groupId> <groupId>org.apache.archiva</groupId>
<artifactId>log4j-1.2-api</artifactId> <artifactId>archiva-metadata-consumer</artifactId>
<scope>compile</scope> <scope>runtime</scope>
</dependency> </dependency>
-->
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>maven-shade-plugin</artifactId>
<version>1.2.2</version> <version>2.3</version>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <phase>package</phase>

View File

@ -21,12 +21,16 @@
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context 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"> default-lazy-init="true">
<!-- Note: must include util namespace above to accommodate MSHADE-175 -->
<context:annotation-config/> <context:annotation-config/>
<context:component-scan base-package="org.apache.archiva.cli"/> <context:component-scan base-package="org.apache.archiva.cli"/>

View File

@ -45,15 +45,17 @@
<artifactId>wagon-file</artifactId> <artifactId>wagon-file</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!-- currently these are runtime as it's declared in the spring context
file, but is it necessary? -->
<dependency> <dependency>
<groupId>org.apache.maven.wagon</groupId> <groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http-lightweight</artifactId> <artifactId>wagon-http-lightweight</artifactId>
<scope>test</scope> <scope>runtime</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.maven.wagon</groupId> <groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-http</artifactId> <artifactId>wagon-http</artifactId>
<scope>test</scope> <scope>runtime</scope>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>commons-logging</groupId> <groupId>commons-logging</groupId>