-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[MNG-8537] Keep Maven Namespace the same #10952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
elharo
wants to merge
21
commits into
master
Choose a base branch
from
namespace
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b7ea8a4
revert namespace
elharo 0655cb7
fix tests
elharo 523d67c
tests
elharo eb98d63
fix ITs
elharo cf1c35d
fix IT
elharo 91995f0
fix IT
elharo 202ecd1
fix IT
elharo f96feff
fix IT
elharo e05e573
fix IT
elharo 4621bcd
fix IT
elharo d935cb5
fix IT
elharo f13b879
fix mng-6957
elharo 1f40af6
fix IT
elharo 2eef2bd
fix IT
elharo 13dd6f4
fix IT
elharo c16d2b4
fix IT
elharo 66372a5
fix IT
elharo e14cc45
fix IT
elharo 5b74418
Merge branch 'master' into namespace
elharo 356e21a
revert unrelated docs
elharo ec5b2c5
merge
elharo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -75,7 +75,7 @@ void shouldDetectModelVersionFromDocument() throws Exception { | |
@DisplayName("should detect 4.1.0 model version") | ||
void shouldDetect410ModelVersion() throws Exception { | ||
String pomXml = PomBuilder.create() | ||
.namespace("http://maven.apache.org/POM/4.1.0") | ||
.namespace("http://maven.apache.org/POM/4.0.0") | ||
.modelVersion("4.1.0") | ||
.groupId("test") | ||
.artifactId("test") | ||
|
@@ -104,24 +104,6 @@ void shouldReturnDefaultVersionWhenModelVersionMissing() throws Exception { | |
String result = ModelVersionUtils.detectModelVersion(document); | ||
assertEquals("4.0.0", result); // Default version | ||
} | ||
|
||
@Test | ||
@DisplayName("should detect version from namespace when model version is missing") | ||
void shouldDetectVersionFromNamespaceWhenModelVersionMissing() throws Exception { | ||
String pomXml = | ||
""" | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.1.0"> | ||
<groupId>test</groupId> | ||
<artifactId>test</artifactId> | ||
<version>1.0.0</version> | ||
</project> | ||
"""; | ||
|
||
Document document = saxBuilder.build(new StringReader(pomXml)); | ||
String result = ModelVersionUtils.detectModelVersion(document); | ||
assertEquals("4.1.0", result); | ||
} | ||
} | ||
|
||
@Nested | ||
|
@@ -417,7 +399,7 @@ void shouldHandleMissingModelVersion() throws Exception { | |
@ValueSource( | ||
strings = { | ||
"http://maven.apache.org/POM/4.0.0", | ||
"http://maven.apache.org/POM/4.1.0", | ||
"http://maven.apache.org/POM/4.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. duplicate of 401? |
||
"https://maven.apache.org/POM/4.0.0", | ||
"https://maven.apache.org/POM/4.1.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here is also 4.1 |
||
}) | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so no need for this const