blob: 0c27d08288eaefb9d0d840651ac5606750f94be9 [file] [log] [blame]
<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">
<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>
<parent>
<groupId>${groupId}</groupId>
<artifactId>${artifactId}-project</artifactId>
<version>${version}</version>
</parent>
<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-validators12</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.commons</groupId>
<artifactId>myfaces-converters12</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
<!-- provided dependencies -->
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>1.2.7</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>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.shale</groupId>
<artifactId>shale-test</artifactId>
<version>1.0.5</version>
<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>
<version>1.0.3</version>
<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>1.2</jsfVersion>
</configuration>
</execution>
<execution>
<id>makefacesconfig</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/${shortname}.tld</xmlFile>
<templateFile>mycomponents.tld.vm</templateFile>
<params>
<shortname>${shortname}</shortname>
<uri>http://www.myorganitzation.org/${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>
</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>\${basedir}/target/classes/META-INF</taglib.src.dir>
<tldDocDir>\${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>\${basedir}/target/classes/META-INF</taglib.src.dir>
<tldDocDir>\${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>