Details
-
New Feature
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.1.2
-
None
-
None
Description
Many companies will have their own company's private jars. When copying, they often need to copy the entire warehouse, but in fact not all files are needed. I hope to have the function of picking out dependencies to a new warehouse (including all files in the corresponding directory, Such as jar, javadoc.jar, metadata, but not *.lastUpdated, _remote.repositories.
The command can be:
mvn dependency:pick -DnewRepo=D:/.m2/myRepo
Sometimes only the jars that are not available in the remote warehouse are needed. I hope to automatically check if there are any in the remote warehouse and pick out the jars that are not available.
The command can be:
mvn dependency:pick -DnewRepo=D:/.m2/myRepo -DonlyLocal=true
mvn dependency:pick -DnewRepo=D:/.m2/myRepo -DonlyLocal=true -Durl=https://repo.maven.apache.org/maven2/
mvn dependency:pick -DnewRepo=http://myNexus/repository/myRepo/ -DonlyLocal=true -Durl=https://repo.maven.apache.org/maven2/