Avatar ·

How to create an executable JAR file with all dependencies in Maven?

Hello colleagues! I'm new to Java and Maven, and I've run into a problem. I wrote a simple console application that uses the Apache Commons IO library for reading files. Everything works perfectly in IntelliJ IDEA, but when I try to build an executable JAR file, issues arise. Here is my pom.xml: ```xml 4.0.0 com.example my-app 1.0 jar commons-io commons-io 2.11.0 ``` And my Main class: ```java import org.apache.commons.io.Fi