Hi Peter, I don't know if this will solve your problem but I suspect it might. Try creating a manifest file - src/main/resources/META-INF/MANIFEST.MF if the META-INF directory does not exists create it. Then add something like this to your manifest: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: <Your Name Here> Build-Jdk: 1.6.0_06 Main-Class: <my.main.Class> Class-Path: . lib/commons-io-1.4.jar lib/hibernate-3.2.6.ga.jar ... You need to change: Build-By, Build-Jdk, Main-Class and Class-Path. The Class-Path is a space delimited set of jars the compose you class path. Once you have done this you should do a mvn clean install. Hope this works. Regards, Sean McElroy
--- On Mon, 8/6/09, Peter Horlock <[email protected]> wrote: From: Peter Horlock <[email protected]> Subject: Re: eclipse:eclipse To: "Maven Users List" <[email protected]> Date: Monday, 8 June, 2009, 6:55 AM Hello everyone, I'm still having the problem as described below - can no one help me out, please? Thanks, Peter 2009/6/6 Peter Horlock > Hi all, > > I type mvn eclipse:eclipse to get the necessary project files for eclipse. > Everything works fine, > except the fact that the dependency to the JDK / JRE is always the last one > in the eclipse project setting. > There's another jar that unfortunately has got the exact same class name > (include the entire package name) > as a class of the JDK / JRE. Now as the third party jar appears before the > JDK in the eclipse classpath, > its class gets used instead of the one from the JDK. > > What can I do to prevent this from happening? > > Thanks, > > Peter >
