mirror of https://github.com/apache/maven.git
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@289629 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
29cd88daaa
commit
f079f1866c
|
@ -203,33 +203,35 @@
|
|||
<source><![CDATA[
|
||||
<project>
|
||||
...
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>group-a</groupId>
|
||||
<artifactId>artifact-a</artifactId>
|
||||
<version>1.0</version>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>group-a</groupId>
|
||||
<artifactId>artifact-a</artifactId>
|
||||
<version>1.0</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>group-c</groupId>
|
||||
<artifactId>excluded-artifact</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>group-c</groupId>
|
||||
<artifactId>artifact-b</artifactId>
|
||||
<version>1.0</version>
|
||||
<type>war</type>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>group-a</groupId>
|
||||
<artifactId>artifact-b</artifactId>
|
||||
<version>1.0</version>
|
||||
<type>bar</type>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<exclusion>
|
||||
<groupId>group-c</groupId>
|
||||
<artifactId>excluded-artifact</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>group-c</groupId>
|
||||
<artifactId>artifact-b</artifactId>
|
||||
<version>1.0</version>
|
||||
<type>war</type>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>group-a</groupId>
|
||||
<artifactId>artifact-b</artifactId>
|
||||
<version>1.0</version>
|
||||
<type>bar</type>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
</project>]]></source>
|
||||
And then the two child poms would become much simpler:
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue