Just simple mvn clean install
to install plugin to your local maven repository.
failAfterFullAnalysis
- true or falsetrue
- fail build only after full analysisfalse
- fail build immediately after first found violation
forbiddenTypes
- section where you can declare types you do not want to useforbiddenType
- type to check
<build>
<plugins>
<plugin>
<groupId>io.github.andreishilov</groupId>
<artifactId>sling-forbidden-types-maven-plugin</artifactId>
<version>0.0.1</version>
<configuration>
<failAfterFullAnalysis>true</failAfterFullAnalysis>
<forbiddenTypes>
<forbiddenType>granite/ui/components/foundation/form/fileupload</forbiddenType>
<forbiddenType>granite/ui/components/foundation/form/textfield</forbiddenType>
</forbiddenTypes>
</configuration>
<executions>
<execution>
<goals>
<goal>forbidden-types</goal>
</goals>
</execution>
</executions>
</plugin>
...
<build>
<plugins>
<plugin>
<groupId>io.github.andreishilov</groupId>
<artifactId>sling-forbidden-types-maven-plugin</artifactId>
<version>0.0.1</version>
<configuration>
<failAfterFullAnalysis>false</failAfterFullAnalysis>
<forbiddenTypes>
<forbiddenType>granite/ui/components/foundation/form/fileupload</forbiddenType>
</forbiddenTypes>
</configuration>
<executions>
<execution>
<goals>
<goal>forbidden-types</goal>
</goals>
</execution>
</executions>
</plugin>
...