1. Maven
  2. MNG-2496

dependencyManagement not used for dependencies in plugin section.


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Labels:


      In my parent, I have a dependencyManagement set with this jar:

      I have a plugin specified that had a dependency like this:
      <java classname="com.stchome.testng.initializer.PackageInitializer">
      <arg path="$

      <arg path="${}"/>
      <ant antfile="run-testng.xml" inheritRefs="true" inheritAll="true">
      <property name="target.dir" value="${}"/>
      <property name="test-classes.dir" value="${}

      <property name="test-source.dir" value="$



      When I build, it doesn't seem to resolve this dependency version from dependencyManagement

      [INFO] An invalid artifact was detected.

      This artifact might be in your project's POM, or it might have been included transitively du
      information we do have for this artifact:

      o GroupID:
      o ArtifactID: testng-initializer
      o Version: <<< MISSING >>>
      o Type: jar

      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.artifact.InvalidArtifactRTException: For artifact {
      n cannot be empty.
      at org.apache.maven.artifact.DefaultArtifact.validateIdentity(
      at org.apache.maven.artifact.DefaultArtifact.<init>(
      at org.apache.maven.artifact.factory.DefaultArtifactFactory.createArtifact(DefaultAr
      at org.apache.maven.artifact.factory.DefaultArtifactFactory.createDependencyArtifact
      at org.apache.maven.project.artifact.MavenMetadataSource.createArtifacts(MavenMetada
      at org.apache.maven.plugin.DefaultPluginManager.addPlugin(
      at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginM
      at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.ja
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycle
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(Default
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(De
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleE
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLi
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecu
      at org.apache.maven.DefaultMaven.doExecute(
      at org.apache.maven.DefaultMaven.execute(
      at org.apache.maven.cli.MavenCli.main(
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      at java.lang.reflect.Method.invoke(
      at org.codehaus.classworlds.Launcher.launchEnhanced(
      at org.codehaus.classworlds.Launcher.launch(
      at org.codehaus.classworlds.Launcher.mainWithExitCode(
      at org.codehaus.classworlds.Launcher.main(

        Issue Links


          Mark Thomas made changes -
          Workflow jira [ 12952056 ] Default workflow, editable Closed status [ 12989408 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12713089 ] Default workflow, editable Closed status [ 12752934 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Jason van Zyl made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]
          Jason van Zyl made changes -
          Component/s Artifacts and Repositories [ 11338 ]
          Component/s Artifacts [ 12035 ]
          Jason Dillon made changes -
          Field Original Value New Value
          Link This issue is related to MNG-2172 [ MNG-2172 ]
          Brian E. Fox created issue -


            • Assignee:
              Brian E. Fox
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: