I have maven project where i need to add local jar as the dependency.
I have stored my jar into my maven folder using:
mvn install:install-file -Dfile=path\to\file\framework-0.0.0.1-SNAPSHOT.jar -DgroupId=test -DartifactId=test -Dversion=0.0.0.1 -Dpackaging=jar -DgeneratePom=true
I have read that adding dependencty to POM file is deprecated ( didnt even work for me ). So how should i include this dependency in my project? My settings.xml looks like:
<localRepository>C:\project\.m2</localRepository>
<mirrors>
....
</mirrors>
<servers>
<server>
....
</server>
<server>
....
</server>
</servers>
If i try to jusat use classes from the jar, Intelijj cannot find. So how should i add this dependency to my maven project?
Thanks for answers