1

In a effective pom I see

<plugin>
    <artifactId>maven-site-plugin</artifactId>
    <version>3.3</version>
    <executions>
      <execution>
        <id>default-site</id>
        <phase>site</phase>
        <goals>
          <goal>site</goal>
        </goals>
        <configuration>
          <outputDirectory>/home/tatiana/repos/selenium-tests/masbuilder-tests/target/site</outputDirectory>
          <reportPlugins>
            <reportPlugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-project-info-reports-plugin</artifactId>
            </reportPlugin>
          </reportPlugins>
        </configuration>
      </execution>
      <execution>
        <id>default-deploy</id>
        <phase>site-deploy</phase>
        <goals>
          <goal>deploy</goal>
        </goals>
        <configuration>
          <outputDirectory>/home/tatiana/repos/selenium-tests/masbuilder-tests/target/site</outputDirectory>
          <reportPlugins>
            <reportPlugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-project-info-reports-plugin</artifactId>
            </reportPlugin>
          </reportPlugins>
        </configuration>
      </execution>
    </executions>
    <configuration>
      <outputDirectory>/home/tatiana/repos/selenium-tests/masbuilder-tests/target/site</outputDirectory>
      <reportPlugins>
        <reportPlugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-project-info-reports-plugin</artifactId>
        </reportPlugin>
      </reportPlugins>
    </configuration>
  </plugin>

But I don't use maven-site-plugin and when I execute mvn dependency:tree

then I don't see any mention of maven-site-plugin or "site" keyword or maven-project-info-reports-plugin in output.

The same for mvn dependency:tree -Dverbose

The problem is error in effective POM which I would like to remove: element reportplugins is not allowed here

Maybe it is related with maven-surefire-plugin which I use?

Tatiana
  • 381
  • 4
  • 18

2 Answers2

2

If dependency is already present with the higher version in the tree, then all jruby-complete's dependencies are listed at shallower depth in tree, because dependency tree mojo prunes lower level dependencies.

You can use mvn dependency:tree -Dverbose=true to show the ommitted dependencies.

Anshul Sharma
  • 3,432
  • 1
  • 12
  • 17
  • verbose might not work with Maven 3: "Notice this feature actually uses Maven 2 algorithm and may give wrong results when used with Maven 3" https://maven.apache.org/plugins/maven-dependency-plugin/tree-mojo.html – Eray Tufan Dec 15 '21 at 02:13
0

verbose might not work for Maven 3. There is also another solution from different question by using depgraph-maven-plugin:

mvn com.github.ferstl:depgraph-maven-plugin:3.3.0:graph -DrepeatTransitiveDependenciesInTextGraph -DshowVersions -DgraphFormat=text -DshowGroupIds -DshowConflicts -DshowDuplicates

Eray Tufan
  • 211
  • 1
  • 8