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 294239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:20:56+00:00 2026-05-12T06:20:56+00:00

I have a multi-module project and I want to deploy on the project’s site

  • 0

I have a multi-module project and I want to deploy on the project’s site an HTML version of my source code using the JXR maven plugin.

The problem is that the JXR plugin runs well, the XREF folder is properly generated for each of my module, but when I use the mvn site:stage command in order to retrieve all the project’s site content and to have all link properly generated it does not retrieve the XREF folders.

Here is an extract of my POM file where the JXR plugin is configured:

<plugin>
   <groupId>org.codehaus.mojo</groupId>
   <artifactId>jxr-maven-plugin</artifactId>
   <configuration>
      <aggregate>true</aggregate>
   </configuration>
</plugin>

Here is the command I use to create and stage my site:

mvn site site:stage

Do you guys have any idea?

Thanks in advance.

r.

  • 1 1 Answer
  • 1 View
  • 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-05-12T06:20:56+00:00Added an answer on May 12, 2026 at 6:20 am

    Not sure this is relevant, but your command is running the site twice, mvn site will generate the site, and site:stage will also run the site, perhaps this is causing problems but I honestly can’t see why.

    Looking at the JXR documentation, it only mentions the site:site goal, I can’t see why it wouldn’t be run properly for the site:stage goal as it extends it. If you run the site goal, then copy the output to another directory, run the site:stage goal and compare the output it might give some insight into the problem.

    Update: I tried this myself and the xref was included and aggregated nicely in c:\test\stage with the cross references correctly managed. I’ve included the configuration I used.

    In my parent pom I defined the site configuration like this:

    <build>
      <plugins>
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <executions>
            <execution>
              <phase>prepare-package</phase>
              <goals>
                <goal>stage</goal>
              </goals>
            </execution>
          </executions>
          <configuration>
            <stagingDirectory>c:\test\stage</stagingDirectory>
          </configuration>
        </plugin>
      </plugins>
    </build>
    

    The distributionManagement section was configured with the site information (not really needed as I set the stagingDirectory above, but the goal won’t run without it).

    <distributionManagement>  
      <site>
        <id>mojo.website</id>
        <name>Mojo Website</name>
        <url>scp://test/</url>
      </site>
    </distributionManagement>
    

    My JXR configuration in the parent pom was as follows:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-jxr-plugin</artifactId>
      <reportSets>
        <reportSet>
          <id>src-xref</id>
          <reports>
            <report>jxr</report>
          </reports>
        </reportSet>
        <reportSet>
          <id>test-xref</id>
          <reports>
            <report>test-jxr</report>
          </reports>
        </reportSet>
      </reportSets>
      <configuration>
        <aggregate>true</aggregate>
      </configuration>
    </plugin>
    

    The commandline run was mvn clean site:stage

    Edit: Per the comments, there is a codehaus jxr plugin with slightly different semantics. Be sure to use the org.apache.maven.plugins version rather than the org.codehaus.mojo version.

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

Sidebar

Related Questions

I have a Java multi-module Maven project that I want to build an MVN
I have a multi-module maven project with an installer sub-project. The installer will be
I have a multi-module maven project (several levels of nesting). Normally, when I execute
I have created a multi module maven project. Now I have shared the project
Basically, I have a multi-module project consisting of 5 different modules. One of the
I have a multi-line string that I want to do an operation on each
I have a multi-table query, similar to this (simplified version) SELECT columns, count(table2.rev_id) As
I have a multi-user ASP.NET app running against SQL Server and want to have
This is my parent pom.xml (part of it) in a multi-module project: ... <build>
Modern browsers have multi-tab interface, but JavaScript function window.showModalDialog() creates a modal dialog that

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.