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
Reinstate META-INF/maven/${groupId}/${artifactId}/pom.xml in published jar files #14672
Comments
The pom is there in RC2 as well so it seems to have disappeared due to something that changed between RC2 and RELEASE. |
Looks like probably this:
|
I think that one affects the manifest. It's this one that's switching off the pom I think:
|
Yes. Part of this: #11994 (although it looks like maybe unrelated collateral damage to me). |
Removing that line restores the pom and doesn't seem to make any difference to the manifest. This is 2.0.5.RELEASE:
And this is 2.0.x with that line removed:
|
I suspect it's collateral damage too. Flagging for team attention just in case I'm overlooking something. |
I think I removed it because it seemed a little unnecessary and I wanted to align with what Framework does. Do we need them back for a specific reason? |
I was just surprised not to see them since they are "standard". Also I assert their presence in tests in the thin launcher, but I can change that if I have to. I think it is good to have them, in case there are static analysis tools that want to know the transitive dependencies. |
I think I'd rather keep them out to align with the jars published by Spring Framework. I guess the build system might play a big part in whether they are there or not. Maven probably adds them, Gradle probably doesn't. Another reason not to add them back is because we flatten then and remove a few some bits. I've no idea if the flattened or orginal POM gets added, but its certainly easier our end to simply leave them out. |
Somewhere between 2.0.0.M6 and 2.0.0.RELEASE the spring-boot jars stopped having their pom.xml included:
Since including the pom.xml is a standard feature of the Maven JAR plugin, it seems like this might be unintended. Maybe something to do with the
maven-flatten-plugin
(but that first showed up in 2.0.0.M4)?The text was updated successfully, but these errors were encountered: