Skip to content

Commit 616a005

Browse files
committed
validation - Providing el api & impl dependencies in restx-validation, in order to make interpolation work in validation error messages (like @SiZe)
1 parent 91891fe commit 616a005

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

restx-validation/pom.xml

+17
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<maven.compiler.target>1.7</maven.compiler.target>
2121
<maven.compiler.source>1.7</maven.compiler.source>
2222
<hibernate-validator.version>5.0.1.Final</hibernate-validator.version>
23+
<el.api.version>2.2</el.api.version>
2324
</properties>
2425

2526
<dependencies>
@@ -32,6 +33,22 @@
3233
<groupId>org.hibernate</groupId>
3334
<artifactId>hibernate-validator</artifactId>
3435
<version>${hibernate-validator.version}</version>
36+
<!--
37+
Using compile scope here, and not runtime, because we may need to use some
38+
hibernate-validator specific annotations (like @Email)
39+
-->
40+
<scope>compile</scope>
41+
</dependency>
42+
<dependency>
43+
<groupId>javax.el</groupId>
44+
<artifactId>el-api</artifactId>
45+
<version>${el.api.version}</version>
46+
</dependency>
47+
<dependency>
48+
<groupId>org.glassfish.web</groupId>
49+
<artifactId>el-impl</artifactId>
50+
<version>${el.api.version}</version>
51+
<scope>runtime</scope>
3552
</dependency>
3653
</dependencies>
3754

0 commit comments

Comments
 (0)