Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mdarr
Post subject: How do I create a manifest file for the Maven build?  PostPosted: Sep 05, 2008 - 09:35 PM



Joined: Jan 14, 2008
Posts: 5

Having got past on hurdle I'm on to the next one.
How do I get Maven to create a manifest file for the JAR?
From the Maven site it looks like there are lots of parameters within maven but I can't find a way to set them in MyEclipse.

The Java Jar Export is failing and I don't want to solve that problem in order to get this one fixed.

TIA,
Maurice
 
 View user's profile Send private message  
Reply with quote Back to top
support-eugene
Post subject: RE: How do I create a manifest file for the Maven build?  PostPosted: Sep 08, 2008 - 12:39 PM
Moderator
Moderator


Joined: May 12, 2005
Posts: 270

Can you provide the messages from failed jar export? I do not understand the problems you are describing.

I found this useful - http://maven.apache.org/shared/maven-archiver/examples/manifest.html I tried some examples and they seem to work fine with MyEclipse.

_________________
Eugene
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mdarr
Post subject: RE: How do I create a manifest file for the Maven build?  PostPosted: Sep 09, 2008 - 02:48 AM



Joined: Jan 14, 2008
Posts: 5

Actually there are no errors per se in the Maven build. I simply cannot find out how to tell Maven to create a manifest with a main class nor include a manually prepared manifest. The entries in the POM described by your documentation don't seem to be allowed in MyEclipse 6.5. At least the POM is flagged as invalid it I add them manually and they can't be added by the editor. (I found the same entries in a different place but you source is much more direct. Thanks.)

I seem to be having other problems as well with manifests, main class, and jar's. I can get a manifest with a main class but the manifest in the jar has a notation saying 'No Entry' and sure enough the jre can't find the main class. In that case I have copied the name of the class from the Eclipse Run diaglog but it still does not find it. Export says there are compile warnings but I can't find out where the actual warning are capture by the Export build.

Maurice
Maurice
 
 View user's profile Send private message  
Reply with quote Back to top
support-eugene
Post subject: Re: RE: How do I create a manifest file for the Maven build?  PostPosted: Sep 09, 2008 - 07:42 AM
Moderator
Moderator


Joined: May 12, 2005
Posts: 270

mdarr wrote:
The entries in the POM described by your documentation don't seem to be allowed in MyEclipse 6.5. At least the POM is flagged as invalid it I add them manually and they can't be added by the editor.


What do you see? Do you see some error markers?

_________________
Eugene
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits