I have Maven javadoc plugin working nicely right now, but I do not know how to add it to the remote directory via scp.
How do I transfer the javadoc files via scp, but AFTER they have been generated? Can this automatically happen when I call site:site?
Thanks!
maven-javadoc-plugin doesn’t attach to any phase/goal by default, you need configure it manually in pom.xml.
See Generate Javadocs As Part Of Project Reports:
Alternatively, if you use maven-release-plugin, javadoc generation (and upload) is automatically handled by default, see here:
If you want to attach javadoc generation to some phase/goal other than site, check out How to deploy Javadoc jar file?