How to add a list of developers to a site created by maven?

I just started using maven and ask a question. My pom.xml contains a "developer" tag with complete information about the team. What should I do to make this list visible on my project site? I know how to add a menu item to site.xml. But where should this paragraph refer?

I found only one project in Jakarat that does this: maven itself. They have tag developers in pom and the link "Maven Team" on the site. This link refers to the -list.html command. I downloaded the full maven source and launched the "mvn site", but this file was not created in my environment, and grepping files did not help either.

Does anyone know how to do this?

+3
source share
2 answers

I'm not sure that this has always been the case, but it seems that the Project Team ( team-list.html) report should be generated by default at the time mvn siteand available under Project Information . I just checked this with a project example and it works as expected.

If this is not the case, try maven-project-info-reports-pluginsetting it explicitly to generate a report.

<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.2</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>index</report>
              <report>project-team</report>
              ...
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      ...
    </plugins>
  </reporting>
  ...
</project>

Are you using a specific version of the maven site plugin? Which version of Maven exactly?

+2
source

the command mvn siteshould work, and your POM should look something like this:

...
    <!-- List the core committers -->
    <developers>
      <developer>
        <id>karianna</id>
        <name>Martijn Verburg</name>
        <organization>Ikasan</organization>
        <organizationUrl>http://www.ikasan.org</organizationUrl>
        <roles>
          <role>developer</role>
        </roles>
        <timezone>0</timezone>
      </developer>
      ...
    </developers>

    <!-- Contributors -->
    <contributors>
        <contributor>
            <name>Cae Fernandes</name>
            <roles>
                <role>developer</role>
            </roles>
            <timezone>-3</timezone>
        </contributor>
        ...
     </contributors>
...
+4
source

Source: https://habr.com/ru/post/1774343/


All Articles