clojars

http://clojars.org discussion and “support”, see http://status.clojars.org for status.
martinklepsch 2018-01-11T18:24:08.000657Z

I just noticed something weird: the jar for [boot/core "2.7.2"] has a pom.xml with messed up <scm/> section:

<scm>
    <tag>419e07c83dfbcf2e86ed5cf7f26d832fc5e394b5
</tag>
    <url/>
  </scm>

martinklepsch 2018-01-11T18:24:55.000386Z

When I checkout 2.7.2 and run cd boot/core/; lein install the resulting jar has the correct pom.xml

martinklepsch 2018-01-11T18:26:43.000310Z

https://repo.clojars.org/boot/core/2.7.2/core-2.7.2.pom

martinklepsch 2018-01-11T18:27:14.000330Z

Does that make sense to anyone?

danielcompton 2018-01-11T20:00:30.000379Z

Clojars rewrites the pom on deploy because of how we do atomic deploys

danielcompton 2018-01-11T20:00:40.000128Z

Although I can't remember why it was necessary to rewrite the pom

danielcompton 2018-01-11T20:01:12.000354Z

What does the one that you generated look like @martinklepsch?

2018-01-11T20:01:55.000445Z

I don't think we rewrite the pom, do we? Only the maven-metadata.xml

2018-01-11T20:01:59.000110Z

but I'll double check

martinklepsch 2018-01-11T20:02:04.000425Z

<scm>
    <url>https://github.com/boot-clj/boot</url>
    &lt;connection&gt;scm:git:<git://github.com/boot-clj/boot.git&lt;/connection&gt;>
    &lt;developerConnection&gt;scm:git:<ssh://git@github.com/boot-clj/boot.git&lt;/developerConnection&gt;>
    &lt;tag&gt;419e07c83dfbcf2e86ed5cf7f26d832fc5e394b5&lt;/tag&gt;
  &lt;/scm&gt;

2018-01-11T20:03:14.000558Z

ah, we only rewrite the checksums for maven-metadata.xml I think

2018-01-11T20:05:23.000115Z

I don't see anywhere where we would alter the pom at all

martinklepsch 2018-01-11T20:14:26.000427Z

Hm. Ok. I don’t want to push anything just to test this but I’ll check next time I cut a release

martinklepsch 2018-01-11T20:14:30.000553Z

Thanks for looking into it

martinklepsch 2018-01-11T20:18:38.000411Z

lein deploy would not modify pom.xml after it’s been written, would it? 😳

2018-01-11T20:22:48.000746Z

what is writing the pom before you call lein deploy? I know lein generates one at some point in the deploy/build process

martinklepsch 2018-01-11T20:36:44.000110Z

yeah there’s one in my project root

martinklepsch 2018-01-11T20:36:56.000172Z

I checked all poms I could find locally and they all seem correct:

2018-01-11T20:37:28.000184Z

Did you generate that one, or did lein?

martinklepsch 2018-01-11T20:37:34.000112Z

- pom.xml in project root - .pom file in local ~/.m2 after running lein install - pom.xml in jar file in ~/.m2 after lein install

martinklepsch 2018-01-11T20:37:39.000107Z

lein generates the pom

2018-01-11T20:38:25.000005Z

this one was generated by lein as well: http://repo.clojars.org/boot/core/2.7.2/core-2.7.2.pom

martinklepsch 2018-01-11T20:39:10.000100Z

yeah