[ 
https://jira.codehaus.org/browse/MACR-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282637#comment-282637
 ] 

Dennis Lundberg commented on MACR-3:
------------------------------------

After following the link there is a menu option called "Set Up The Classpath" 
which takes you to 
http://maven.apache.org/shared/maven-archiver/examples/classpath.html

On that page there is a section called "Make The Jar Executable" which explains 
how to specify a Main-Class.

These docs (at http://maven.apache.org/shared/maven-archiver/) are shared by 
all archiving plugins, and includes functionality that is common for all of 
them.

If there is more specific documentation that applies only to a specific plugin, 
then it should be located in that plugin. I.e. the suggestion to instruct user 
to add manifest and Main-Class because the JEE spec requires it, should be in 
on the ACR Plugin site.

> Maven site should has an example with adding Main Class
> -------------------------------------------------------
>
>                 Key: MACR-3
>                 URL: https://jira.codehaus.org/browse/MACR-3
>             Project: Maven ACR Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.0
>            Reporter: Gustavo Orair
>
> Maven ACR plugin should confirm if the resulting Manifest contain a setting 
> for Main-Class, because The Java EE spec requires that app clients specify 
> the main class 
> (http://www.java.net/forum/topic/glassfish/glassfish/problems-using-java-web-start-application-client-libraries-not-found).
> If Manifest does not contain Main-Class a warning should be emitted.
> Also, It would be very valuable if some examples specifying Main-Class are 
> added to the site http://maven.apache.org/plugins/maven-acr-plugin/.
> In actual configuration, users tend to create application clients without 
> Main-Class and may get strange errors while trying to launch the application 
> client. One example of these errors, may be accessed in:
> http://www.java.net/forum/topic/glassfish/glassfish/problems-using-java-web-start-application-client-libraries-not-found

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to