Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: dependencies task
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Using scope="system":

      <artifact:dependencies>
         <dependency groupId="commons-logging" artifactId="commons-logging" version="1.1.1" scope="system"/>
      </artifact:dependencies>

      causes NPE:

      java.lang.NullPointerException
              at java.io.File.<init>(File.java:222)
              at org.apache.maven.project.artifact.MavenMetadataSource.createArtifacts(MavenMetadataSource.java:445)
              at org.apache.maven.artifact.ant.DependenciesTask.doExecute(DependenciesTask.java:186)
              at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:721)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
              at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
              at org.apache.tools.ant.Task.perform(Task.java:348)
              at org.apache.tools.ant.Target.execute(Target.java:390)
              at org.apache.tools.ant.Target.performTasks(Target.java:411)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
              at org.apache.tools.ant.Main.runBuild(Main.java:801)
              at org.apache.tools.ant.Main.startAnt(Main.java:218)
              at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
              at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
      

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Herve Boutemy
              Reporter:
              SebbASF
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: