Examples

Skip Scan

Use the skipScan configuration property to skip the scan if necessary

<plugin>
    <groupId>com.optum.sourcehawk.maven</groupId>
    <artifactId>sourcehawk-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>scan</id>
            <goals>
                <goal>scan</goal>
            </goals>
            <configuration>
                <skipScan>true</skipScan>
            </configuration>
        </execution>
    </executions>
</plugin>

Prevent Build from Failing

Set the failBuild property to false to prevent the build from failing even if the scan fails.

<plugin>
    <groupId>com.optum.sourcehawk.maven</groupId>
    <artifactId>sourcehawk-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>scan</id>
            <goals>
                <goal>scan</goal>
            </goals>
            <configuration>
                <failBuild>false</failBuild>
            </configuration>
        </execution>
    </executions>
</plugin>

Custom Configuration File

Override the default configuration file name with the configurationFile property.

<plugin>
    <groupId>com.optum.sourcehawk.maven</groupId>
    <artifactId>sourcehawk-maven-plugin</artifactId>
    <executions>
        <execution>
            <id>scan</id>
            <goals>
                <goal>scan</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <configurationFile>Sourcehawk</configurationFile>
    </configuration>
</plugin>