javadoc.io icon indicating copy to clipboard operation
javadoc.io copied to clipboard

Feature request: support publishing Maven plugin documentation

Open ascopes opened this issue 1 year ago • 7 comments
trafficstars

Not sure if this is the right forum or whether this is already supported. I was hoping to raise this as a discussion rather than an issue but it appears that the tab is disabled for that here.

I have developed a Maven plugin. Right now, I have only got GitHub pages available to host the site generated by ./mvnw site. This is mostly fine but means I cannot easily publish older versions of my documentation permanently.

I am wondering if it would be possible to potentially support me uploading my Maven site within a JAR to Maven Central similar to how JavaDocs are uploaded to there, or failing that allow some kind of API endpoint I can POST a generated site to so that I can make use of javadoc.io to publish the Maven plugin documentation.

Would this be considered reasonable, do you think?

ascopes avatar Jun 10 '24 06:06 ascopes

hi, the maven plugin you are using, is it for central maven repo? If that's the case it is automatically sync to javadoc.io already

maxcellent avatar Jun 10 '24 12:06 maxcellent

yep it is! Do I just visit the URL matching the GAV in that case, or do I need to configure the site artifacts?

Thanks for the quick response

ascopes avatar Jun 10 '24 16:06 ascopes

yes, I believe visiting the URL is enough. Please let me know if this is not the case

maxcellent avatar Jun 11 '24 12:06 maxcellent

So I've just double checked... it appears to be pointing at the JavaDocs themselves rather than the output of ./mvnw site, which was what I was mostly expecting.

Is there a way to publish that output in place of this?

ascopes avatar Jun 11 '24 13:06 ascopes

@maxcellent sorry to bother, but is there any update on how to work around this, or how to package Maven Site output in such a way it is handled correctly? It is difficult to test this without making actual releases of my software.

ascopes avatar Sep 28 '24 09:09 ascopes

hi, do you have a sample library for me to check?

maxcellent avatar Sep 28 '24 13:09 maxcellent

https://github.com/ascopes/protobuf-maven-plugin/tree/main

./mvnw clean site -Dmaven.test.skip -Dinvoker.skip

Requires JDK 11 through 23.

Thanks for taking a look. It is greatly appreciated.

ascopes avatar Sep 28 '24 15:09 ascopes