| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to you under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| --> |
| <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/maven-v4_0_0.xsd"> |
| <parent> |
| <groupId>org.apache.myfaces.core</groupId> |
| <artifactId>myfaces-core-project</artifactId> |
| <version>2.0.3</version> |
| </parent> |
| <modelVersion>4.0.0</modelVersion> |
| <groupId>org.apache.myfaces.core</groupId> |
| <artifactId>myfaces-api</artifactId> |
| <name>Apache MyFaces JSF Core-2.0 API</name> |
| <description> |
| The public API classes of the Apache MyFaces CORE JSF-2.0 project |
| </description> |
| <url>http://myfaces.apache.org/core20/myfaces-api</url> |
| <scm> |
| <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/core/tags/myfaces-core-project-2.0.3/api</connection> |
| <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/core/tags/myfaces-core-project-2.0.3/api</developerConnection> |
| <url>http://svn.apache.org/repos/asf/myfaces/core/tags/myfaces-core-project-2.0.3/api</url> |
| </scm> |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <directory>src/main/javascript/META-INF/resources/myfaces/_impl/_util</directory> |
| <targetPath>META-INF/internal-resources/org.apache.myfaces.core.impl.util</targetPath> |
| </resource> |
| <resource> |
| <directory>src/main/javascript/META-INF/resources/myfaces/_impl/i18n</directory> |
| <targetPath>META-INF/internal-resources/org.apache.myfaces.core.impl.i18n</targetPath> |
| </resource> |
| <resource> |
| <directory>src/main/javascript/META-INF/resources/myfaces/_impl/core</directory> |
| <targetPath>META-INF/internal-resources/org.apache.myfaces.core.impl.core</targetPath> |
| </resource> |
| <resource> |
| <directory>src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore</directory> |
| <targetPath>META-INF/internal-resources/org.apache.myfaces.core.impl.xhrCore</targetPath> |
| </resource> |
| <resource> |
| <directory>src/main/javascript/META-INF/resources/myfaces/api</directory> |
| <targetPath>META-INF/internal-resources/org.apache.myfaces.core.api</targetPath> |
| </resource> |
| </resources> |
| <plugins> |
| <!-- |
| javascript plugin adjusted to our build process |
| please do not delete this it is just disabled for now |
| --> |
| |
| |
| <plugin> |
| <artifactId>myfaces-javascript-plugin</artifactId> |
| <groupId>org.apache.myfaces.buildtools</groupId> |
| <version>1.0.1</version> |
| <extensions>true</extensions> |
| <executions> |
| <execution> |
| <id>compile</id> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| <phase>process-resources</phase> |
| <configuration> |
| <descriptor>${basedir}/src/assembler/jsfscripts-compiler.xml</descriptor> |
| <excludes> |
| <exclude>**/myfaces/_impl/core/jsf-uncompressed.js</exclude> |
| <exclude>**/myfaces/_impl/_util/_UnitTest.js</exclude> |
| <exclude>**/myfaces/_impl/_util/_ExtLang.js</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>compile-uncompressed</id> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| <phase>process-resources</phase> |
| <configuration> |
| <descriptor>${basedir}/src/assembler/jsfscripts-uncompressed-compiler.xml</descriptor> |
| <outputDirectory>${basedir}/target/classes/META-INF/internal-resources/javax.faces/</outputDirectory> |
| <excludes> |
| <exclude>**/myfaces/_impl/core/Impl.js</exclude> |
| <exclude>**/myfaces/_impl/_util/*</exclude> |
| <exclude>**/myfaces/_impl/xhrCore/*</exclude> |
| <exclude>**/myfaces/api/*</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>compile-uncompressed-full</id> |
| <goals> |
| <goal>compile</goal> |
| </goals> |
| <phase>process-resources</phase> |
| <configuration> |
| <descriptor>${basedir}/src/assembler/jsfscripts-uncompressed-full-compiler.xml</descriptor> |
| <outputDirectory>${basedir}/target/classes/META-INF/internal-resources/javax.faces/</outputDirectory> |
| <excludes> |
| <exclude>**/myfaces/_impl/core/jsf-uncompressed.js</exclude> |
| <exclude>**/myfaces/_impl/_util/_UnitTest.js</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>compress</id> |
| <goals> |
| <goal>compress</goal> |
| </goals> |
| <phase>process-resources</phase> |
| |
| <configuration> |
| <scripts>target/classes/META-INF/resources/javax.faces/</scripts> |
| <excludes> |
| <exclude>jsf-uncompressed.js</exclude> |
| <exclude>jsf-uncompressed-full.js</exclude> |
| </excludes> |
| <compressor>yahooUI</compressor> |
| |
| </configuration> |
| </execution> |
| </executions> |
| <configuration> |
| <optimizationLevel>0</optimizationLevel> |
| <sourceDirectory>src/main/javascript</sourceDirectory> |
| <webappDirectory>${basedir}</webappDirectory> |
| <outputDirectory>${basedir}/target/classes/META-INF/resources/javax.faces/</outputDirectory> |
| </configuration> |
| </plugin> |
| |
| |
| <plugin> |
| <artifactId>maven-jar-plugin</artifactId> |
| <version>2.2</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>test-jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <archive> |
| <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-source-plugin</artifactId> |
| <version>2.0.4</version> |
| <executions> |
| <execution> |
| <id>attach-source</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- |
| berlios jsunit under apache2 license |
| to cover javascript core routines which |
| do not have to rely on a browser |
| or can work on browser mockups! |
| |
| for furhter on dom testing we probably have |
| to integrate html based tests |
| with a browser engine |
| but for the core apis this should be sufficient |
| |
| --> |
| <plugin> |
| <groupId>de.berlios.jsunit</groupId> |
| <artifactId>jsunit-maven2-plugin</artifactId> |
| <executions> |
| <!--execution> |
| <id>test</id> |
| <goals> |
| <goal>jsunit-test</goal> |
| </goals> |
| </execution--> |
| </executions> |
| <configuration> |
| <sourceDirectory>src/main/javascript/META-INF/resources</sourceDirectory> |
| <sources> |
| <source>../../../../test/javascript/org/apache/myfaces/mockups/BrowserMockups.js</source> |
| <!-- |
| <source>javax/faces/_util/OpenAjax.js</source> |
| --> |
| <source>javax/faces/_util/_JSF2Utils.js</source> |
| <source>javax/faces/ajax/Ajax.js</source> |
| <source>../../../../test/javascript/org/apache/myfaces/test/_TestScenario.js</source> |
| </sources> |
| <testSourceDirectory>src/test/javascript/org/apache/myfaces</testSourceDirectory> |
| <reportsDirectory>target/surefire-reports</reportsDirectory> |
| <testSuites> |
| <testSuite> |
| <name>javax.faces.Ajax</name> |
| <type>TESTSUITES</type> |
| <includes> |
| <include>test/MockupTest.js</include> |
| <include>utils/_JSF2UtilsTests.js</include> |
| |
| <include>ajax/AjaxTests.js</include> |
| |
| </includes> |
| </testSuite> |
| </testSuites> |
| </configuration> |
| </plugin> |
| |
| <!-- |
| <plugin> |
| <groupId>org.apache.myfaces.buildtools</groupId> |
| <artifactId>myfaces-faces-plugin</artifactId> |
| <configuration> |
| <typePrefix>javax.faces</typePrefix> |
| <packageContains>javax.faces</packageContains> |
| <jsfVersion>2.0</jsfVersion> |
| <force>true</force> |
| <templateSourceDirectory>src/main/java-templates</templateSourceDirectory> |
| <skipApiOrBaseClasses>false</skipApiOrBaseClasses> |
| <disableIdExpressions>true</disableIdExpressions> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>generate-components</goal> |
| </goals> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| <version>1.1.1</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| --> |
| <plugin> |
| <groupId>org.apache.myfaces.buildtools</groupId> |
| <artifactId>myfaces-builder-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>build-metadata</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>makecomp</id> |
| <configuration> |
| <jsfVersion>20</jsfVersion> |
| <templateComponentName>componentClass20.vm</templateComponentName> |
| </configuration> |
| <goals> |
| <goal>make-components</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <version>2.1.0</version> |
| <executions> |
| <execution> |
| <id>bundle-manifest</id> |
| <phase>process-classes</phase> |
| <goals> |
| <goal>manifest</goal> |
| </goals> |
| <configuration> |
| <instructions> |
| <Bundle-SymbolicName>org.apache.myfaces.core.api</Bundle-SymbolicName> |
| <Bundle-Classpath>.</Bundle-Classpath> |
| <Build-Jdk>${java.version}</Build-Jdk> |
| <Implementation-Title>${project.name}</Implementation-Title> |
| <Implementation-Version>${project.version}</Implementation-Version> |
| <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor> |
| <Implementation-Vendor-Id>${project.groupId}</Implementation-Vendor-Id> |
| <Export-Package> |
| *;version="${project.version}" |
| </Export-Package> |
| <Import-Package> |
| javax.el;version="[1.0.0, 3.0.0)", |
| javax.validation*;version="[1.0.0, 2.0.0)", |
| javax.servlet;version="[2.5.0, 3.1)", |
| javax.servlet.http;version="[2.5.0, 3.1)", |
| javax.servlet.jsp;version="[2.1.0, 3.1)", |
| javax.servlet.jsp.jstl.core;version="[1.1.2, 2.0.0)", |
| javax.servlet.jsp.jstl.sql;version="[1.1.2, 2.0.0)", |
| javax.servlet.jsp.tagext;version="[2.1.0, 3.1)", |
| org.apache.commons.logging;version="[1.1.1, 2.0.0)", |
| javax.faces.*;version="${project.version}" |
| </Import-Package> |
| <Require-Bundle>org.apache.myfaces.core.impl;bundle-version="${project.version}"</Require-Bundle> |
| </instructions> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <testNGArtifactName>none:none</testNGArtifactName> |
| <!-- Exclude all TestNG tests --> |
| <excludes> |
| <exclude>**/UIViewRootTest*</exclude> |
| <exclude>**/_MessageUtilsTest*</exclude> |
| <exclude>**/UIGraphicTest*</exclude> |
| <exclude>**/UIComponentValueExpressionTest*</exclude> |
| <exclude>**/UIComponentTest*</exclude> |
| <exclude>**/UIComponentInvokeOnComponentTest*</exclude> |
| <exclude>**/UIComponentEncodeAllTest*</exclude> |
| <exclude>**/UIComponentBaseValueBindingTest*</exclude> |
| <exclude>**/UIComponentBaseTest*</exclude> |
| <exclude>**/UIComponentBaseProcessSaveRestoreStateTest*</exclude> |
| <exclude>**/UIComponentBaseFacesListenerTest*</exclude> |
| <exclude>**/HtmlOutputLinkTest*</exclude> |
| </excludes> |
| </configuration> |
| </execution> |
| <execution> |
| <id>test-testng</id> |
| <phase>test</phase> |
| <goals> |
| <goal>test</goal> |
| </goals> |
| <configuration> |
| <junitArtifactName>none:none</junitArtifactName> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <profiles> |
| <profile> |
| <!-- |
| - Generate files that are good to have when doing a release to main |
| - repositories, but which are not wanted when doing a quick |
| - "mvn install" before testing some code modifications. |
| --> |
| <id>generate-assembly</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| <version>2.4</version> |
| <executions> |
| <execution> |
| <id>attach-javadoc</id> |
| <goals> |
| <goal>jar</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <!-- |
| JSUnit Testing setup |
| to test the affected javascript |
| sources in a proper way! |
| --> |
| |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <!-- This plugin verifies the binary compablity with the jsf api of the RI |
| TODO: add this to the normal build if 2.1 (or higher) of clirr-maven-plugin is released |
| In the meantime to use this plugin it must be installed manually from |
| https://svn.codehaus.org/mojo/trunk/mojo/clirr-maven-plugin |
| There is also a pending bug which patch must be applied before using this plugin: |
| http://jira.codehaus.org/browse/MCLIRR-5 --> |
| <id>checkCompability</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>clirr-maven-plugin</artifactId> |
| <version>2.2.2</version> |
| <configuration> |
| <comparisonArtifacts> |
| <comparisonArtifact> |
| <groupId>com.sun.faces</groupId> |
| <artifactId>jsf-api</artifactId> |
| <version>2.0.1</version> |
| </comparisonArtifact> |
| </comparisonArtifacts> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <phase>test</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>checkJDK</id> |
| <activation> |
| <property> |
| <name>performRelease</name> |
| <value>true</value> |
| </property> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.jvnet</groupId> |
| <artifactId>animal-sniffer</artifactId> |
| <version>1.2</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <configuration> |
| <signature> |
| <groupId>org.jvnet.animal-sniffer</groupId> |
| <artifactId>java1.5</artifactId> |
| <version>1.0</version> |
| </signature> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| <pluginRepositories> |
| <pluginRepository> |
| <id>java.net.repo</id> |
| <name>java.net repository</name> |
| <url>http://download.java.net/maven/2/</url> |
| </pluginRepository> |
| </pluginRepositories> |
| </profile> |
| </profiles> |
| <dependencies> |
| <dependency> |
| <!-- el-api 2.1 is included in jsp-api, so this one has to be on top of it --> |
| <groupId>javax.el</groupId> |
| <artifactId>el-api</artifactId> |
| <version>2.2</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>de.berlios.jsunit</groupId> |
| <artifactId>jsunit-maven2-plugin</artifactId> |
| <version>1.3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>2.5</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet.jsp</groupId> |
| <artifactId>jsp-api</artifactId> |
| <version>2.1</version> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>jstl</artifactId> |
| <!-- version defined in parent --> |
| <scope>provided</scope> |
| <exclusions> |
| <exclusion> |
| <artifactId>jsp-api</artifactId> |
| <groupId>javax.servlet</groupId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <!-- dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| <version>1.1.1</version> |
| </dependency --> |
| <dependency> |
| <groupId>org.apache.myfaces.buildtools</groupId> |
| <artifactId>myfaces-builder-annotations</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| |
| <!-- TEST DEPENDENCIES --> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.8.1</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>org.testng</groupId> |
| <artifactId>testng</artifactId> |
| <classifier>jdk15</classifier> |
| <version>5.1</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.myfaces.test</groupId> |
| <artifactId>myfaces-test20</artifactId> |
| <version>1.0.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>jmock</groupId> |
| <artifactId>jmock</artifactId> |
| <version>1.2.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>jmock</groupId> |
| <artifactId>jmock-cglib</artifactId> |
| <version>1.2.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.easymock</groupId> |
| <artifactId>easymock</artifactId> |
| <version>2.3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.easymock</groupId> |
| <artifactId>easymockclassextension</artifactId> |
| <version>2.3</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>javax.validation</groupId> |
| <artifactId>validation-api</artifactId> |
| <version>1.0.CR3</version> |
| <optional>true</optional> |
| </dependency> |
| </dependencies> |
| |
| <repositories> |
| <repository> |
| <id>jboss releases</id> |
| <name>JBoss Releases</name> |
| <url>http://repository.jboss.org/maven2/</url> |
| <layout>default</layout> |
| </repository> |
| </repositories> |
| |
| <reporting> |
| <plugins> |
| <plugin> |
| <artifactId>maven-javadoc-plugin</artifactId> |
| </plugin> |
| <plugin> |
| <artifactId>maven-changelog-plugin</artifactId> |
| <version>2.2</version> |
| <reportSets> |
| <reportSet> |
| <id>dual-report</id> |
| <configuration> |
| <type>range</type> |
| <range>30</range> |
| </configuration> |
| <reports> |
| <report>changelog</report> |
| <report>file-activity</report> |
| <report>dev-activity</report> |
| </reports> |
| </reportSet> |
| </reportSets> |
| </plugin> |
| <plugin> |
| <artifactId>maven-jxr-plugin</artifactId> |
| <version>2.2</version> |
| </plugin> |
| <plugin> |
| <artifactId>maven-surefire-report-plugin</artifactId> |
| <version>2.5</version> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>taglist-maven-plugin</artifactId> |
| <version>2.4</version> |
| </plugin> |
| <!-- override PMD settings to set targetJdk --> |
| <plugin> |
| <artifactId>maven-pmd-plugin</artifactId> |
| <configuration> |
| <rulesets> |
| <ruleset>/rulesets/basic.xml</ruleset> |
| <ruleset>/rulesets/unusedcode.xml</ruleset> |
| </rulesets> |
| <linkXRef>true</linkXRef> |
| <minimumTokens>100</minimumTokens> |
| <targetJdk>1.5</targetJdk> |
| <excludes> |
| <!-- these class make the PMD plugin crash (NullPointerException). --> |
| <exclude>org/apache/myfaces/el/convert/PropertyResolverToELResolver.java</exclude> |
| <exclude>org/apache/myfaces/el/PropertyResolverImpl.java</exclude> |
| </excludes> |
| </configuration> |
| <reportSets> |
| <reportSet> |
| <reports> |
| <report>pmd</report> |
| <report>cpd</report> |
| </reports> |
| </reportSet> |
| </reportSets> |
| </plugin> |
| </plugins> |
| </reporting> |
| |
| </project> |