public class AnnotationVerifier extends Object
Can be configured for compile time verification in a maven build using the exec-maven-plugin as follows:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<id>check-json-annotations</id>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includeProjectDependencies>true</includeProjectDependencies>
<includePluginDependencies>true</includePluginDependencies>
<mainClass>com.fasterxml.jackson.contrib.jsonpath.annotation.AnnotationVerifier</mainClass>
<killAfter>-1</killAfter>
<arguments>
<argument>${project.basedir}/src/main/java/com/elasticpath/</argument>
</arguments>
</configuration>
</plugin>
| Constructor and Description |
|---|
AnnotationVerifier() |
public static void main(String[] args) throws IOException
JsonPath and JsonProperty annotations are compilable
by PathCompiler in the provided files, and recursively through the provided
directories.args - the files or directories to be checkedIOException - if file is not found or annotation is invalidCopyright © 2015 Elastic Path Software, Inc. All rights reserved.