Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8183813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:17:01+00:00 2026-06-07T01:17:01+00:00

I have Maven javadoc plugin working nicely right now, but I do not know

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:17:03+00:00Added an answer on June 7, 2026 at 1:17 am

    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?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In pom.xml I have declaration like this <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>attach-javadocs</id> <goals>
I have maven-plagin and need to run goal, that should automatically run before plugin.
I have a Maven Java project, imported using m2eclipse . The target/ directory is
I have just started to use Apache Maven. Now I would like to make
I have an Android Maven project using maven-eclipse-plugin and android-maven-plugin. Since it grabs the
I use maven 3 and have my javadoc configured according to the new maven
I have maven project that consists of several modules. I want to add an
I have a Maven project that uses the jaxb2-maven-plugin to compile some xsd files.
I have a maven plugin that should run in the compile phase, so in
I use Eclipse (Indigo) with the M2E plugin for maven. Now for some reason

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.