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

  • SEARCH
  • Home
  • 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 608295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:26:51+00:00 2026-05-13T17:26:51+00:00

I can easily see if there are conflicts between (transitive) dependency versions using: mvn

  • 0

I can easily see if there are conflicts between (transitive) dependency versions using:

mvn dependency:tree -Dverbose=true

… this will show the full resolution tree, including which elements were omitted (for duplicate or conflict or whatever). What I would like to do is to add the full tree to the ‘mvn site’ report.

Currently, the site report includes the dependency tree but only as resolved, i.e., without any conflicts. I see in the project-info-reports plugin that there is not currently any way to do what I want using the standard report.

I tried adding a section to the pom to include the maven-dependency-plugin ‘tree’ goal with the outputFile specified, but it wasn’t included when I ran ‘mvn site’. It was something like this:

<reporting>
  ....
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-dependency-plugin</artifactId>
      <reportSets>
        <reportSet>
          <id>deptree</id>
          <reports>
            <report>tree</report>
          </reports>
          <configuration>
            <verbose>true</verbose>
            <outputFile>${project.reporting.outputDirectory}/deptree.txt</outputFile>
          </configuration>

Of course, the ‘tree’ goal is explicitly identified as not a report, but I was hoping to at least be able to produce a file that I could link to from the generated site. No dice.

Is there any way to force an arbitrary plugin’s goal to execute during site generation? Am I totally out of luck here? Obviously I could write my own reporting plugin to do this, and/or submit a patch for the project-info-reports plugin, but I want to make sure I’ve exhausted all the built-in maven options.

(I’m using maven 2.1.0, but I didn’t see anything about a change to this functionality in the release notes for later versions.)

  • 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-05-13T17:26:51+00:00Added an answer on May 13, 2026 at 5:26 pm

    Is there any way to force an arbitrary plugin’s goal to execute during site generation? Am I totally out of luck here?

    Just to answer your question, you can bind a mojo to the pre-site phase of the Site Lifecycle:

    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-dependency-plugin</artifactId>
          <executions>
            <execution>
              <id>tree</id>
              <phase>pre-site</phase>
              <goals>
                <goal>tree</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </build>
    <reporting>
      ...
    </reporting>
    

    If you then run mvn site, dependency:tree will run.

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

Sidebar

Ask A Question

Stats

  • Questions 304k
  • Answers 304k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you would have send your error to the AnkhSVN… May 13, 2026 at 8:54 pm
  • Editorial Team
    Editorial Team added an answer How about using a scrollable canvas instead, and only ever… May 13, 2026 at 8:54 pm
  • Editorial Team
    Editorial Team added an answer There are two related reasons for this. First, it helps… May 13, 2026 at 8:54 pm

Related Questions

Is there any sort of out of the box system within SharePoint (i.e. MOSS
I wonder if there is an easy way to check if two strings match
How can I expose a Java bean to a JSP page by using struts?
Hi does anyone know if there are any inbuilt classes for resolving a bound
I am just learning how to write mutithreaded programs right now and I have

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.