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:

```
java -jar fileName.jar

```

> 
> "No Main Manifest Attribute" in fileName.jar
> 
> 
> 

I have tried adding a manifest.mf file specifying what main is, I've also been into project properties and added it as the main file...

What's going on?