- This topic has 3 replies, 2 voices, and was last updated 16 years, 2 months ago by support-eugene.
-
AuthorPosts
-
mdarrParticipantHaving 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
support-eugeneMemberCan 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.
mdarrParticipantActually 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
support-eugeneMember@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?
-
AuthorPosts