Re: No main manifest attribute in jar in Maven project

2022-02-21 Thread Jaroslav Tulach
Dne čtvrtek 17. února 2022 1:45:20 CET, Vladimir Machat napsal(a): > Thanks, I know how to do it, I was just wondering why it's not done by > Netbeans the same it is done for Ant project... Improvements and contributions to https://github.com/apache/netbeans/pull/3262 welcomed! -jt > > On

Re: No main manifest attribute in jar in Maven project

2022-02-16 Thread David Green
To a new user, it is unexpected and the disconnect between some of the project properties and Maven is a surprise. I think the some users expect more from the IDE. I can understand the challenges of doing this in that it is like adding another programming language where some of the syntax is in

Re: No main manifest attribute in jar in Maven project

2022-02-16 Thread Vladimir Machat
Thanks, I know how to do it, I was just wondering why it's not done by Netbeans the same it is done for Ant project... On 16/02/2022 21:31, Tim de Vries wrote: I have a tool which packages to executable jar with optional manifest attributes. I was hoping to charge $1/user/month. I don’t know

Re: No main manifest attribute in jar in Maven project

2022-02-16 Thread Tim de Vries
I should have maybe also said, it has options for source, binaries and jars, code signing and remote deployment via pki all in code, all in java, has a multi class launcher and various other utilities to facilitate development and all source code is included. And I could probably set up a

Re: No main manifest attribute in jar in Maven project

2022-02-16 Thread Tim de Vries
I have a tool which packages to executable jar with optional manifest attributes. I was hoping to charge $1/user/month. I don’t know if that’s allowed here. Sent from my iPhone > On Feb 16, 2022, at 11:55 AM, antonio wrote: > > Hi, > > Adding the main class in MANIFEST.MF is not good enough

Re: No main manifest attribute in jar in Maven project

2022-02-16 Thread antonio
Hi, Adding the main class in MANIFEST.MF is not good enough to run a Maven project with "java -jar". You also want to create a "fat jar" with all the dependencies in it. See [1] for guidance. > Is there a reason why Netbeans doesn't do it? Here're some possible answers (of my own, doesn't

No main manifest attribute in jar in Maven project

2022-02-16 Thread Vladimir Machat
Hi all, I was just wondering, is Netbeans supposed to fill out the main attribute in MANIFEST.MF that goes to the jar file, when building Maven project? At the moment it doesn't do it, which means that the resulting jar can't be executed just by $ java -jar App.jar I would expect