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

The Liferay Faces demos shouldn't have a compile time dependency on the Liferay Faces Bridge implementation

    Details

      Description

      {markdown}
      The Liferay Faces demos specify a dependency on the Liferay Faces Bridge implementation like so:

      <dependency>
      <groupId>com.liferay.faces</groupId>
      <artifactId>liferay-faces-bridge-impl</artifactId>
      <version>${project.version}</version>
      </dependency>

      [The implicit <scope> of this dependency is compile.](http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html) However, Liferay Faces portlets should not depend on the Bridge implementation for compilation purposes. Instead, they should depend on the Bridge API `jar` and only depend on the Bridge impl at runtime. In order to accomplish this, the above dependency must be modified like so:

      <dependency>
      <groupId>com.liferay.faces</groupId>
      <artifactId>liferay-faces-bridge-api</artifactId>
      <version>${project.version}</version>
      </dependency>
      <dependency>
      <groupId>com.liferay.faces</groupId>
      <artifactId>liferay-faces-bridge-impl</artifactId>
      <version>${project.version}</version>
      <scope>runtime</scope>
      </dependency>
      {markdown}

        Attachments

          Activity

            People

            Assignee:
            kyle.stiemann Kyle Stiemann (Inactive)
            Reporter:
            kyle.stiemann Kyle Stiemann (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                liferay-faces-2.1.5-ga6
                liferay-faces-2.2.5-ga6
                liferay-faces-3.0.5-legacy-ga6
                liferay-faces-3.0.5-ga6
                liferay-faces-3.1.5-ga6
                liferay-faces-3.2.5-ga6
                liferay-faces-4.2.5-ga6