Fixed by adding dependency of jsr . Now the pom looks like this
<dependency>
<groupId>com.github.fge</groupId>
<artifactId>json-schema-validator</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>1.3.9</version>
<optional>true</optional>
</dependency>
Thanks,
Shubham
On Tue, Jan 5, 2016 at 2:35 PM, Shubham Pathak <[email protected]>
wrote:
> Hi,
>
> I am working on an operator that needs following dependency to be added in
> Malhar lib
> <dependency>
> <groupId>com.github.fge</groupId>
> <artifactId>json-schema-validator</artifactId>
> <version>2.0.1</version>
> </dependency>
>
> But when i add this, and try to build malhar library, i get following error
> /code/projects/Apache/incubator-apex-malhar/library/src/main/java/com/datatorrent/lib/io/fs/FileSplitterInput.java:[36,24]
> cannot find symbol
> [ERROR] symbol: class Nullable
> [ERROR] location: package javax.annotation
>
> On further investigation i noticed, when i add the above dependency,
> jsr305 jar doesn't show up in dependency hierarchy.
>
> If i remove the above dependency, jsr305 shows up.
>
> Can anyone please help ?
>
> Thanks,
> Shubham
>