Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3102

Upgrade to javax.annotation-api 1.2

    Details

      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>
      

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                metal-1.0.0
                bridge-impl-4.1.0
                portal-3.0.1
                showcase-3.0.1
                alloy-3.0.1