-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #925: Protect against an NPE if a dependency version is defined…
… in dependencyManagement and dependency processing is enabled
- Loading branch information
1 parent
12d67e0
commit 841d24f
Showing
3 changed files
with
161 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
versions-maven-plugin/src/test/resources/org/codehaus/mojo/use-dep-version/issue-925/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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> | ||
|
||
<groupId>test-group</groupId> | ||
<artifactId>test-artifact</artifactId> | ||
<version>DEVELOP-SNAPSHOT</version> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>default-group</groupId> | ||
<artifactId>artifactA</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>default-group</groupId> | ||
<artifactId>artifactB</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>default-group</groupId> | ||
<artifactId>artifactC</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>default-group</groupId> | ||
<artifactId>artifactA</artifactId> | ||
<version>1.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>default-group</groupId> | ||
<artifactId>artifactB</artifactId> | ||
<version>1.0.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>default-group</groupId> | ||
<artifactId>artifactC</artifactId> | ||
<version>1.0.0</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
</project> |