<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/xsd/maven-4.0.0.xsd">
    <parent>
        <groupId>com.adobe.livecycle.ria</groupId>
        <artifactId>ria-parent</artifactId>
        <version>1.0.26</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>

    <groupId>com.adobe.livecycle.dsc</groupId>
    <artifactId>com.adobe.livecycle.dsc.clientsdk</artifactId>
    <version>3.0.4</version>
    <packaging>bundle</packaging>

    <name>Adobe LiveCycle Client SDK Bundle</name>
    <description>Adobe LiveCycle ClientSDK Bundle required to access services exposed on LiveCycle DSC Container</description>

    <properties>
        <pkgVersion>10.0.0</pkgVersion>
        <livecycle.core.version2>6.2.0</livecycle.core.version2>
    </properties>

    <scm>
        <connection>scm:perforce://lc_ria/components/dsc/aemformsjee6.2.0_gm/livecycle-client-bundle
        </connection>
        <developerConnection>
            scm:perforce://lc_ria/components/dsc/aemformsjee6.2.0_gm/livecycle-client-bundle
        </developerConnection>
    </scm>

    <dependencies>
        <dependency>
            <groupId>javax.jcr</groupId>
            <artifactId>jcr</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.4</version>
        </dependency>
        <!-- This component is part of the security/crx module. And as the API would be stable
        we can pin on to a particular released version-->
        <dependency>
            <groupId>com.adobe.livecycle.usermanager</groupId>
            <artifactId>com.adobe.ep.auth.ticket</artifactId>
            <version>1.0.16</version>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>com.adobe.livecycle</groupId>
            <artifactId>adobe-usermanager-client</artifactId>
            <version>${livecycle.core.version2}</version>
			<scope>system</scope>
			<systemPath>${basedir}/../client_sdk_jars/adobe-usermanager-client.jar</systemPath>

        </dependency>
        <dependency>
            <groupId>com.adobe.livecycle</groupId>
            <artifactId>adobe-livecycle-client</artifactId>
            <version>${livecycle.core.version2}</version>
			<scope>system</scope>
			<systemPath>${basedir}/../client_sdk_jars/adobe-livecycle-client.jar</systemPath>

        </dependency>
        <dependency>
            <groupId>com.adobe.livecycle.core</groupId>
            <artifactId>um-client</artifactId>
            <version>10.0.0.0.20101012.1.250825</version>
            <optional>true</optional>
        </dependency>
        <dependency>
            <groupId>org.apache.jackrabbit</groupId>
            <artifactId>jackrabbit-api</artifactId>
            <version>2.2.1</version>
        </dependency>
        <dependency>
           <groupId>com.day.crx</groupId>
           <artifactId>crx-api</artifactId>
           <version>2.2.0</version>
       </dependency>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.compendium</artifactId>
            <version>4.2.0</version>
        </dependency>
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.commons.classloader</artifactId>
            <version>1.2.2</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.commons.osgi</artifactId>
            <version>2.0.6</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.api</artifactId>
        </dependency>

        <dependency>
            <groupId>commons-httpclient</groupId>
            <artifactId>commons-httpclient</artifactId>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.jcr.api</artifactId>
            <version>2.0.4</version>
        </dependency>
		 <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.jcr.resource</artifactId>
            <version>2.2.8</version>
        </dependency>
        <dependency>
            <groupId>org.apache.sling</groupId>
            <artifactId>org.apache.sling.settings</artifactId>
            <version>1.1.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.apache.felix.scr.annotations</artifactId>
            <version>1.6.0</version>
        </dependency>
        <dependency>
            <groupId>com.adobe.livecycle.dsc</groupId>
            <artifactId>com.adobe.livecycle.dsc.clientsdk.api</artifactId>
            <version>2.0.2</version>
        </dependency>
        <dependency>
            <groupId>com.adobe.livecycle.dsc</groupId>
            <artifactId>com.adobe.livecycle.dsc.loginmodule</artifactId>
            <version>1.0.6</version>
        </dependency>
        <dependency>
            <groupId>com.adobe.livecycle.crx</groupId>
            <artifactId>com.adobe.livecycle.crx.integration</artifactId>
            <version>0.1.2</version>
        </dependency>
        <dependency>
            <groupId>com.adobe.granite</groupId>
            <artifactId>com.adobe.granite.crypto</artifactId>
            <version>3.0.26</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>		
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
                        <Private-Package>
                            com.adobe.livecycle.dsc.clientsdk.internal.*
                        </Private-Package>
                        <Export-Package>
                            com.adobe.livecycle.dsc.clientsdk;
                            com.adobe.livecycle.dsc.clientsdk.security;version="10.0.0"
                        </Export-Package>
                        <Import-Package>
                            javax.xml.namespace,
                            com.adobe.livecycle.crx.integration.dispatcher;resolution:=optional,
                            com.adobe.livecycle.usermanager.crx.loginmodule;resolution:=optional,
                            com.adobe.ep.auth.ticket;resolution:=optional,
							com.adobe.granite.keystore;resolution:=optional,
                            *
                        </Import-Package>
                        <!--
                            We embed the TicketManager classes but have the packages reimported also. This
                            allows the DSC Bundle to be deployed without any dependency on TicketManager
                        -->
                        <Embed-Dependency>
                            com.adobe.ep.auth.ticket;inline=com/adobe/ep/auth/ticket/*.class,
                            com.adobe.livecycle.dsc.loginmodule;inline=com/adobe/livecycle/usermanager/crx/loginmodule/ServiceClientProvider*.class
                        </Embed-Dependency>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
                <version>1.7.4</version>
            </plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-release-plugin</artifactId>
				<version>3.0-r1585899</version>
			</plugin>
            <plugin>
                <groupId>org.apache.sling</groupId>
                <artifactId>maven-sling-plugin</artifactId>
                <version>2.1.0</version>
                <executions>
                    <execution>
                        <id>generate-adapter-metadata</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>generate-adapter-metadata</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
