You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Julien HENRY (JIRA)" <ji...@codehaus.org> on 2008/04/02 06:32:58 UTC
[jira] Commented: (MNGSITE-44) Wrong informations in Guide to
Working with Manifests
[ http://jira.codehaus.org/browse/MNGSITE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129422#action_129422 ]
Julien HENRY commented on MNGSITE-44:
-------------------------------------
Looking at your sample project I understand my error.
I was using:
{code:xml}
<configuration>
<archive>
<manifestEntries>
<mainClass>
com.sample.Main
</mainClass>
</manifestEntries>
</archive>
</configuration>
{code}
instead of:
{code:xml}
<configuration>
<archive>
<manifest>
<mainClass>
com.sample.Main
</mainClass>
</manifest>
</archive>
</configuration>
{code}
So the userguide is correct. Sorry for the inconvenience.
> Wrong informations in Guide to Working with Manifests
> -----------------------------------------------------
>
> Key: MNGSITE-44
> URL: http://jira.codehaus.org/browse/MNGSITE-44
> Project: Maven 2 Project Web Site
> Issue Type: Bug
> Environment: Windows XP
> Jar plugin 2.2
> Reporter: Julien HENRY
> Assignee: Benjamin Bentmann
> Priority: Minor
> Attachments: MNGSITE-44.zip, test-jar.zip
>
>
> Hi,
> In the guide, it is said that you should add
> <manifest>
> <mainClass>com.mycompany.app.App</mainClass>
> ...
> to have your JAR running fine.
> But for me it was wrong. I had to add:
> <manifest>
> <Main-Class>com.mycompany.app.App</Main-Class>
--
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