Is it necessary to do some extra configuration to generate an executable .jar by Maven? As I've never used this technology in development desktop I'm a bit lost.
When I build the project (the logs show that I built it successfully) and try to run it, nothing happens. To see if any exceptions or something similar were being thrown, I tried to execute them by command line and here's the message:
Failed to find or load main class
Mypom.xml
filelookslikethis:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>kitty.project</groupId>
<artifactId>Kitty</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<name>Kitty</name>
<dependencies>
<!-- Dependências do projeto -->
</dependencies>
</project>
Is there any configuration missing? How can I fix this and generate a .jar
executable as if it were a normal Java application?