-2

I have Maven project which contains Maven Dependencies where all jar files are located. I would like to get all jar files from Maven Dependencies (see picture). I manage to get each jar file individual by going to /.m/repositoy/xxxx/. But this way seems take long time. So I just want to get all jar file once, any help?enter image description here

The reason why I want those jar files because I want to create java non-Maven project with those jar files.

  • That's the way to get them. It's the only way I know of. Why would you want to create a non-Maven Java project? Make the other project use Maven, too. – duffymo Apr 18 '18 at 13:40
  • 2
    I'm really curious to know why you want to create a "non-Maven" Java project. If you could explain, I'm interested. – Mickael Apr 18 '18 at 13:55
  • Because My friend has a maven project in one machines working file but the same project does not work with my machine for some reason. So, I want to run the same project using non-maven project with those jar files. @Micka%c3%abl-b –  Ibrahim EL-Sanosi Apr 18 '18 at 20:28

2 Answers2

0

When you build the project it generates .war file as you know.You can extract it and find all the dependent jar files at {.war}\WEB-INF\lib\

-1

My suggestion is, go to C:\Users\<>.m2\repository (your maven directory) and search *.jar...it will list out all the jars in the window. Copy all the jars and paste in your directory.

  • There're a lot of reasons why this is not a good solution. For instance, you can have dependencies that are not related to your project. Also, you can have multiple versions of the same dependency, etc... – Mickael Apr 18 '18 at 13:54
  • Here my suggestion is to reduce time instead of taking one jar at a time..here based on the search term (*.jar or blah.jar) under maven directory...it will list out the respected jars...so will go and copy the jars which are required..this is just a suggestion, It might save some time.. – Venkat Gadarla Apr 18 '18 at 14:00
  • It is ok, but my maven dependency directory has more than 100 jar files. So, this suggestion is still time consuming . –  Ibrahim EL-Sanosi Apr 18 '18 at 14:06