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

purge-local-repository does nothing if certain dependencies are included

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.6
    • Component/s: purge-local-repository
    • Labels:
      None

      Description

      I've noticed that the purge-local-repository goal does nothing if certain dependencies are present in the dependency tree of the project.
      After some attempts I've found some of the dependencies that can show problem.
      See attached pom.xml: if I run mvn validate as is, maven purges the local repository and the log4j jar is downloaded from the remote repository.

      Removing the comment around the jasperreports dependency and re-running mvn validate gives the following result:

      [INFO] [dependency:purge-local-repository {execution: default}]
      [INFO] Nothing to do for project: test-issue:test-issue:pom:1.0.0.0-SNAPSHOT
      

      So it seems that something goes wrong while resolving the dependencies for the project if the jasperreports jar is included, resulting in the purge-local-repository to skip the clean of the local repository.
      I dont know if this happens only with jasperreports dependency or if it is something more general.

        Attachments

        1. pom.xml
          1 kB
          mork
        2. PurgeLocalRepositoryMojo.patch
          13 kB
          Tuomas Kiviaho
        3. PurgeLocalRepositoryMojo.patch
          17 kB
          Tuomas Kiviaho

          Activity

            People

            • Assignee:
              pgier Paul Gier
              Reporter:
              mork mork
            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: