I
I
IvanN7772021-12-24 17:37:58
Java
IvanN777, 2021-12-24 17:37:58

How to make your own mvn dependency?

How can you make your own simple dependency from a couple of classes or even from one
Or where to read about it.
To then connect to another project.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vamp, 2021-12-24
@IvanN777

To do this, you need to create a maven project. In the pom.xml of this project, write group, artifact and version. Then build the project with the command mvn install
Maven will compile your project code, pack it into a jar and copy this jar along with pom.xml to your local maven repository.
Next, in another project, include your dependency like any other dependency, specifying the group, artifact, and version that you specified earlier.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question