Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
Other Resources:
"mvn dependency:copy-dependencies" - JAR Dependencies
How to download JAR files that my project dependents on?
✍: FYIcenter.com
By default, Maven will download dependent JAR files in whenever
it needs them to support your project.
Those JAR files will not be stored on your local computer.
But if you want to download local copies of those dependent JAR files, you can run the "mvn dependency:copy-dependencies" command:
C:\fyicenter\hello>\fyicenter\apache-maven-3.5.4\bin\mvn dependency:copy-dependencies Downloading from central: https://repo.maven.apache.org/maven2 /commons-lang/commons-lang/2.6/commons-lang-2.6.pom ... Downloading from central: https://repo.maven.apache.org/maven2 /org/apache/maven/reporting/maven-reporting-impl/2.0.5/maven-reporting-impl-2.0.5.jar Downloading from central: https://repo.maven.apache.org/maven2 /commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar Downloading from central: https://repo.maven.apache.org/maven2 /commons-io/commons-io/1.4/commons-io-1.4.jar ... [INFO] Copying junit-3.8.1.jar to C:\fyicenter\hello\target\dependency\junit-3.8.1.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:01 min [INFO] ------------------------------------------------------------------------ C:\fyicenter\hello>tree /f . C:\FYICENTER\HELLO | pom.xml | ├---src | |---target | hello-1.0-SNAPSHOT.jar | ├---classes | ├---dependency | junit-3.8.1.jar
The output shows that Maven did a lots of unnecessary downloads and finally copied the only dependent JAR file, junit-3.8.1.jar, to the "dependency" sub-directory.
Â
⇒ \users\*\.m2 - Maven Local Repository
⇠"mvn clean" - Compile Maven Project
⇑⇑ FAQ for Apache Maven
2020-10-10, 949👍, 0💬
Popular Posts:
What Is jtds-1.2.2.jar? jtds-1.2.2.jar is the JAR files of jTDS Java library 1.2.2, which is a JDBC ...
commons-net.jar is the bytecode of Apache Commons Net library, which implements the client side of m...
The goal of the Geronimo project is to produce a server runtime framework that pulls together the be...
commons-net.jar is the bytecode of Apache Commons Net library, which implements the client side of m...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...