I have the app running now in Eclipse alright. There may have been a problem with the mvn eclipse:eclipse command.
The requirement is to have my application in a jar file and you can run it from the command prompt. I notice when you package up the app the resulting jar contains no dependencies (ie the dependencies jars). What is needed to get the jar running from the command prompt? -----Original Message----- From: Thorsten Heit [mailto:[EMAIL PROTECTED] Sent: 24 February 2006 17:44 To: Maven Users List Subject: Re: [m2] Failure to recognise a jar -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > I have the variables included in eclipse and the dependencies in the > pom. However I'm still having the same trouble. Have you checked that Eclipse really uses the correct jars in the project settings under "Java Build Path->Libraries"? On my machine (Eclipse 3.2M5) I see a blue ball besides every jar that is listed there, and every entry begins with M2_REPO. And can you check that M2_REPO is defined correctly in the global classpath settings (Window->Preferences->Java->Build Path->Classpath Variables)? > By setting the classpath variable in the command prompt do mean adding > the required jars to the CLASSPATH environment variable? Yes. > If so is there any way that maven can include the required jars in a lib > folder when it packages the project as a jar? Or even just the specific > classes it needs from the jars? Sorry, don't know. Perhaps Maven generates an entry in the created jar's manifest...? Regards Thorsten -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (MingW32) iD8DBQFD/0X4QvObkgCcDe0RAtJIAKCqnrB6Q7ZJEIRR70V6lkVIbBnq7wCeO2P6 aU9YK3dH+rw45aL/hzrYw/w= =fiHq -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
