fix build errors

- ensure correct version of plexus container is used
- remove custom manifest, generate with configuration. Ant tasks were not working OOTB


git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@471809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-11-06 18:40:17 +00:00
parent 346a46678c
commit ec4a395f41
2 changed files with 9 additions and 26 deletions

View File

@ -16,6 +16,10 @@
<artifactId>classworlds</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
@ -53,30 +57,13 @@
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptor>src/main/assembly/archiva-cli-assembly.xml</descriptor>
<archive>
<manifest>
<mainClass>org.apache.maven.archiva.cli.Cli</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<!-- This needs to run here as it can't run in the package phase
because the directory assembly needs to be made first. Total hack, but works.-->
<phase>integration-test</phase>
<configuration>
<sourceRoot>target/generated/src/main/java</sourceRoot>
<tasks>
<jar destfile="${basedir}/target/archiva-cli-1.0-SNAPSHOT-cli.jar"
basedir="${basedir}/target/archiva-cli-1.0-SNAPSHOT-cli"
manifest="${basedir}/src/main/resources/META-INF/MANIFEST.MF"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,4 +0,0 @@
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: 1.4.2-66 ("Apple Computer, Inc.")
Main-Class: org.apache.maven.archiva.cli.Cli