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/03/30 17:54:58 UTC

[jira] Created: (MNGSITE-44) Wrong informations in Guide to Working with Manifests

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
            Priority: Minor


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

        

[jira] Issue Comment Edited: (MNGSITE-44) Wrong informations in Guide to Working with Manifests

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNGSITE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=129355#action_129355 ] 

bentmann edited comment on MNGSITE-44 at 4/1/08 3:15 PM:
------------------------------------------------------------------

I just tried it with Maven 2.0.8 and couldn't find a problem with the guide, {{mainClass}} is working, see the attached mini project. Besides, the method {{AbstractConfigurationConverter.fromXML()}} that gets called by Plexus when pushing your configuration into the mojo will just convert "Main-Class" to "mainClass" so you could have specified this in the first place, too.



      was (Author: bentmann):
    I just tried it with Maven 2.0.8 and couldn't find a problem with the guide, {{mainClass}} is working, see the attached mini project. Besides, the method {{AbstractConfigurationConverter.fromXML()}} that gets called by Plexus when pushing your configuration into the mojo will just convert "Main-Class" to "mainClass" so you could have specified this in the first place, too.

Maybe you had a typo somewhere. If the problem persists, please attach a demo project to demonstrate this.


  
> 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
>            Priority: Minor
>         Attachments: MNGSITE-44.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

        

[jira] Closed: (MNGSITE-44) Wrong informations in Guide to Working with Manifests

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNGSITE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNGSITE-44.
------------------------------------

      Assignee: Benjamin Bentmann
    Resolution: Cannot Reproduce

Maybe you had a typo somewhere. If the problem persists, please re-open the issue and attach a demo project to demonstrate this.

> 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
>
>
> 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

        

[jira] Updated: (MNGSITE-44) Wrong informations in Guide to Working with Manifests

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNGSITE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNGSITE-44:
-------------------------------------

    Attachment: MNGSITE-44.zip

I just tried it with Maven 2.0.8 and couldn't find a problem with the guide, {{mainClass}} is working, see the attached mini project. Besides, the method {{AbstractConfigurationConverter.fromXML()}} that gets called by Plexus when pushing your configuration into the mojo will just convert "Main-Class" to "mainClass" so you could have specified this in the first place, too.

Maybe you had a typo somewhere. If the problem persists, please attach a demo project to demonstrate this.



> 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
>            Priority: Minor
>         Attachments: MNGSITE-44.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

        

[jira] Commented: (MNGSITE-44) Wrong informations in Guide to Working with Manifests

Posted by "Julien HENRY (JIRA)" <ji...@codehaus.org>.
    [ 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

        

[jira] Updated: (MNGSITE-44) Wrong informations in Guide to Working with Manifests

Posted by "Julien HENRY (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNGSITE-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julien HENRY updated MNGSITE-44:
--------------------------------

    Attachment: test-jar.zip

A test project to reproduce the problem.

> 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