Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-189

NPE when using scope="system"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • dependencies task
    • None

    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)
      

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              sebb Sebb
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: