Steve Ebersole
01/14/2025, 12:47 PM[hibernate-orm]$ gradlew publishToMavenLocal --console=plain --info
...
Resolve mutations for :hibernate-scan-jandex:publishPublishedArtifactsPublicationToMavenLocal (Thread[Execution worker Thread 3,5,main]) started.
:hibernate-scan-jandex:publishPublishedArtifactsPublicationToMavenLocal (Thread[Execution worker Thread 3,5,main]) started.
...
> Task :hibernate-scan-jandex:publishPublishedArtifactsPublicationToMavenLocal
Custom actions are attached to task ':hibernate-scan-jandex:publishPublishedArtifactsPublicationToMavenLocal'.
Caching disabled for task ':hibernate-scan-jandex:publishPublishedArtifactsPublicationToMavenLocal' because:
Not worth caching
Task ':hibernate-scan-jandex:publishPublishedArtifactsPublicationToMavenLocal' is not up-to-date because:
Task has not declared any outputs despite executing actions.
PublishToMavenLocal (publishedArtifacts)
- org.hibernate.orm : hibernate-scan-jandex : jar
- artifacts (3)...
- artifact (javadoc) : /home/sebersole/projects/hibernate-orm/6.0/hibernate-orm/hibernate-scan-jandex/target/libs/hibernate-scan-jandex-7.0.0-SNAPSHOT-javadoc.jar (152650)
- artifact (null) : /home/sebersole/projects/hibernate-orm/6.0/hibernate-orm/hibernate-scan-jandex/target/libs/hibernate-scan-jandex-7.0.0-SNAPSHOT.jar (16865)
- artifact (sources) : /home/sebersole/projects/hibernate-orm/6.0/hibernate-orm/hibernate-scan-jandex/target/libs/hibernate-scan-jandex-7.0.0-SNAPSHOT-sources.jar (11563)
Publishing to maven local repository
After this run, hibernate-scan-jandex
does not show up in my maven-local.
As I said, it is random which subprojects get published each time.
Any ideas where to look?Vampire
01/14/2025, 12:59 PMProcessMonitor
for that, not sure whether a similar tool exists for *nix, but I'd guess so. Other than that I guess you would need to debug the code that does the publishing and see what happens. That could also be used for the former investigation by setting a breakpoint right after the files were copied, check that the files are there, then continue running and check whether the files were deleted again, but that would probably only work properly if it is something inside the Gradle JVM that deletes the files again if that is the problem.Steve Ebersole
01/14/2025, 1:15 PMinotifywait
. The directory for the non-published subprojects is never touched by the Gradle processSteve Ebersole
01/14/2025, 1:15 PMSteve Ebersole
01/14/2025, 1:15 PMVampire
01/14/2025, 1:20 PMpTML
not working so far.Steve Ebersole
01/14/2025, 1:20 PMSteve Ebersole
01/14/2025, 1:20 PMVampire
01/14/2025, 1:23 PMSteve Ebersole
01/14/2025, 1:29 PMAbstractMavenPublisher#publish
and see that its SnapshotMetadataResult snapshotMetadataResult
seems to refer to a different subproject. Oddly all the previous "check"/"validate" stuff used the correct detailsSteve Ebersole
01/14/2025, 1:30 PMSteve Ebersole
01/14/2025, 1:30 PMSteve Ebersole
01/14/2025, 1:34 PMhibernate-scan-jandex
. In the method I mentioned above it resolves SnapshotMetadataResult
pointing to file:/home/sebersole/projects/hibernate-orm/6.0/hibernate-orm/tooling/hibernate-maven-plugin/target/maven-embedder/maven-local/org/hibernate/orm/hibernate-scan-jandex/7.0.0-SNAPSHOT/maven-metadata-local.xml
hibernate-maven-plugin
is a completely separate subproject. Ultimately it is using a "correct" file, but the directory path seems oddSteve Ebersole
01/14/2025, 1:35 PMSteve Ebersole
01/14/2025, 1:41 PMSteve Ebersole
01/14/2025, 1:42 PMSteve Ebersole
01/14/2025, 1:43 PMSteve Ebersole
01/14/2025, 1:49 PMSteve Ebersole
01/14/2025, 1:50 PMVampire
01/14/2025, 1:52 PMVampire
01/14/2025, 1:52 PMVampire
01/14/2025, 1:52 PMVampire
01/14/2025, 1:53 PMSteve Ebersole
01/14/2025, 1:55 PMSteve Ebersole
01/14/2025, 1:55 PMSteve Ebersole
01/14/2025, 1:57 PMSteve Ebersole
01/14/2025, 1:58 PMSteve Ebersole
01/14/2025, 2:05 PMVampire
01/14/2025, 3:38 PM"myBuildService | ${project.path}"
.Steve Ebersole
01/14/2025, 3:47 PMNot sure how / why you use a build service thereYou mean as opposed to directly using MavenCLI in tasks?
Steve Ebersole
01/14/2025, 3:48 PMSteve Ebersole
01/14/2025, 3:48 PMVampire
01/14/2025, 4:33 PMSteve Ebersole
01/14/2025, 4:33 PM