<?xml version="1.0"?><!--
  $Id: project.xml 23288 2006-11-03 15:59:04Z rofe $
 
  Copyright 1997-2008 Day Management AG
  Barfuesserplatz 6, 4001 Basel, Switzerland
  All Rights Reserved.
 
  This software is the confidential and proprietary information of
  Day Management AG, ("Confidential Information"). You shall not
  disclose such Confidential Information and shall use it only in
  accordance with the terms of the license agreement you entered into
  with Day.
 -->
<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.day.cq</groupId>
        <artifactId>cq</artifactId>
        <version>4</version>
    </parent>

    <groupId>com.day.cq</groupId>
    <artifactId>cq-widgets</artifactId>
    <name>Day Communique 5 Widgets</name>
    <version>5.0.2</version>
    <packaging>bundle</packaging>
  <url>https://adobe.com</url>
  <licenses>
    <license>
      <name>License Agreement</name>
      <url>http://adobe.com/go/terms</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <organization>
    <name>Adobe</name>
    <url>http://www.adobe.com/</url>
  </organization>
  <developers>
    <developer>
      <name>Adobe</name>
      <email>repo@adobe.com</email>
      <organization>Adobe</organization>
      <organizationUrl>http://www.adobe.com</organizationUrl>
    </developer>
  </developers>
    <description>
        This is the CQ Widgets component
    </description>

    <scm>
        <connection>scm:svn:http://svn.day.com/repos/cq5/platform/tags/cq-widgets-5.0.2</connection>
        <developerConnection>scm:svn:http://svn.day.com/repos/cq5/platform/tags/cq-widgets-5.0.2</developerConnection>
        <url>http://svn.day.com/repos/cq5/platform/tags/cq-widgets-5.0.2</url>
    </scm>

    <properties>
        <!-- Whether to build debugging JS libraries or not.   -->
        <!-- Overwrite with -Dbuild.debug=true on command line -->
        <build.debug>false</build.debug>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.sling</groupId>
                <artifactId>maven-jcrocm-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.sling</groupId>
                <artifactId>maven-sling-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Export-Package>
                            com.day.cq.widget.*,
                            com.day.cq.theme
                        </Export-Package>
                        <Private-Package>
                            com.day.cq.theme.impl
                        </Private-Package>
                        <Sling-Nodetypes>
                            CQ-INF/nodetypes/cq-widgets.cnd,
                            CQ-INF/nodetypes/cq-widgets-legacy.cnd
                        </Sling-Nodetypes>
                        <Sling-Initial-Content>
                            CQ-INF/content
                        </Sling-Initial-Content>
                        <Day-Html-JavaScript-Lib>
                            /libs/widgets/cq-widgets-${pom.version}.js
                        </Day-Html-JavaScript-Lib>
                        <Day-Html-Themed-Css-Lib>
                            /libs/widgets:cq-widgets-${pom.version}.css
                        </Day-Html-Themed-Css-Lib>
                        <Include-Resource>
                            {maven-resources},target/ant-generated
                        </Include-Resource>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <executions>
                    <execution>
                        <id>generate-widget-js</id>
                        <phase>compile</phase>
                        <configuration>
                            <tasks>
                                <ant antfile="build.xml" inheritRefs="true">
                                    <property name="project.build.directory" value="${project.build.directory}" />
                                    <property name="project.build.finalName" value="${project.build.finalName}" />
                                    <property name="build.debug" value="${build.debug}" />
                                </ant>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>check-widget-js</id>
                        <phase>test</phase>
                        <configuration>
                            <!--
                                the 'unless' argument does work since antrun 1.2
                                and is not working yet (we're using 1.1).
                            -->
                            <tasks unless="maven.test.skip">
                                <ant antfile="build.xml" target="test" inheritRefs="true">
                                    <property name="maven.test.skip" value="${maven.test.skip}" />
                                    <property name="project.build.directory" value="${project.build.directory}" />
                                    <property name="project.build.finalName" value="${project.build.finalName}" />
                                    <property name="build.debug" value="${build.debug}" />
                                </ant>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant</artifactId>
                        <version>1.6.5</version>
                    </dependency>
                    <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant-nodeps</artifactId>
                        <version>1.6.5</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <excludePackageNames>
                        com.day.cq.theme.impl
                    </excludePackageNames>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <dependencies>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.jcr.api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.api</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.osgi.core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.osgi.compendium</artifactId>
        </dependency>
        <dependency>
            <groupId>rhino</groupId>
            <artifactId>js</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
    </dependencies>
    
    <profiles>
        <profile>
            <!-- 
                Use this profile to add ExtJS lib to bundle headers 
                instead of legacy widgets
            -->
            <id>extJS</id>
            <activation>
                <activeByDefault>false</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.felix</groupId>
                        <artifactId>maven-bundle-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                            <instructions>
                                <Export-Package>
                                    com.day.cq.widget.*,
                                    com.day.cq.theme
                                </Export-Package>
                                <Private-Package>
                                    com.day.cq.theme.impl
                                </Private-Package>
                                <Sling-Nodetypes>
                                    CQ-INF/nodetypes/cq-widgets.cnd
                                </Sling-Nodetypes>
                                <Sling-Initial-Content>
                                    CQ-INF/content
                                </Sling-Initial-Content>
                                <Day-Html-JavaScript-Lib>
                                    /libs/widgets/cq-widgets-${pom.version}-ext.js
                                </Day-Html-JavaScript-Lib>
                                <Day-Html-Themed-Css-Lib>
                                    /libs/widgets:cq-widgets-${pom.version}-ext.css
                                </Day-Html-Themed-Css-Lib>
                                <Include-Resource>
                                    {maven-resources},target/ant-generated
                                </Include-Resource>
                            </instructions>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
