Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-731

Picking out dependencies to a new repository

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 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/

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            linwancen 林万程
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: