jakarta.faces
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.liferay.faces</groupId>
<artifactId>jakarta.faces</artifactId>
<version>2.3.21.LIFERAY-PATCHED-1</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<!--
Project to create the Mojarra implementation jar.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.glassfish</groupId>
<artifactId>mojarra-parent</artifactId>
<version>2.3.21</version>
</parent>
<groupId>com.liferay.faces</groupId>
<artifactId>jakarta.faces</artifactId>
<packaging>jar</packaging>
<version>${project.parent.version}.LIFERAY-PATCHED-1</version>
<name>Mojarra ${project.version}</name>
<description>EE4J Compatible Implementation for Jakarta Faces API</description>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<mojarra.logstrings.version>${project.version}</mojarra.logstrings.version>
</properties>
<!-- ### D E P E N D E N C I E S ### -->
<dependencies>
<!-- Java EE Dependencies -->
<dependency>
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
<version>1.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>4.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp</groupId>
<artifactId>jakarta.servlet.jsp-api</artifactId>
<version>2.3.4</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.servlet.jsp.jstl</groupId>
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
<version>1.2.3</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.websocket</groupId>
<artifactId>jakarta.websocket-api</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.el</groupId>
<artifactId>jakarta.el-api</artifactId>
<version>3.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>2.0.SP1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
<version>1.1.5</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.ejb</groupId>
<artifactId>jakarta.ejb-api</artifactId>
<version>3.2.4</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<!--
For the vendor SPI implementations shipped with Mojarra.
See package com.sun.faces.vendor
TODO: Is this really needed still? These are extremely old
-->
<!-- Jetty 6 -->
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-plus</artifactId>
<version>6.1.26</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-annotations</artifactId>
<version>6.1.26</version>
<optional>true</optional>
</dependency>
<!-- Tomcat 6 -->
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>catalina</artifactId>
<version>6.0.51</version>
<scope>provided</scope>
</dependency>
<!-- TEST DEPENDENCIES -->
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>javax.el</artifactId>
<version>2.2.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-easymock</artifactId>
<version>1.4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>1.4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
<excludes>
<exclude>**/LogStrings*.properties</exclude>
</excludes>
</resource>
<!-- Sets the Main JSF version into the log strings -->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/LogStrings*.properties</include>
</includes>
</resource>
</resources>
<plugins>
<!-- ### C O M P R E S S / M I N I F Y JSF.JS ### -->
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<version>1.5.1</version>
<executions>
<execution>
<id>minify-jsf-js</id>
<phase>generate-sources</phase>
<goals>
<goal>compress</goal>
</goals>
<configuration>
<nosuffix>true</nosuffix>
<preProcessAggregates>true</preProcessAggregates>
<aggregations>
<aggregation>
<includes>
<include>${project.basedir}/src/main/resources/META-INF/resources/javax.faces/jsf-uncompressed.js</include>
</includes>
<output>${project.build.directory}/generated-resources/yui/jsf.js</output>
</aggregation>
</aggregations>
<includes>
<include>*.js</include>
</includes>
<sourceDirectory>${project.build.directory}/generated-resources/yui</sourceDirectory>
<outputDirectory>${project.build.directory}/generated-resources/yui/META-INF/resources/javax.faces/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- Adds the paths where the source and resources generated above was stored -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>generate-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>${project.build.directory}/generated-resources/yui</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Creates the OSGi MANIFEST.MF file -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>5.1.8</version>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<Bundle-SymbolicName>org.glassfish.jakarta.faces</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-Name>Mojarra JSF Implementation ${project.version}</Bundle-Name>
<Bundle-Description>Eclipse Faces Implementation (jakarta.faces/2.3) ${project.version}</Bundle-Description>
<Specification-Title>Jakarta Server Faces</Specification-Title>
<Specification-Version>2.3</Specification-Version>
<Implementation-Title>Mojarra</Implementation-Title>
<Implementation-Version>${project.version}</Implementation-Version>
<Implementation-Vendor>Eclipse</Implementation-Vendor>
<Implementation-Vendor-Id>org.glassfish</Implementation-Vendor-Id>
<Extension-Name>javax.faces</Extension-Name>
<Export-Package>
javax.faces.*;version=2.3,
com.sun.faces.*;version=2.3
</Export-Package>
<Import-Package>
com.sun.enterprise.*;resolution:=optional,
javax.annotation.*,
javax.crypto.*,
javax.el.*,
javax.enterprise.context.*,
javax.enterprise.event;resolution:=optional,
javax.enterprise.inject.*,
javax.enterprise.util.*,
javax.json.*;resolution:=optional,
javax.inject.*,
javax.naming.*,
javax.persistence.*;resolution:=optional,
javax.servlet;version="[3.1,4)",
javax.servlet.annotation;version="[3.1,4)",
javax.servlet.descriptor;version="[3.1,4)",
javax.servlet.http;version="[3.1,4)",
javax.servlet.resources;version="[3.1,4)",
javax.servlet.jsp;version="[2.3,3)",
javax.servlet.jsp.el;version="[2.3,3)",
javax.servlet.jsp.resources;version="[2.3,3)",
javax.servlet.jsp.tagext;version="[2.3,3)",
javax.validation.*;resolution:=optional,
javax.websocket.*;resolution:=optional,
javax.xml.*,
org.jboss.weld.*;resolution:=optional,
org.mortbay.jetty.annotations;resolution:=optional,
org.mortbay.jetty.plus.annotation;resolution:=optional,
org.w3c.dom.*,
org.xml.sax.*
</Import-Package>
<!--
Allow Mojarra to load alternative AnnotationProvider, FaceletConfigResourceProvider,
FacesConfigResourceProvider, CDIUtil, and ApplicationConfigurationPopulator SPI
implementations. Mojarra provides default implementations, so each capability is marked as
optional.
-->
<Require-Capability>
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.spi.AnnotationProvider)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.spi.FaceletConfigResourceProvider)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.spi.FacesConfigResourceProvider)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=com.sun.faces.util.cdi11.CDIUtil)";
resolution:=optional;cardinality:=multiple,
osgi.serviceloader;filter:="(osgi.serviceloader=javax.faces.application.ApplicationConfigurationPopulator)";
resolution:=optional;cardinality:=multiple
</Require-Capability>
<Provide-Capability>
osgi.extender;osgi.extender="jsp.taglib";uri="http://java.sun.com/jsf/html";
version:Version="2.3",
osgi.extender;osgi.extender="jsp.taglib";uri="http://java.sun.com/jsf/core";
version:Version="2.3"
</Provide-Capability>
</instructions>
</configuration>
</plugin>
<!-- Adds the manifest file created by the org.apache.felix:maven-bundle-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
<excludes>
<exclude>**/*.java</exclude>
<exclude>**/*.html</exclude>
</excludes>
</configuration>
</plugin>
<!-- ### V A L I D A T I O N ### -->
<!-- A number of basic Java language code checks -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.2</version>
<configuration>
<targetJdk>1.8</targetJdk>
<excludes>
<exclude>com/sun/faces/taglib/html_basic/**/*.java</exclude>
<exclude>javax/faces/component/html/**/*.java</exclude>
</excludes>
<rulesets>
<ruleset>${project.build.directory}/../src/main/pmd/ruleset.xml</ruleset>
</rulesets>
</configuration>
<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd</artifactId>
<version>5.1.2</version>
</dependency>
</dependencies>
</plugin>
<!-- Another number of basic Java language code checks -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<threshold>High</threshold>
<excludeFilterFile>${project.build.directory}/../src/main/findbugs/exclude.xml</excludeFilterFile>
</configuration>
</plugin>
<!-- Validate that the various XML files are well formed and match their schema-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
<configuration>
<basedir>src/main/resources/com/sun/faces</basedir>
<validationSets>
<validationSet>
<dir>src/main/resources/com/sun/faces</dir>
<includes>
<include>*.xsd</include>
<include>standard-html-renderkit.xml</include>
</includes>
</validationSet>
</validationSets>
</configuration>
</plugin>
<!-- Creates the source jar -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Create Javadoc for API jar
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<configuration>
<excludePackageNames>com</excludePackageNames>
</configuration>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<versionRange>[1.5,)</versionRange>
<goals>
<goal>compress</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnIncremental>false</runOnIncremental>
</execute>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.8.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<includes>javax/**/*.java</includes>
<configLocation>${project.build.directory}/../checkstyle-config.xml</configLocation>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>checkstyle</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.2</version>
<configuration>
<targetJdk>1.8</targetJdk>
<excludes>
<exclude>com/sun/faces/taglib/html_basic/**/*.java</exclude>
<exclude>javax/faces/component/html/**/*.java</exclude>
</excludes>
<rulesets>
<ruleset>${project.build.directory}/../src/main/pmd/ruleset.xml</ruleset>
</rulesets>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<threshold>High</threshold>
<excludeFilterFile>${project.build.directory}/../src/main/findbugs/exclude.xml</excludeFilterFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>taglist-maven-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>release-central</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>