Skip to content
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

Maven Daemon CLIng #1158

Merged
merged 26 commits into from
Oct 15, 2024
Merged

Maven Daemon CLIng #1158

merged 26 commits into from
Oct 15, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Oct 4, 2024

Dropped the MavenCLI mutilated copy, using CLIng.

This PR also removes test repeat and use of mrm plugin, just to simplify the build. Also fixes classpath by excluding maven logging provider (that is excluded from final distro as well) as mvnd provides its own provider.

Dropped the MavenCLI mutilated copy, using CLIng.

WIP
@cstamas cstamas requested a review from gnodet October 4, 2024 10:53
@cstamas cstamas self-assigned this Oct 4, 2024
@cstamas cstamas requested a review from ppalaga October 4, 2024 11:05
@cstamas
Copy link
Member Author

cstamas commented Oct 4, 2024

Pretty much same results as for me locally:

Error:  Tests run: 41, Failures: 9, Errors: 1, Skipped: 3

@cstamas
Copy link
Member Author

cstamas commented Oct 4, 2024

Locally

[ERROR] Tests run: 41, Failures: 8, Errors: 0, Skipped: 3

@cstamas
Copy link
Member Author

cstamas commented Oct 4, 2024

With apache/maven#1776

[ERROR] Tests run: 41, Failures: 7, Errors: 0, Skipped: 3

@cstamas
Copy link
Member Author

cstamas commented Oct 5, 2024

Slowly but mvnd is giving up 😄 With apache/maven#1779

[ERROR] Tests run: 41, Failures: 4, Errors: 1, Skipped: 3

@cstamas
Copy link
Member Author

cstamas commented Oct 5, 2024

Score

[ERROR] Tests run: 41, Failures: 4, Errors: 0, Skipped: 3

@cstamas
Copy link
Member Author

cstamas commented Oct 5, 2024

At least two ITs are NPE-ing due unusual IT project layout @gnodet is tinkering about those. Personally, I'd not change ITs, Maven is too rigid IMHO.

@cstamas
Copy link
Member Author

cstamas commented Oct 5, 2024

Maven changes merged, so this PR now uses master.

CI confirms my local results, failed ITs with reason:

  • EnvironmentTest -- path cannot be null https://issues.apache.org/jira/browse/MNG-8288
  • MavenConfTest -- An API incompatibility was encountered while executing org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate: java.lang.ExceptionInInitializerError: null
  • NewManagedModuleTest -- this one is weird Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.mvndaemon.mvnd.test.new-managed-module:new-managed-module-bom:pom:0.0.1-SNAPSHOT in mrm-maven-plugin (http://localhost:37133/)
  • UpgradesInBomTest -- path cannot be null https://issues.apache.org/jira/browse/MNG-8288

@cstamas
Copy link
Member Author

cstamas commented Oct 7, 2024

MNG-8288 fixed, last issue is MNG-8293. Basically this PR is "good", it is Maven core that has issues with ITs.

@cstamas
Copy link
Member Author

cstamas commented Oct 7, 2024

Removed use of mrm plugin, test repeats, and fixed classpath by excluding maven logging provider (that is excluded from final distro as well).

@cstamas cstamas marked this pull request as ready for review October 7, 2024 17:26
@cstamas
Copy link
Member Author

cstamas commented Oct 7, 2024

@gnodet @ppalaga it's yours, please take a look

.groupId(parts[0])
.artifactId(parts[1])
.version(parts[2])
.build();
Copy link
Member Author

Choose a reason for hiding this comment

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

This needs to be extended, as extensions.xml may have more options, like classloading?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is for another PR, as this PR did not alter anything in this area

@cstamas
Copy link
Member Author

cstamas commented Oct 8, 2024

Mac intel had "java.net.ConnectException: HTTP connect timed out"

@gnodet gnodet merged commit 27258c0 into apache:master Oct 15, 2024
5 checks passed
@cstamas cstamas deleted the mvnd-cling branch October 15, 2024 11:06
@cstamas cstamas added this to the 2.0.0-beta-2 milestone Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants