-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provided dependencies from imported BOM are not correctly calculated …
…on hover #347 A fix for the case with the version defined with property variable in parent pom.xml and JUnit test case
- Loading branch information
Showing
5 changed files
with
111 additions
and
34 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
42 changes: 42 additions & 0 deletions
42
lemminx-maven/src/test/resources/eclipse-bom-tester/parent/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,42 @@ | ||
<?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.eclipse.test</groupId> | ||
<artifactId>bom-import-parent</artifactId> | ||
<version>1.0.0</version> | ||
|
||
<inceptionYear>2023</inceptionYear> | ||
|
||
<packaging>pom</packaging> | ||
|
||
<properties> | ||
<payara-version>5.2022.3</payara-version> | ||
<commons-lang3-version>3.12.0</commons-lang3-version> | ||
</properties> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>fish.payara.api</groupId> | ||
<artifactId>payara-bom</artifactId> | ||
<version>${payara-version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>${commons-lang3-version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
</dependencyManagement> | ||
|
||
</project> |
38 changes: 38 additions & 0 deletions
38
lemminx-maven/src/test/resources/eclipse-bom-tester/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,38 @@ | ||
<?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> | ||
|
||
<parent> | ||
<groupId>org.eclipse.test</groupId> | ||
<artifactId>bom-import-parent</artifactId> | ||
<version>1.0.0</version> | ||
<relativePath>parent/pom.xml</relativePath> | ||
</parent> | ||
|
||
<artifactId>bom-import-child</artifactId> | ||
|
||
<inceptionYear>2023</inceptionYear> | ||
|
||
<packaging>pom</packaging> | ||
|
||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>jakarta.platform</groupId> | ||
<artifactId>jakarta.jakartaee-api</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
30 changes: 0 additions & 30 deletions
30
lemminx-maven/src/test/resources/pom-bom-defined-dependency-version.xml
This file was deleted.
Oops, something went wrong.