<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">

    <parent>
        <groupId>org.wso2.carbon</groupId>
        <artifactId>carbon-bam</artifactId>
        <version>2.0.2</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>org.wso2.carbon</groupId>
    <artifactId>org.wso2.carbon.bam.client</artifactId>
    <packaging>bundle</packaging>
    <version>2.0.2</version>
    <name>WSO2 Carbon - BAM Admin Clients</name>
    <description>A custom wso2 products or solution</description>
    <url>http://www.wso2.com</url>


    <dependencies>     
        <!--dependency>
                <groupId>org.apache.axis2.wso2</groupId>
                <artifactId>axis2</artifactId>
        </dependency-->
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.registry.core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.bam.base</artifactId>
            <version>2.0.2</version>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.bam.model</artifactId>
            <version>2.0.2</version>
        </dependency>
        <!--dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.user.core</artifactId>
        </dependency-->
        <dependency>
            <groupId>org.wso2.carbon</groupId>
            <artifactId>org.wso2.carbon.utils</artifactId>
        </dependency>
        <!--dependency>
            <groupId>org.apache.ws.commons.axiom.wso2</groupId>
            <artifactId>axiom</artifactId>
        </dependency-->
        <dependency>
            <groupId>org.wso2.carbon.dataservices</groupId>
            <artifactId>org.wso2.carbon.dataservices.core</artifactId>
            <version>2.0.2</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-scr-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>1.4.0</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>
                            ${pom.artifactId}
                        </Bundle-SymbolicName>
                        <Export-Package>
                            org.wso2.carbon.bam.client.*
                        </Export-Package>
                        <Import-Package>       
                            !org.wso2.carbon.bam.client.*,
                            org.wso2.carbon.bam.base.*,
                            org.wso2.carbon.bam.model.*, 
                            org.apache.commons.logging.*;version="1.0.4",
				            *;resolution:=optional
                            <!--org.apache.axis2.*; version="${axis2.osgi.version.range}",
				org.apache.axiom.*; version="${axiom.osgi.version.range}",-->
                        </Import-Package>                        
                        <DynamicImport-Package>*</DynamicImport-Package>
                    </instructions>
                </configuration>
            </plugin>


            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.1</version>
                <executions>
                    <execution>
                        <id>source-code-generation</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                        <configuration>
                            <tasks>
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/AuthenticationAdminService.wsdl -u -g -sn AuthenticationAdminService -o target/generated-code -ns2p http://authentication.services.core.carbon.wso2.org=org.wso2.carbon.bam.client.stub.authentication,http://authentication.services.core.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.authentication.xsd"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java>
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/ServiceAdmin.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam.client.stub.serviceadmin
                                    -ns2p http://mgt.service.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.serviceadmin.types.carbon,http://utils.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.serviceadmin.types.carbon,http://util.java/xsd=org.wso2.carbon.bam.client.stub.serviceadmin.types.carbon,http://bam.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.serviceadmin.types.carbon,http://org.apache.axis2/xsd=org.wso2.carbon.bam.client.stub.serviceadmin.types.axis2,http://neethi.apache.org/xsd=org.wso2.carbon.bam.client.stub.serviceadmin.types.neethi"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java>
                                <!--java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/ServiceGroupAdmin.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam
                                    -ns2p http://mgt.service.carbon.wso2.org/xsd=org.wso2.carbon.bam.types.carbon,http://utils.carbon.wso2.org/xsd=org.wso2.carbon.bam.types.carbon,http://util.java/xsd=org.wso2.carbon.bam.types.carbon,http://bam.carbon.wso2.org/xsd=org.wso2.carbon.bam.types.carbon,http://org.apache.axis2/xsd=org.wso2.carbon.bam.types.axis2,http://neethi.apache.org/xsd=org.wso2.carbon.bam.types.neethi"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java-->
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/OperationAdmin.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam.client.stub.operationadmin
                                    -ns2p http://framework.osgi.org/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.carbon,http://mgt.operation.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.carbon,http://mgt.service.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.carbon,http://utils.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.carbon,http://util.java/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.carbon,http://bam.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.carbon,http://org.apache.axis2/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.axis2,http://neethi.apache.org/xsd=org.wso2.carbon.bam.client.stub.operationadmin.types.neethi"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java>
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/StatisticsAdmin.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam.client.stub.statisticsadmin
                                    -ns2p http://services.statistics.carbon.wso2.org=org.wso2.carbon.bam.client.stub.statisticsadmin,http://util.services.statistics.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.statisticsadmin.types.carbon,http://org.apache.axis2/xsd=org.wso2.carbon.bam.client.stub.statisticsadmin.types.axis2"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java>
                                <!--java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/BAMDataService.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam.client.stub.bamds
                                    -ns2p http://ws.wso2.org/dataservice=org.wso2.carbon.bam.client.stub.bamds.types.carbon,http://bam.carbon.wso2.org=org.wso2.carbon.bam.client.stub.bamds.types.carbon"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java-->
                                <!--java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/BAMDataCollectionDS.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam.client.stub.bamcollectionds
                                    -ns2p http://ws.wso2.org/dataservice=org.wso2.carbon.bam.client.stub.bamcollectionds.types.carbon,http://bam.carbon.wso2.org=org.wso2.carbon.bam.client.stub.bamcollectionds.types.carbon"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java-->
                                <!--java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/BAMStatQueryDS.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam.client.stub.bamqueryds
                                    -ns2p http://ws.wso2.org/dataservice=org.wso2.carbon.bam.client.stub.bamqueryds.types.carbon,http://bam.carbon.wso2.org=org.wso2.carbon.bam.client.stub.bamqueryds.types.carbon"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java-->
                                <java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                    <arg line="-uri src/main/resources/LoginStatisticsAdminService.wsdl -u -uw
                                    -o target/generated-code -p org.wso2.carbon.bam.client.stub.bamls
                                    -ns2p http://stats.authentication.services.core.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.bamls.types.carbon,http://stats.authentication.services.core.carbon.wso2.org=org.wso2.carbon.bam.client.stub.bamls.types.carbon"/>
                                    <classpath refid="maven.dependency.classpath"/>
                                    <classpath refid="maven.compile.classpath"/>
                                    <classpath refid="maven.runtime.classpath"/>
                                </java>
                                <!--java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true">
                                      <arg line="-uri src/main/resources/BAMListAdminService.wsdl -u -uw
                                      -o target/generated-code -p org.wso2.carbon.bam.client.stub.bamlist
                                      -ns2p http://org.apache.axis2/xsd=org.wso2.carbon.bam.client.stub.bamlist.types.axis2,http://dto.config.bam.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.bamlist.types.carbon,http://bam.carbon.wso2.org/xsd=org.wso2.carbon.bam.client.stub.bamlist.types.carbon"/>
                                      <classpath refid="maven.dependency.classpath"/>
                                      <classpath refid="maven.compile.classpath"/>
                                      <classpath refid="maven.runtime.classpath"/>
                                </java-->
                              </tasks>
                        </configuration>
                    </execution>
                </executions>
            </plugin>


            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>add-source</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>add-source</goal>
                        </goals>
                        <configuration>
                            <sources>
                                <source>target/generated-code/src</source>
                            </sources>
                        </configuration>
                    </execution>
                </executions>
			</plugin>

        </plugins>
    </build>
</project>
