Maven Dependencies Processor should recognise dependency on parent POM

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Duplicate
    • None
    • Component/s: None
    • None

      Given this pom.xml in maven project.

      <project xmlns="http://maven.apache.org/POM/4.0.0"
      		 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                            http://maven.apache.org/xsd/maven-4.0.0.xsd">
      	<modelVersion>4.0.0</modelVersion>
      
      	<parent>
      		<groupId>myGroup</groupId>
      		<artifactId>parent</artifactId>
      		<version>1.0-SNAPSHOT</version>
      	</parent>
      
      	<artifactId>child</artifactId>
      	<version>1.0-SNAPSHOT</version>
      
      	<dependencies>
      		<dependency>
      			<groupId>myGroup</groupId>
      			<artifactId>common</artifactId>
      			<version>1.0-SNAPSHOT</version>
      		</dependency>
      	</dependencies>
      </project>
      

      As for now the task will only consider common as the dependency of child. It would be great if the task will take parent as its dependency as if it changes, the child should take effect as well.

              Assignee:
              Unassigned
              Reporter:
              RianA
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: