This project is a library, a framework that I'm working on and will be distributed as a jar file via mavenrepository.com.
I read this on the page under 1. Introduction.
The maven jar plugin provides the capability to build jars files, if you define that your project is packaged as a jar file, maven will call implicitly to this plugin. We don´t need to define it inside pom.xml it will be downloaded and executed when maven needs it.
The question is how do I define the project itself as a jar within pom.xml.
By default, I only want to have src/main/java
files within the jar. src/test/java
not required to be within the jar.