Maven taglib Plug-in

Maven Taglib Plug-in is a maven plugin for jsp tag libraries developers. It eases the generation, documentation and testing of jsp tag libraries.

The xslt scripts in this plugin were initially developed in the displaytag project. You can see an example of maven-taglib generated reports on displaytag web site.

Maven 2

A Maven 2 version of the Taglib Plug-in is available.

Installation

To automatically install the plugin, type the following on a single line:

                
maven plugin:download
  -Dmaven.repo.remote=http://maven-taglib.sourceforge.net/maven
  -DgroupId=maven-taglib
  -DartifactId=maven-taglib-plugin
  -Dversion=1.4.2            
            

To add the taglib plugin as a dependency for your project, add the following to the dependencies list in your project.xml:

                
<dependency>
    <groupId>maven-taglib</groupId>
    <artifactId>maven-taglib-plugin</artifactId>
    <version>1.4.2</version>
    <type>plugin</type>
    <url>http://maven-taglib.sourceforge.net</url>
</dependency>
            
            

Usage

See the goals page for the list of goals available in the maven taglib plugin. Most of the features are now accessible by simply adding

                
   <report>taglib</report>
          
            

to the reports section in your pom. This will trigger the generation of:

  • tldDoc documentation (linked in the project documentation section)
  • a tag library validation report (linked in the project documentation section)
  • a tag reference page for each tld (not automatically linked, see goals for details )