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

Relying on just Maven Central, project not compatible with latest maven-compiler-plugin #2362

Open
Stephan202 opened this issue Aug 11, 2022 · 0 comments

Comments

@Stephan202
Copy link
Contributor

Stephan202 commented Aug 11, 2022

Compared to version 3.37.0, version 3.37.1 and up contain an additional optional dependency on com.palantir.baseline:gradle-baseline. That artifact is not published to Maven Central. This was previously not a problem, but (I think) due to MCOMPILER-272, as of maven-compiler-plugin version 3.9.0, using this dependency causes a build failure when using Maven:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project refaster-compiler: Resolution of annotationProcessorPath dependencies failed: Missing:
[ERROR] ----------
[ERROR] 1) com.palantir.baseline:gradle-baseline:jar:4.156.0

It's not possible to simply tell Maven to exclude the dependency, because annotationProcessorPaths entries don't support <exclusions> (see MCOMPILER-395).

Given the name of this project I'm not sure you care about Maven compatibility at all, but I thought I'd share :). If nothing else it might be good to document this limitation.

NB: Of course maven-compiler-plugin should handle this better; I added a comment here.

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

No branches or pull requests

1 participant