
The number of JAR files required to eventually run the generated class is substantially. Take the dependencies in this pom.xml file (for a Java application that will work with Kafka Streams): In order to help out with all run time dependencies, Maven also can download all jar-files for the direct and even the indirect dependencies. Maven uses these dependencies during compilation – to have all direct dependent classes available for the compiler. The Maven pom.xml file is where these dependencies are described. With a few simple XML elements, I can indicate which libraries my application has a direct dependency on. Maven is a great mechanism for describing the dependencies of a project. class file that is result of compiling my Java code, I need a large number of JAR-files. To run the class, all indirectly invoked classes should also be available. In order to compile the class, all directly referenced classes from supporting libraries should be available. In order to run my simple class locally I need to: My challenge is simple: I am creating a small Java application – single class with main method – that has many direct and indirect dependencies.
