Skip to content

Fix ITs for Maven 3.10.x#1061

Merged
slawekjaranowski merged 1 commit into
apache:maven-compiler-plugin-3.xfrom
slawekjaranowski:mvn-3.10-fix
May 30, 2026
Merged

Fix ITs for Maven 3.10.x#1061
slawekjaranowski merged 1 commit into
apache:maven-compiler-plugin-3.xfrom
slawekjaranowski:mvn-3.10-fix

Conversation

@slawekjaranowski
Copy link
Copy Markdown
Member

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Your pull request should address just one issue, without pulling in other changes.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Each commit in the pull request should have a meaningful subject line and body.
    Note that commits might be squashed by a maintainer on merge.
  • Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied.
    This may not always be possible but is a best-practice.
  • Run mvn verify to make sure basic checks pass.
    A more thorough check will be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its verify).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

@slawekjaranowski
Copy link
Copy Markdown
Member Author

slawekjaranowski commented May 28, 2026

compiler IT failure:

[ERROR] Failed to execute goal on project MCOMPILER-346-mre: Could not resolve dependencies for project com.basilcrow:MCOMPILER-346-mre:jar:1.0
[ERROR] dependency: org.jenkins-ci.main:remoting:jar:3.2 (compile)
[ERROR] 	prefixes: Path org/jenkins-ci/main/remoting/3.2/remoting-3.2.jar NOT allowed from repo.jenkins-ci.org
[ERROR] 	Could not find artifact org.jenkins-ci.main:remoting:jar:3.2 in local.central (file:///home/herve/.m2/repository)
[ERROR] 	Could not find artifact org.jenkins-ci.main:remoting:jar:3.2 in central (https://repo.maven.apache.org/maven2): The following artifacts could not be resolved: org.jenkins-ci.main:remoting:jar:3.2 (absent): Could not find artifact org.jenkins-ci.main:remoting:jar:3.2 in local.central (file:///home/herve/.m2/repository)

Test use repo:

    <repository>
      <id>repo.jenkins-ci.org</id>
      <url>https://repo.jenkins-ci.org/public/</url>
    </repository>

which provide wrong prefixes in https://repo.jenkins-ci.org/public/.meta/ ...

## repository-prefixes/2.0
#
# Prefix file generated by Sonatype Nexus
# Do not edit, changes will be overwritten!
/de/regnis
/com/syntevo
/com/trilead
/org/eclipse
/org/tigris
/org/tmatesoft
/org/netbeans
/org/apache
/archetype-catalog.xml
/net/java
/archetype-catalog.xml.md5
/archetype-catalog.xml.sha1

missing /org/jenkins-ci (not diving into why, just doing explicit analysis)

@cstamas
Copy link
Copy Markdown
Member

cstamas commented May 28, 2026

@slawekjaranowski slawekjaranowski requested a review from Bukama May 28, 2026 19:08
@Bukama
Copy link
Copy Markdown
Contributor

Bukama commented May 28, 2026

Is the error I described here (#1050), related?

Copy link
Copy Markdown
Member

@hboutemy hboutemy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very interesting to learn about the issue and the workaround: do we have a documentation for users who will have such cases in the future? neither @Bukama nor me were able to analyze and workaround

@slawekjaranowski
Copy link
Copy Markdown
Member Author

very interesting to learn about the issue and the workaround: do we have a documentation for users who will have such cases in the future? neither @Bukama nor me were able to analyze and workaround

https://maven.apache.org/resolver/remote-repository-filtering.html#broken-maven-repository-managers

@slawekjaranowski slawekjaranowski merged commit ffbc13e into apache:maven-compiler-plugin-3.x May 30, 2026
45 checks passed
@slawekjaranowski slawekjaranowski deleted the mvn-3.10-fix branch May 30, 2026 08:54
@github-actions github-actions Bot added this to the 3.15.1 milestone May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants