You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2006/11/16 16:52:31 UTC
[jira] Created: (MASSEMBLY-160) Main-Class configuration is not
honored and executable JARs cannot be created as a result
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
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
[jira] Closed: (MASSEMBLY-160) Main-Class configuration is not
honored and executable JARs cannot be created as a result
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Updated: (MASSEMBLY-160) Main-Class configuration is not
honored and executable JARs cannot be created as a result
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MASSEMBLY-160?page=all ]
John Casey updated MASSEMBLY-160:
---------------------------------
Assignee: John Casey
Fix Version/s: 2.2
> 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
> Fix For: 2.2
>
>
> 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