'"no main manifest attribute" in .jar Netbeans 13

I recently just started toying around with Maven in java. Time comes to test my project, it works fine in the NetBeans window, running the main class found in App.java (com.MyCompany.App), but when I try to run it from a command line I get an error:

"no main manifest attribute"

I'm using Apache Netbeans 13 with Maven to build the project

Project structure

POM.xml file

Any help will be apreciated Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source