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

Jenkins get last test result when maven building fail
How can I make a goal optional in maven?
Cucumber Rerun failed features : Inconsistent filters: [#test1, #test, 23, 36]. Only one type [line,name,tag] can be used at once
Creating an external Maven packaging POM
How to Integrate BIRT Chart Engine 4.6.0 into maven project
Maven dependency plugin downloads POM instead of tar.gz
Maven get from Wrong repository
Artifactory Dependency Declaration does not match maven-metadata.xml or pom
Jenkins is not showing all executed Tests / Test Results in Build Overview
jBCrypt dependency not working
Maven not importing External Library into project after adding to .pom file in Intellij
docker-maven-plugin build assembly fail
Maven - How to override version?
Dependencies and Repositories?
DriverManager.getConnection never been executen in my maven project
Maven projects - how to read a property that is defined in the pom file of a project that is added as a dependency

Categories

HOME
multithreading
cookies
deezer
view
fme
grep
kalman-filter
jsp-tags
programming-languages
yahoo-oauth
fsm
datastax-java-driver
uber-api
paradox
fancybox-3
task
visual-studio-2005
quickfix
iron-router
serverless-framework
ghc
footer
apache-metamodel
normalizr
ml
tokenize
accessor
dcevm
hammerspoon
p-value
xpages-ssjs
poltergeist
react-css-modules
spring-mybatis
typo3-6.2.x
wtx
jaxb2
file-rename
madlib
google-sites-2016
typed.js
bitbucket-pipelines
angularjs-factory
particles.js
core-plot
janrain
modelmapper
flashair
google-datalayer
chain-builder
idisposable
drupal-6
colorama
windows-mobile-6.5
removechild
libpng
intrusion-detection
skobbler-maps
system.management
cloudbees
photobucket
jfugue
maven-tomcat-plugin
execute
fouc
ibaction
arcanist
composite
sonarqube5.1.2
skos
truevault
lustre
jscript.net
dml
srs
jsctypes
runtime.exec
quartz-graphics
shellexecute
yui-compressor
random-seed
specification-pattern
referrer
bitsharp
libstdc++
rdoc
broken-links
dotnethighcharts
cufon
django-tagging
recent-documents
ecl
cxxtest
digest-authentication
revisions
database-management
noscript
ubuntu-9.04
mdac
geneva-server

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