U
U
Urukhayy2016-11-25 13:14:11
Java
Urukhayy, 2016-11-25 13:14:11

Do .jar (Maven) build framework classes that are not used?

There is a library (framework) that contains many classes. If you use only a few classes from this library, will the rest that are not used be collected in a .jar project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-12-01
@TheKnight

By default, Maven does not package classes from libraries into the final jar. There are a number of plug-ins that allow you to achieve packaging of classes from the libraries used or jar files of libraries as a whole. There are also separate plugins to select only the necessary classes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question