com.arpnetworking.build:build-resources

Common build resources used to build ArpNetworking projects.


License
Apache-2.0

Documentation

build-resources

License: Apache 2 Travis Build Maven Artifact

Resources for building Arp Networking projects.

Usage

Checkstyle

Determine the latest version of the build resources in Maven Central. If you have not, you should consider using the Arp Networking Parent Pom instead of directly integrating with the build-resources package.

To integrate with the Maven Checkstyle Plugin declare a dependency on the build-resources package. The configLocation and propertyExpansion must be set as shown below and the other settings can be customized as desired.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-checkstyle-plugin</artifactId>
    <version>${maven.checkstyle.plugin.version}</version>
    <executions>
        <execution>
            <id>checkstyle-check</id>
            <phase>verify</phase>
            <goals>
                <goal>checkstyle</goal>
                <goal>checkstyle-aggregate</goal>
                <goal>check</goal>
            </goals>
            <configuration>
                <consoleOutput>true</consoleOutput>
                <logViolationsToConsole>true</logViolationsToConsole>
                <failOnViolation>true</failOnViolation>
                <maxAllowedViolations>0</maxAllowedViolations>
                <includeTestSourceDirectory>true</includeTestSourceDirectory>
                <configLocation>checkstyle.xml</configLocation>
                <propertyExpansion>
                     suppressions_file=${project.build.directory}/checkstyle-suppressions.xml
                     header_file=${project.build.directory}/al2
                </propertyExpansion>
            </configuration>
        </execution>
    </executions>
   <dependencies>
       <dependency>
           <groupId>com.arpnetworking.build</groupId>
           <artifactId>build-resources</artifactId>
           <version>VERSION</version>
       </dependency>
   </dependencies>
</plugin>

© Arp Networking, 2015