maven


Generate javadoc in maven and then upload via scp?


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:
To generate javadocs as part of the site generation, you should add the Javadoc Plugin in the section of your pom:
<project>
...
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version>
<configuration>
...
</configuration>
</plugin>
</plugins>
...
</reporting>
...
</project>
When you execute mvn site, the javadocs will be generated and included in the generated site. A link to the javadocs will be added in the Project Reports menu.
Alternatively, if you use maven-release-plugin, javadoc generation (and upload) is automatically handled by default, see here:
The following delvierables are created and deployed to local and remoted repositories after the execution of the release:perform goal has finished.
artifact id-version.jar
The binaries for the current release of the project.
artifact id-version-javadoc.jar
The javadoc explaining the current functionality of the classes within the current release.
artifact id-version-source.jar
The source code revisions used to build the current release of the project.
artifact id-version.pom
The contents of the pom.xml file used to create the current release of the project.
If you want to attach javadoc generation to some phase/goal other than site, check out How to deploy Javadoc jar file?

Related Links

No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean'
IOException issues
Run JMeter headless with maven with AMQP plug in
Can I get Maven to turn a file into properties I can use in my Maven script?
Deploy an artifact into Archiva repo using maven POM
Alternative place to specify mvn --fail-at-end command line option?
Maven - Not able to open jars it is downloading
Deploy p2 repo to Nexus
System.Diagnostics.Debug.WriteLine() Does Not Work Under NUnit Console
how to use maven with intellij 13
Automatically download missing artifacts if missing in Artifactory
How to package up a leiningen project for recompilation with all the libraries included? [for users without an internet connection]
How to fail when maven profile does not exist?
Sharing dependencies not in central repo with the project
license issue in mule when building with junit test cases
Change Maven repository that NetBeans uses

Categories

HOME
cakephp
google-chrome-extension
c#-4.0
mediawiki
single-sign-on
appx
read-eval-print-loop
rsyslog
yahoo-oauth
react-redux
rdf
webpack-2
installshield
fingerprint
azure-storage-tables
facebook-php-sdk
resize
zend-framework3
size
google-static-maps
invantive-sql
database-replication
flux
interop
karma-jasmine
paging
one-hot-encoding
jquery-ajaxq
arabic
opennlp
kannel
react-css-modules
replaceall
wtx
primitive
nat
bcd
framemaker
devextreme
bitbucket-pipelines
mixture-model
serverside-rendering
dynamics-crm-2013
google-closure
botbuilder
keydown
gpx
google-datalayer
jsch
hibernate-tools
termination
promela
hls.js
veracode
idisposable
snmptrapd
google-perftools
dynamics-sl
django-scheduler
word-vba-mac
medium.com
gridpane
azure-sdk
url-masking
phishing
multi-level
impresspages
clang-static-analyzer
testng-dataprovider
pickadate
twirl
nsight
remobjects
android-nested-fragment
mdt
project-planning
contenttype
java.nio.file
chronoforms
flashvars
kyotocabinet
specification-pattern
angularjs-controller
sublist
gdata-api
ocx
windows-phone-7.1.1
enter
nsdatecomponents
libc++
subgurim-maps
invite
celltable
android-sdk-2.1
datareader
wise
dbal
web-architecture
javap
multiple-languages
django-notification
signal-handling

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App