I've been doing this for all of the jar files that my Spring MVC project needs:
call mvn install:install-file -DgroupId=vegetables -DartifactId=potatoes -Dversion=1.0 -Dfile=vegetables-1.0.jar -Dpackaging=jar -DgeneratePom=true
Recently I must have exceeded some limit on how many dependencies you can list in your pom.xml
file because I got an error that said:
Your command line is too long
So I removed some dependencies from the pom.xml
that my project no longer uses and I was able to run the project with maven again.
My question is, should I put install all jar files into my Maven repository as I have been doing so far? Or should I put some of them into the WEB-INF/lib
directory?
What's the best practice here?
pom.xml
have when the error occured? – splashpom.xml
when the error occurred. – Vegancmd.exe
onWindows 7
and didn't know there was a4k
limit. – Vegan