-
Notifications
You must be signed in to change notification settings - Fork 2
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
wrong artifactId in generated pom.xml #29
Comments
If anyone else comes across this issue: |
I'm sorry for my late response. I'll take a look at this. |
https://repo1.maven.org/maven2/net/moznion/sbt/ As you can see in the above link, the artifact identifier has to be |
FYI, I've checked sbt/sbt-release this is a major sbt official plugin: https://repo1.maven.org/maven2/com/github/sbt/sbt-release_2.12_1.0/1.0.15/sbt-release-1.0.15.pom This seems the |
Hi,
Like I've mentioned, the problem is that dependency proxys like JFrog Artifactory (I'm not sure Nexus does this also) check that the artifact-id in the pom file matches the path it is downloaded from / adheres to the standards set by the repository type (here maven). If this does not match, Artifactory simply blocks the download of the pom.xml file which then in turn blocks downloading of the plugin by sbt as a whole. IMHO also the sbt-release plugin does this wrong, the artifactId in the pom should be E.g. if you look at the dependency of sbt itself, |
Thank you for the information. |
NOTE: sbt/sbt#6479 (comment) |
@domdorn Can I close this issue? I guess this is not a problem of only this plugin, this would be an issue across the sbt. |
hmm.. while the problem is not resolved, I guess we can't do much about it for now except to do some processing before the file is uploaded to maven-central. I guess the sbt team will fix this in the upcoming weeks anyway, so for now we could close it. |
Hi!
In my project, we're migrating from using maven-central directly to proxy it through artifactory. When artifactory is fetching the pom.xml of sbt-spotless, it fails as the artifact-name apparently is wrong..
the request is as follows:
https://artifactory.acme.com/artifactory/maven-viopt/net/moznion/sbt/sbt-spotless_2.12_1.0/0.1.3/sbt-spotless-0.1.3.pom
which proxies through to
https://repo1.maven.org/maven2/net/moznion/sbt/sbt-spotless_2.12_1.0/0.1.3/sbt-spotless-0.1.3.pom
it gives this message:
from looking at the
sbt-spotless-0.1.3.pom
file, the current artifactIdwould need to be changed to
The text was updated successfully, but these errors were encountered: