Permalink
Browse files

validation - Providing el api & impl dependencies in restx-validation…

…, in order to make interpolation work in validation error messages (like @SiZe)
  • Loading branch information...
fcamblor committed Dec 22, 2014
1 parent 91891fe commit 616a005e84893e11cd53f81f8b133b046691219d
Showing with 17 additions and 0 deletions.
  1. +17 −0 restx-validation/pom.xml
View
@@ -20,6 +20,7 @@
<maven.compiler.target>1.7</maven.compiler.target>
<maven.compiler.source>1.7</maven.compiler.source>
<hibernate-validator.version>5.0.1.Final</hibernate-validator.version>
+ <el.api.version>2.2</el.api.version>
</properties>
<dependencies>
@@ -32,6 +33,22 @@
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>${hibernate-validator.version}</version>
+ <!--
+ Using compile scope here, and not runtime, because we may need to use some
+ hibernate-validator specific annotations (like @Email)
+ -->
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.el</groupId>
+ <artifactId>el-api</artifactId>
+ <version>${el.api.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish.web</groupId>
+ <artifactId>el-impl</artifactId>
+ <version>${el.api.version}</version>
+ <scope>runtime</scope>
</dependency>
</dependencies>

0 comments on commit 616a005

Please sign in to comment.