I must say - googled!
I need to add the library SimleCalc-1.0.jar.
pom.xml
<dependency> <groupId>com.homework</groupId> <artifactId>SimpleCalc</artifactId> <version>1.0</version> <systemPath>${basedir}\src\main\resources\SimpleCalc-1.0.jar</systemPath> </dependency> If my primo classes are in the main / java / folder, then everything works.
But if the classes of my application, for example, in the main / java / com.myapp / folder, the library does not pull up.
I tried to add the library through
mvn deploy:deploy-file The effect is the same.
Questions:
Why, if the application classes are not in the main / java / custom library folder, do not pull up?
How to add custom libraries to maven correctly?
Whole pom.xml