Removing the About Us link from maven

I am using an mvn site to create site documentation. For the most part, I am satisfied with the default site, but I would like to remove the "About" link in the left menu bar and just specify the default "Project Information" page. Is there an easy way to do this?

+4
source share
3 answers

I did not use this plugin at all and just used the maven-site-plugin. Maven 3 has a reportPlugins maven pom configuration section that allows you to specify which reports you want to display http://maven.apache.org/plugins/maven-site-plugin/maven-3.html

org.apache.maven.plugins Maven plugin site 3.0 org.codehaus.mojo Cobertura-Maven plugin

I also provided my own index.apt file (in the src / site / apt file) to customize the text of the index page.

0
source

The "About" report is still included here. All other standard reports are deleted.

<reporting> <plugins> <!-- Add the Maven project information reports --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.1.2</version> <reportSets> <reportSet> <reports> <report>index</report> <!-- <report>dependencies</report> <report>project-team</report> <report>mailing-list</report> <report>cim</report> <report>issue-tracking</report> <report>license</report> <report>scm</report> --> </reports> </reportSet> </reportSets> </plugin> </plugins> </reporting> 
+2
source

You can either change the source, or comment on it, or add a css selector to it, or add a JS library, such as jQuery, and delete it when the page loads through something like:

 $(function () { // untested $('#navcolumn h5:contains("Maven")').hide(); // hide the header $('#navcolumn h5:contains("Maven") + ul ').hide(); // hide the ul })(); 
+1
source

All Articles