<?xml version="1.0" encoding="UTF-8"?>
<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">
<!-- rls enable later  
<parent>
    <groupId>com.synchronica.mep</groupId>
    <artifactId>mep-gateway</artifactId>
    <version>3.1.32-SNAPSHOT</version>
  </parent>
-->  
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.sun.mep</groupId>
  <artifactId>mepAdminGUI</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>mepAdminGUI</name>
  <!-- <url>http://maven.apache.org</url> -->
  <url>${project-url}/${name}</url>
  
 
  
  
  
  
  
  
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    
        <dependency>
            <groupId>com.synchronica.mep</groupId>
            <artifactId>ds-user-model</artifactId>
            <!-- <version>${version}</version> -->
            <version>3.1.32-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.synchronica.mep</groupId>
            <artifactId>ds-jcr-connector</artifactId>
            <version>3.1.32-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        
        <dependency>
            <groupId>com.synchronica.mep</groupId>
            <artifactId>ds-webapp-admin</artifactId>
            <version>3.1.32-SNAPSHOT</version>
            <scope>compile</scope>
        </dependency>   
        
        <dependency>
            <groupId>com.sun.webui.jsf</groupId>
            <artifactId>webui-jsf</artifactId>
            <version>Woodstock4.3</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.webui.jsf</groupId>
            <artifactId>dataprovider</artifactId>
            <version>Woodstock4.3</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.webui.jsf</groupId>
            <artifactId>json-2</artifactId>
            <version>Woodstock4.3</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.webui.jsf</groupId>
            <artifactId>webui-jsf-suntheme</artifactId>
            <version>Woodstock4.3</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.webui.jsf</groupId>
            <artifactId>jsftemplating</artifactId>
            <version>Glassfish91UR2</version>
            <scope>provided</scope>
            <!-- <scope>compile</scope> -->
        </dependency>
        <dependency>
            <groupId>com.sun.webui.jsf</groupId>
            <artifactId>jsftemplating-dynafaces-0.1</artifactId>
            <version>Glassfish91UR2</version>
            <scope>compile</scope>
        </dependency> 

        <dependency>
            <groupId>com.sun.jsftemplating</groupId>
            <artifactId>jsftemplating-dt</artifactId>
            <version>${jsftemplating.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>adminGUI_war</groupId>
            <artifactId>admin-en</artifactId>
            <version>Glassfish91UR2</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>adminGUI_war</groupId>
            <artifactId>admin-jsf</artifactId>
            <version>Glassfish91UR2</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>adminGUI_war</groupId>
            <artifactId>admin</artifactId>
            <version>Glassfish91UR2</version>
            <scope>compile</scope>
        </dependency>
  </dependencies>
  
  <build>
    <finalName>mepAdminGUI</finalName>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
		<artifactId>maven-war-plugin</artifactId>
		<configuration>
		<warSourceExcludes>WEB-INF/lib/activation*.jar,
			WEB-INF/lib/antlr*.jar,
			WEB-INF/lib/asm*.jar,
			WEB-INF/lib/cglib*.jar,
			WEB-INF/lib/client-provisioning*.jar,
			WEB-INF/lib/dom4j*.jar,
			WEB-INF/lib/ds-b*.jar,
			WEB-INF/lib/ds-c*.jar,
			WEB-INF/lib/ds-s*.jar,
			WEB-INF/lib/jboss*.jar,
			WEB-INF/lib/mail*.jar,
			WEB-INF/lib/quartz*.jar,
			WEB-INF/lib/smpp*.jar,
			WEB-INF/lib/sync4j*.jar,
			WEB-INF/lib/synchronica-s*.jar,
                        WEB-INF/lib/servlet-api-2.3.jar,
                        WEB-INF/lib/jsftemplating-dt*
                  </warSourceExcludes>
                  <archive>
			<manifest>
                            <addClasspath>true</addClasspath>
			</manifest>
                  </archive>
		  </configuration>
            </plugin>
            
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.4</source>
                    <target>1.4</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <configuration>
                    <!-- Enable the plugin for hk2-jar packaging type -->
                    <supportedProjectTypes>
                        <supportedProjectType>hk2-jar</supportedProjectType>
                        <supportedProjectType>jar</supportedProjectType>
                        <supportedProjectType>bundle</supportedProjectType>
                    </supportedProjectTypes>
                    <instructions>
                        <!-- _include does not work. See Felix-620.
                        <_include>osgi.bundle</_include>
                        -->
                        <Export-Package>
                        com.sun.mep.admingui.handlers,
                        </Export-Package>
                    </instructions>
                </configuration>
                <executions>
                    <execution>
                        <id>bundle-manifest</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>manifest</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>com.sun.enterprise</groupId>
                <artifactId>hk2-maven-plugin</artifactId>
                <version>${hk2.plugin.version}</version>
                <configuration>
                    <archive>
                        <!-- Use the manifest.mf produced by maven-bundle-plugin:manifest -->
                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                    </archive>
                    <processors>
                        <processor>
                            <groupId>com.sun.jsftemplating</groupId>
                            <artifactId>jsftemplating-dt</artifactId>
                            <version>${jsftemplating.version}</version>
                        </processor>
                    </processors>

                </configuration>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <excludes>
                    <exclude>**/*.jar</exclude>
                </excludes>
            </resource>
        </resources>
  </build>
  <properties>
        <jsftemplating.version>1.2.3</jsftemplating.version>
    </properties>

</project>

