blob: 1c889311734c6deedfeba5db264da208d453194a [file] [log] [blame]
<?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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-extension</artifactId>
<version>1.5.5</version>
</parent>
<artifactId>tobago-facelets</artifactId>
<packaging>jar</packaging>
<name>Tobago Facelets</name>
<description>Tobago-facelets contains the facelets TagHandler for the tobago components and the facelets variant(tf) for the tobago extension taglib.</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.4</source>
<target>1.4</target>
<encoding>${maven.compile.encoding}</encoding>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack-sources</id>
<phase>validate</phase>
<goals><goal>unpack</goal></goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-core</artifactId>
<version>${project.version}</version>
<type>jar</type>
<classifier>sources</classifier>
<includes>org/apache/myfaces/tobago/internal/taglib/declaration/**/*.java,org/apache/myfaces/tobago/internal/taglib/component/**/*.java</includes>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/tobago-core-sources</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>apt-maven-plugin</artifactId>
<executions>
<execution>
<id>tobago-facelet-taglib</id>
<goals><goal>process</goal></goals>
<phase>validate</phase>
<configuration>
<excludes>
<exclude>org/apache/myfaces/tobago/*</exclude>
</excludes>
<includes>
<include>org/apache/myfaces/tobago/internal/taglib/component/*</include>
<include>org/apache/myfaces/tobago/internal/taglib/declaration/*</include>
</includes>
<additionalSourceRoots>
<additionalSourceRoot>${project.build.directory}/tobago-core-sources</additionalSourceRoot>
</additionalSourceRoots>
<outputFiles>
<outputFile>tobago.taglib.xml</outputFile>
</outputFiles>
<resourceTargetPath>META-INF</resourceTargetPath>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
<factory>org.apache.myfaces.tobago.apt.FaceletAnnotationProcessorFactory</factory>
<nocompile>true</nocompile>
<encoding>${maven.compile.encoding}</encoding>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-tool-apt</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.facelets</groupId>
<artifactId>jsf-facelets</artifactId>
<version>${facelets.version}</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-tool-annotation</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago-core</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>sun.jdk</groupId>
<artifactId>tools</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<profiles>
<profile>
<id>tools.jar</id>
<activation>
<os><family>!mac</family></os>
</activation>
<dependencies>
<dependency>
<groupId>sun.jdk</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
</project>