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
:classifier in exclusions forbidden by Clojars #688
Comments
Just to confirm, the exclusions that you've set do work to exclude the macOS library if you use it from a locally installed version? I'm pretty sure that's what you're saying, just wanted to check. |
Yes, they do. On both linux and macOS. The step that is refusing them is |
We're using Can you share the |
pom.xml:
|
This is one of the variations that I tried. The only difference is where the exclusions are and how many there are, but every variation gets blocked by Clojars. |
From looking at the maven xsd, classifiers aren't legal within exclusion blocks, even in the latest version of the xsd. So that would imply that lein is generating invalid poms. But I wonder what the maven solution is for excluding based on classifier? |
I found that solution in https://github.com/technomancy/leiningen/blob/master/sample.project.clj I didn't realize it's illegal in maven. Bummer. I hoped it is just a configuration in Clojars for some marginal reason. It would have nicely solved the macos issue in my project... Thank you for clarifying this! |
This is related to #515, which should have been solved, but is a colateral issue.
I need to exclude a dependency that contains macOS binaries from my library that I deploy to Clojars since it (unecessary) breaks the library on macOS.
I do that by adding
to the dependency in
project.clj
It works as expected.
However, Clojars refuses to deploy it, with the following message:
The text was updated successfully, but these errors were encountered: