This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch maven-4.0.x in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/maven-4.0.x by this push: new 2af3b575d0 Bump org.apache.maven:maven-parent from 44 to 45 (#2552) 2af3b575d0 is described below commit 2af3b575d0fbaa23083fd41b6305a6b7ec42f4c7 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> AuthorDate: Wed Jul 2 13:23:22 2025 +0200 Bump org.apache.maven:maven-parent from 44 to 45 (#2552) * Bump org.apache.maven:maven-parent from 44 to 45 Bumps [org.apache.maven:maven-parent](https://github.com/apache/maven-parent) from 44 to 45. - [Release notes](https://github.com/apache/maven-parent/releases) - [Commits](https://github.com/apache/maven-parent/commits) --- updated-dependencies: - dependency-name: org.apache.maven:maven-parent dependency-version: '45' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <supp...@github.com> * Code format --------- Signed-off-by: dependabot[bot] <supp...@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Guillaume Nodet <gno...@gmail.com> --- .../internal/relocation/UserPropertiesArtifactRelocationSource.java | 3 ++- .../resolver/relocation/UserPropertiesArtifactRelocationSource.java | 3 ++- pom.xml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java b/compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java index 37a7c3b416..b469672b79 100644 --- a/compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java +++ b/compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java @@ -203,7 +203,8 @@ private static Artifact parseArtifact(String coords) { case 4 -> new DefaultArtifact(parts[0], parts[1], "*", parts[2], parts[3]); case 5 -> new DefaultArtifact(parts[0], parts[1], parts[2], parts[3], parts[4]); default -> throw new IllegalArgumentException("Bad artifact coordinates " + coords - + ", expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>");}; + + ", expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>"); + }; return s; } } diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java index 966ceaa06f..a6425adc65 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java +++ b/impl/maven-impl/src/main/java/org/apache/maven/impl/resolver/relocation/UserPropertiesArtifactRelocationSource.java @@ -199,7 +199,8 @@ private static Artifact parseArtifact(String coords) { case 4 -> new DefaultArtifact(parts[0], parts[1], "*", parts[2], parts[3]); case 5 -> new DefaultArtifact(parts[0], parts[1], parts[2], parts[3], parts[4]); default -> throw new IllegalArgumentException("Bad artifact coordinates " + coords - + ", expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>");}; + + ", expected format is <groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>"); + }; return s; } } diff --git a/pom.xml b/pom.xml index 0784bea7fc..7919579b86 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,7 @@ under the License. <parent> <groupId>org.apache.maven</groupId> <artifactId>maven-parent</artifactId> - <version>44</version> + <version>45</version> <relativePath /> </parent>