<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright 2010-2011 Craig S. Dickson (http://craigsdickson.com)

    Licensed 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>com.squeakysand.devtools</groupId>
        <artifactId>uberpom-java-jar-bnd</artifactId>
        <version>6</version>
        <relativePath />
    </parent>

    <groupId>com.squeakysand.jcr</groupId>
    <artifactId>squeakysand-jcr-taglib</artifactId>
    <version>0.3.0</version>

    <name>${project.groupId} - ${project.artifactId}</name>

    <description>
        A JSP taglib for working with JCR resources in a Servlet environment.
    </description>

    <url>${projects.http.url}/com.squeakysand.jcr/squeakysand-jcr-taglib/${project.version}/</url>

    <distributionManagement>
        <site>
            <id>squeakysand-projects-website</id>
            <url>${site.deploy.url}/com.squeakysand.jcr/squeakysand-jcr-taglib/${project.version}</url>
        </site>
    </distributionManagement>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.squeakysand</groupId>
                <artifactId>squeakysand-commons</artifactId>
                <version>0.4.0</version>
            </dependency>
            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>squeakysand-jcr</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.squeakysand.jsp</groupId>
                <artifactId>squeakysand-jsp</artifactId>
                <version>0.4.0</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>javax.jcr</groupId>
                <artifactId>jcr</artifactId>
                <version>2.0</version>
                <scope>provided</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>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>com.squeakysand</groupId>
            <artifactId>squeakysand-commons</artifactId>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>squeakysand-jcr</artifactId>
        </dependency>
        <dependency>
            <groupId>com.squeakysand.jsp</groupId>
            <artifactId>squeakysand-jsp</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.squeakysand.jsp</groupId>
                    <artifactId>jsptld-maven-plugin</artifactId>
                    <version>0.4.0</version>
                </plugin>
                <plugin>
                    <groupId>net.sourceforge.maven-taglib</groupId>
                    <artifactId>maven-taglib-plugin</artifactId>
                    <version>2.4</version>
                </plugin>
                <!--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>com.squeakysand.jsp</groupId>
                                        <artifactId>jsptld-maven-plugin</artifactId>
                                        <versionRange>[0.3.0,)</versionRange>
                                        <goals>
                                            <goal>generate</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore>false</ignore>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>com.squeakysand.jsp</groupId>
                <artifactId>jsptld-maven-plugin</artifactId>
                <configuration>
                    <shortName>jcrx</shortName>
                    <validator>com.squeakysand.jcr.taglib.JcrTagLibraryValidator</validator>
                    <uri>${project.organization.url}/taglibs/jcrx</uri>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Include-Resource>
                            META-INF/${project.artifactId}-${project.version}.tld=target/classes/META-INF/${project.artifactId}-${project.version}.tld,
                            {maven-resources}
                        </Include-Resource>
                        <!-- export the main squeakysand jcr library as part of this bundle -->
                        <_exportcontents>
                            com.squeakysand.jcr.*;version=${project.version}
                        </_exportcontents>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <configuration>
                    <reportPlugins>
                        <plugin>
                            <groupId>net.sourceforge.maven-taglib</groupId>
                            <artifactId>maven-taglib-plugin</artifactId>
                            <configuration>
                                <srcDir>${project.build.outputDirectory}/META-INF</srcDir>
                            </configuration>
                            <reportSets>
                                <reportSet>
                                    <reports>
                                        <report>tagreference</report>
                                        <report>taglibdoc</report>
                                        <report>validate</report>
                                    </reports>
                                </reportSet>
                            </reportSets>
                        </plugin>
                    </reportPlugins>
                </configuration>
            </plugin>
        </plugins>
    </build>

  <scm>
    <connection>scm:svn:http://squeakysand.com/svn/devtools/uberpom-java/tags/0.3.0/squeakysand-jcr-taglib</connection>
    <developerConnection>scm:svn:https://squeakysand.com/svn/devtools/uberpom-java/tags/0.3.0/squeakysand-jcr-taglib</developerConnection>
    <url>http://squeakysand.com/wsvn/squeakysand/devtools/uberpom-java/tags/0.3.0/squeakysand-jcr-taglib</url>
  </scm>
</project>
