-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Javadocs not always working for -SNAPSHOT versions #1905
Comments
Hi, I have reproduced this bug with the steps you provided. Currently, Reposilite uses the following code to determine the latest snapshot version: reposilite/reposilite-backend/src/main/kotlin/com/reposilite/javadocs/JavadocContainerService.kt Lines 66 to 73 in dc03731
I had a look at the <snapshot>
<timestamp>20230817.140707</timestamp>
<buildNumber>2</buildNumber>
</snapshot> This issue seems to be caused by the build number here being I am currently unsure of what is causing the build numbers to differ, and as soon as I have some more spare time, I will investigate further. |
Hi, thanks for the quick reply. I am unsure why maven produces this "2" buildNumber - maybe it helps if I link the repo for that artifact? (You probably won't be able to build it as it relies on many minecraft libraries that are not available in any public repository - there's a "run-buildtools.sh" file included that install all required dependencies, but I doubt you wanna run that haha): https://github.com/JEFF-Media-GbR/JeffLib However the pom doesn't do any funny things. Hmmm... |
I was finally able to reproduce this issue in Maven yesterday. When this happens, it appears that each run bumps the Could you check whether this occurs when you publish your artifacts? |
It sounds quite strange, I wonder if it's intended behavior of Maven deploy plugin 🤔 |
What happened?
Hi, when I
mvn deploy
one of my things as a -SNAPSHOT version, the javadocs link in the browser is sometimes not working. I don't really know when or why this happens, but it only seems to happen for multi-module maven artifacts that use -SNAPSHOT in the version.Example: https://repo.jeff-media.com/#/public/com/jeff-media/jefflib/jefflib-core/13.0.0-SNAPSHOT
If you go there, you'll notice there's a javadoc .jar called
jefflib-core-13.0.0-20230817.140707-1-javadoc.jar
. When I click on the "book" button to open the javadoc browser though, it tries to openjefflib-core-13.0.0-20230817.140707-2-javadoc.jar
instead, which in turns correctly tells me that this doesn't exist:{"status":404,"message":"Cannot find 'com/jeff-media/jefflib/jefflib-core/13.0.0-SNAPSHOT/jefflib-core-13.0.0-20230817.140707-2-javadoc.jar' in local and remote repositories"}
Reposilite version
3.x
Relevant log output
No response
The text was updated successfully, but these errors were encountered: