'IntelliJ - Maven unable to install local jar file pom.xml

I have a jar file in my source code. I'm trying to use in my project using IntelliJ IDE

in my pom.xml under dependencies I defined:

<dependency>
  <groupId>custom_logger</groupId>
  <artifactId>custom_logger</artifactId>
  <version>1.0</version>
  <scope>system</scope>
  <systemPath>${basedir}/libs/custom_logger.jar</systemPath>
</dependency>

I ran mvn clean, mvn install and mvn package, but I can't run the project because my custom_logger.js never gets added to the external libraries. The IDE cannot resolve the imports.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source