I am trying to find a good Maven resource so that this question need not be asked. I have looked at Apache tutorial/POM description/Directory structure and have found all to [1] have errors, [2] not describe terms/tags, [3] to have missing terms/tags, [4] to have incomplete descriptions. The same is true for the Javageeks Maven book (Apache Maven Cookbook). So if this question seems trivial it’s because I haven’t found anything that describes Maven adequately. Helping me with this means that I won’t need to ask silly questions.
Netbeans 22
Win10/11-x64
Java (JDK 21)
I have created an API to be used in an application. I would like to reference this API and use it. My guess is that:
[1] I create a jar file for the API.
[2] I put the jar file in some known location (where?).
[3] I reference this jar file in the using POM
a. In a <dependency> clause. How do I reference the jar file.
b. Some other way. How?
I absolutely know that this is not the cleverest question. But simple answers are hard to find in the resources I’m reading, although there is great interest in showing Maven is better than Ant, there is less interest in describing Maven.