Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3862

maven-dependency-plugin : MavenProject artifact.getFile() returns directory when dependency is part of aggregator pom build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Maven Plugins
    • None
    • ALL
    • Patch Available

    Description

      maven-dependency-plugin : https://svn.apache.org/repos/asf/tuscany/maven-plugins/trunk/maven-dependency-plugin/

      While building using an aggregator pom, if a dependency project is part of the aggregator, it is possible MavenProject artifact.getFile() to return a directory
      Happens when the build lifecycle is stopped before it reaches the package or install phase

      With artifacts from project.getArtifacts()
      artifact = junit:junit:jar:4.8.1:test
      artifact.getFile() = /Users/ndoraisamy/.m2/repository/junit/junit/4.8.1/junit-4.8.1.jar
      artifact = com.company.application:utility:jar:1.0.0:compile
      artifact.getFile() = /target/classes

      Attachments

        1. patchDetector.patch
          1.0 kB
          Nitya Doraisamy

        Activity

          People

            rfeng Zhaohui Feng
            nityad Nitya Doraisamy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: