The Apache Sling HTL Maven Plugin, M2Eclipse compatible, provides support for validating HTML Template Language scripts from projects during build time.
htl:validate
- validate the scripts from the build directory (${project.build.sourceDirectory}
)<build> <plugins> <plugin> <groupId>org.apache.sling</groupId> <artifactId>htl-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <id>validate-scripts</id> <goals> <goal>validate</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
htl:validate
Full name: org.apache.sling:htl-maven-plugin:1.0.0:validate
Description: Validates HTL scripts syntax during the build process.
Name | Type | Since | Description |
---|---|---|---|
sourceDirectory | String | 1.0.0 | Defines the root folder where this goal expects to find Sightly scripts to validate. |
includes | String[] | 1.0.0 | List of files to include, specified as fileset patterns which are relative to sourceDirectory . |
excludes | String[] | 1.0.0 | List of files to exclude, specified as fileset patterns which are relative to sourceDirectory . |
failOnWarnings | boolean | 1.0.0 | If set to true it will fail the build on compiler warnings. |
skip | boolean | 1.0.2 | If set to true the validation will be skipped. |
sourceDirectory:
Defines the root folder where this goal expects to find Sightly scripts to validate.
java.lang.String
sourceDirectory
${project.build.sourceDirectory}
includes:
List of files to include, specified as fileset patterns which are relative to sourceDirectory
.
java.lang.String[]
includes
**/*.html
excludes:
List of files to exclude, specified as fileset patterns which are relative to sourceDirectory
.
java.lang.String[]
excludes
failOnWarnings:
If set to true
it will fail the build on compiler warnings.
boolean
failOnWarnings
false
skip:
If set to true
the validation will be skipped.
boolean
htl.skip
false