Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
alloy-3.0.0, portal-3.0.0, metal-1.0.0, bridge-impl-4.0.0, showcase-3.0.0
-
None
Description
Problem Background
This task involves updating branches that rely on JSF 2.2 from version 1.0 to version 1.2 of the Annotations API. Currently the rely on version 1.0 which is incorrect, since JSF 2.2 / CDI 1.2 applications may require the @Priority annotation in order to support @Alternative CDI producers.
Reference
Java EE 6 (which includes CDI 1.1 and JSF 2.1) requires:
<dependency> <groupId>javax.annotation</groupId> <artifactId>jsr250-api</artifactId> <version>1.1</version> <scope>provided</scope> </dependency>
(see JavaDoc)
Java EE 7 (which includes CDI 1.2 and JSF 2.2) requires:
<dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.2</version> <scope>provided</scope> </dependency>
(see JavaDoc)
Java EE 8 (which includes CDI 2.0 and JSF 2.3) will require:
<dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.3</version> <scope>provided</scope> </dependency>