-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make Maven parent path relative on current project (#987)
Previously, the path is always relative to the provided path to `pom.xml`, however, this path should be relative to the current parent path. Also we observe that sometimes `pom.xml` is omitted in `</relativePath>` so when this happens, we manually append `pom.xml` to file path.
- Loading branch information
Showing
3 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
internal/resolution/manifest/fixtures/parent/grandparent/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,23 @@ | ||
<?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>org.grandparent</groupId> | ||
<artifactId>grandparent-pom</artifactId> | ||
<version>1.1.1</version> | ||
|
||
<name>my-app</name> | ||
<!-- FIXME change it to the project's website --> | ||
<url>http://www.example.com</url> | ||
|
||
<packaging>pom</packaging> | ||
|
||
<parent> | ||
<groupId>org.upstream</groupId> | ||
<artifactId>parent-pom</artifactId> | ||
<version>1.2.3</version> | ||
</parent> | ||
|
||
</project> |
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