[ http://jira.codehaus.org/browse/MASSEMBLY-160?page=all ]
Brett Porter closed MASSEMBLY-160.
----------------------------------
Resolution: Won't Fix
Fix Version/s: (was: 2.2)
not a bug.
If you run mvn assembly:assembly, you get this:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: brett
Build-Jdk: 1.5.0_06
Extension-Name: archiva-cli
Specification-Title: Archiva is an application for managing one or mor
e remote repositories, including
administration, artifact handling,
browsing and searching.
Specification-Vendor: Apache Software Foundation
Implementation-Vendor: Apache Software Foundation
Implementation-Title: archiva-cli
Implementation-Version: 1.0-SNAPSHOT
Main-Class: org.apache.maven.archiva.cli.Cli
I think you ran mvn package, which has nothing wired up, so produces the
non-assembled JAR.
If you want to wire up the assembly to the package phase, add an execution for
<goal>single</goal>
> Main-Class configuration is not honored and executable JARs cannot be created
> as a result
> -----------------------------------------------------------------------------------------
>
> Key: MASSEMBLY-160
> URL: http://jira.codehaus.org/browse/MASSEMBLY-160
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: Jason van Zyl
> Assigned To: John Casey
>
> Here's the example configuration:
> <build>
> <plugins>
> <plugin>
> <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>
> </plugins>
> </build>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira