Once you have created a generic tag library, Autotag will automatically generate the corresponding library for Freemarker, JSP, or Velocity. You just create a maven project and include in pom.xml:
<dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-request-jsp</artifactId> <version>1.0</version> </dependency>
<dependency> <groupId>org.example</groupId> <artifactId>my-taglib</artifactId> <version>1.0-SNAPSHOT</version> </dependency>
<plugin> <groupId>org.apache.tiles.autotag.plugin</groupId> <artifactId>maven-autotag-plugin</artifactId> <version>1.0</version> <executions> <execution> <goals> <goal>generate-jsp</goal> </goals> <configuration> <packageName>org.example.mytaglib.jsp</packageName> <jspRuntime>org.apache.tiles.request.jsp.autotag.JspAutotagRuntime</jspRuntime> <taglibURI>http://example.org/mytaglib</taglibURI> </configuration> </execution> </executions> </plugin>
No further code is required.
one or several of the following goals may be used: