I would say you need to change the Run project action mapping in the ide not to use mvn exec:exec to execute "java -cp <classpath>" but to execute :java -jar <jar name>"
Regards Milos Kleint On Wed, Dec 2, 2009 at 5:46 PM, eppleton <[email protected]> wrote: > > Hi, > > I've created a Maven Project in NetBeans. It writes an entry into the JARs > manifest. That works fine. At runtime I'm reading that entry (which points > to a configuration file) and use it for configuration. That works fine as > well… > > The problem is, that when running the project from the IDE instead of the > JAR, the class files in the target folder is used, so there's no manifest. > When I copy my manifest there, it works fine. What would be the best > approach to do that automatically? > > Thanks > > Toni > -- > View this message in context: > http://old.nabble.com/Maven-Run---Manifest-entries-tp26612165p26612165.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
