#set( $symbol_pound = '#' ) | |
#set( $symbol_dollar = '$' ) | |
#set( $symbol_escape = '\' ) | |
<?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>${groupId}</groupId> | |
<artifactId>${artifactId}-project</artifactId> | |
<version>${version}</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>${artifactId}-core</artifactId> | |
<packaging>jar</packaging> | |
<name>My JSF Components Library</name> | |
<description> | |
This is my super jsf components library. | |
</description> | |
<properties> | |
<shortname>mycomponents</shortname> | |
</properties> | |
<dependencies> | |
<!-- compile --> | |
<dependency> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
<version>1.1.1</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.myfaces.commons</groupId> | |
<artifactId>myfaces-validators20</artifactId> | |
<version>1.0.1</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.myfaces.commons</groupId> | |
<artifactId>myfaces-converters20</artifactId> | |
<version>1.0.1</version> | |
<scope>compile</scope> | |
</dependency> | |
<!-- provided dependencies --> | |
<dependency> | |
<groupId>org.apache.myfaces.core</groupId> | |
<artifactId>myfaces-api</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.myfaces.core</groupId> | |
<artifactId>myfaces-impl</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet.jsp</groupId> | |
<artifactId>jsp-api</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
<scope>provided</scope> | |
</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> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.myfaces.test</groupId> | |
<artifactId>myfaces-test20</artifactId> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<excludes> | |
<exclude>**/*.vm</exclude> | |
</excludes> | |
</resource> | |
</resources> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.myfaces.buildtools</groupId> | |
<artifactId>myfaces-builder-plugin</artifactId> | |
<executions> | |
<execution> | |
<goals> | |
<goal>build-metadata</goal> | |
<goal>make-components</goal> | |
<goal>make-tags</goal> | |
<goal>make-validators</goal> | |
<goal>make-converter-tags</goal> | |
<goal>make-validator-tags</goal> | |
</goals> | |
<configuration> | |
<jsfVersion>2.0</jsfVersion> | |
</configuration> | |
</execution> | |
<execution> | |
<id>make_facesconfig</id> | |
<configuration> | |
<xmlFile>META-INF/faces-config.xml</xmlFile> | |
</configuration> | |
<goals> | |
<goal>make-config</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>maketld</id> | |
<configuration> | |
<xmlFile>META-INF/${symbol_dollar}{shortname}.tld</xmlFile> | |
<templateFile>mycomponents.tld.vm</templateFile> | |
<params> | |
<shortname>${symbol_dollar}{shortname}</shortname> | |
<uri>http://www.myorganitzation.org/${symbol_dollar}{shortname}</uri> | |
<displayname>Custom tag library.</displayname> | |
<description>Enhanced standard JSP actions and custom MyFaces actions.</description> | |
</params> | |
</configuration> | |
<goals> | |
<goal>make-config</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>make_taglib</id> | |
<configuration> | |
<outputDirectory>${symbol_dollar}{basedir}/src/main/resources</outputDirectory> | |
<xmlFile>META-INF/${symbol_dollar}{shortname}.taglib.xml</xmlFile> | |
<templateFile>facelets-taglib20.vm</templateFile> | |
<params> | |
<shortname>${symbol_dollar}{shortname}</shortname> | |
<uri>http://www.myorganitzation.org/${symbol_dollar}{shortname}</uri> | |
</params> | |
</configuration> | |
<goals> | |
<goal>make-config</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<reporting> | |
<plugins> | |
<plugin> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.4</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jxr-plugin</artifactId> | |
<version>2.1</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-report-plugin</artifactId> | |
<version>2.4.3</version> | |
</plugin> | |
</plugins> | |
</reporting> | |
<profiles> | |
<profile> | |
<id>generate-site</id> | |
<reporting> | |
<plugins> | |
<plugin> | |
<groupId>net.sourceforge.maven-taglib</groupId> | |
<artifactId>maven-taglib-plugin</artifactId> | |
<version>2.3.1</version> | |
<configuration> | |
<taglib.src.dir>${symbol_dollar}{basedir}/target/classes/META-INF</taglib.src.dir> | |
<tldDocDir>${symbol_dollar}{basedir}/target/site/tlddoc</tldDocDir> | |
</configuration> | |
</plugin> | |
</plugins> | |
</reporting> | |
</profile> | |
<profile> | |
<id>generate-assembly</id> | |
<activation> | |
<property> | |
<name>performRelease</name> | |
<value>true</value> | |
</property> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-javadoc-plugin</artifactId> | |
<version>2.4</version> | |
<executions> | |
<execution> | |
<id>attach-javadoc</id> | |
<goals><goal>jar</goal></goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>net.sourceforge.maven-taglib</groupId> | |
<artifactId>maven-taglib-plugin</artifactId> | |
<version>2.3.1</version> | |
<configuration> | |
<taglib.src.dir>${symbol_dollar}{basedir}/target/classes/META-INF</taglib.src.dir> | |
<tldDocDir>${symbol_dollar}{basedir}/target/site/tlddoc</tldDocDir> | |
</configuration> | |
<executions> | |
<execution> | |
<id>attach-javadoc</id> | |
<goals><goal>taglibdocjar</goal></goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |