[ 
https://issues.apache.org/jira/browse/MDEP-731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17337829#comment-17337829
 ] 

林万程 commented on MDEP-731:
--------------------------

I write a tool to do it:

[https://github.com/LinWanCen/maven-deploy-tool/releases]
{code:java}
java -jar maven-deploy-tool.jar -D url=file:///D:/MAVEN_REPO/deploy_local 
-DskipRepoHave=true
{code}

> Picking out dependencies to a new repository
> --------------------------------------------
>
>                 Key: MDEP-731
>                 URL: https://issues.apache.org/jira/browse/MDEP-731
>             Project: Maven Dependency Plugin
>          Issue Type: New Feature
>    Affects Versions: 3.1.2
>            Reporter: 林万程
>            Priority: Minor
>              Labels: offline, repository
>
> 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:
> {code:java}
> mvn dependency:pick -DnewRepo=D:/.m2/myRepo{code}
> 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:
> {code:java}
> mvn dependency:pick -DnewRepo=D:/.m2/myRepo -DonlyLocal=true{code}
> {code:java}
> mvn dependency:pick -DnewRepo=D:/.m2/myRepo -DonlyLocal=true 
> -Durl=https://repo.maven.apache.org/maven2/{code}
> {code:java}
> mvn dependency:pick -DnewRepo=http://myNexus/repository/myRepo/ 
> -DonlyLocal=true -Durl=https://repo.maven.apache.org/maven2/{code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to