Java – Maven dependency for project level self placed jars
•
Java
I created a Java class and converted it into a jar file So I want to use the jar files I put at the project level, such as "external jar"
Solution
Basically, you have created your own jar and want to publish it, so when others clone / use your project, the jar will be attached (suppose you have a maven project, and your jar dependencies are included in POM. XML)
To achieve this, you need to publish your jar to Maven. You can follow http://kirang89.github.io/blog/2013/01/20/uploading-your-jar-to-maven-central/ Many online documents on how to publish jars to Maven central
Editor: – please use the official reference according to the suggestions of khmarbaise http://central.sonatype.org/ As a central repository
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码