<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>new_phoenix</artifactId>
    <groupId>phoenix</groupId>
    <version>1.0</version>
  </parent>
  <groupId>phoenix</groupId>
  <artifactId>phoenix-main</artifactId>
  <name>phoenix-main</name>
  <version>1.0</version>
  <packaging>war</packaging>
  <properties>

		<!-- convenience to define GWT version in one place -->
		<gwt.version>2.6.1</gwt.version>

		<!-- tell the compiler we can use 1.6 -->
		<maven.compiler.source>1.6</maven.compiler.source>
		<maven.compiler.target>1.6</maven.compiler.target>

		<war.name>phoenix</war.name>
		<deploy.url>http://localhost:8080/phoenix</deploy.url>
		<!-- Use this for Windows -->
		<autodeploy.folder>D:\jboss-as-7.1.1.Final\standalone\deployments</autodeploy.folder>

		<!-- Use this for /Unix -->
		<!-- uncomment the below line and comment above line to use in on mumphoenix 
			server -->
		<!--<autodeploy.folder>${basedir}/war</autodeploy.folder>-->
	</properties>

	

	<dependencies>
		<dependency>
	    	<groupId>phoenix</groupId>
	    	<artifactId>phoenix-core</artifactId>
	    	<version>1.0</version>
	    	<type>jar</type>
	    	<scope>compile</scope>
	    </dependency>
	    <dependency>
	    	<groupId>phoenix</groupId>
	    	<artifactId>phoenix-common</artifactId>
	    	<version>1.0</version>
	    	<type>jar</type>
	    	<scope>compile</scope>
	    </dependency>
	    <dependency>
	    	<groupId>phoenix</groupId>
	    	<artifactId>phoenix-framework</artifactId>
	    	<version>1.0</version>
	    	<type>jar</type>
	    	<scope>compile</scope>
	    </dependency>
	    <dependency>
	    	<groupId>phoenix</groupId>
	    	<artifactId>phoenix-admin</artifactId>
	    	<version>1.0</version>
	    	<type>jar</type>
	    	<scope>compile</scope>
	    </dependency>
	   <dependency>
	    	<groupId>phoenix</groupId>
	    	<artifactId>phoenix-ocean</artifactId>
	    	<version>1.0</version>
	    	<type>jar</type>
	    	<scope>compile</scope>
	    </dependency>	    
	  <!--   <dependency>
	    	<groupId>phoenix</groupId>
	    	<artifactId>phoenix-air</artifactId>
	    	<version>1.0</version>
	    	<type>jar</type>
	    	<scope>compile</scope>
	    </dependency>
	    <dependency>
	    	<groupId>phoenix</groupId>
	    	<artifactId>phoenix-reports</artifactId>
	    	<version>1.0</version>
	    	<type>jar</type>
	    	<scope>compile</scope>
	    </dependency>
	    <dependency>
			<groupId>phoenix</groupId>
			<artifactId>phoenix-account-finance</artifactId>
			<version>1.0</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>phoenix</groupId>
			<artifactId>phoenix-accurate</artifactId>
			<version>1.0</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>phoenix</groupId>
			<artifactId>phoenix-search</artifactId>
			<version>1.0</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
		<dependency>
			<groupId>phoenix</groupId>
			<artifactId>phoenix-appstore</artifactId>
			<version>1.0</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency> -->
	</dependencies>

	<issueManagement>
		<system>Bugzilla</system>
		<url>bugzilla.shipco.com</url>
	</issueManagement>
	<inceptionYear>October 2010</inceptionYear>
	<organization>
		<name>Shipco Corporation Inc</name>
		<url>http://www.shipco.com</url>
	</organization>
	<build>
	<testResources>
      <testResource>
        <directory>resources/query</directory>
      </testResource>
    </testResources>
		<outputDirectory>war/WEB-INF/classes</outputDirectory>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>gwt-maven-plugin</artifactId>
				<version>2.6.1</version>
				<executions>
					<execution>
						<goals>
							<goal>compile</goal>
							<!-- <goal>generateAsync</goal> -->
							<goal>test</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<webXmlServletPathAsIs>true</webXmlServletPathAsIs>
					<soyc>false</soyc>
					<noServer>true</noServer>
					<runTarget>${deploy.url}</runTarget>
					<style>OBF</style>
					<!-- Windows: please make sure this directories are changed for windows -->
					<workDir>${basedir}/tmp</workDir>

					<extraJvmArgs>-Xms1024m -Xmx1536m  -Djava.io.tmpdir=${basedir}/tmp -Djava.util.prefs.PreferencesFactory=DisabledPreferencesFactory</extraJvmArgs>
					<!-- <extraJvmArgs>-Xmx1024m  -Djava.io.tmpdir=${basedir}/tmp -Djava.util.prefs.PreferencesFactory=DisabledPreferencesFactory</extraJvmArgs> -->
					<localWorkers>2</localWorkers>
					<modules>
            <module>com.shipco.phoenix.Application</module>            
          </modules>
				</configuration>
			</plugin>
			<!-- If you want to use the target/web.xml file mergewebxml produces, 
				tell the war plugin to use it. Also, exclude what you want from the final 
				artifact here. -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.0</version>
				<configuration>
					<webResources>
						<resource>
							<directory>resources</directory>
							<excludes>								
								<exclude>**/*.jar</exclude>
							</excludes>
						</resource>
					</webResources>
					<webappDirectory>${project.build.directory}/${project.build.finalName}/com.shipco.phoenix.Application</webappDirectory>
					<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
					<outputDirectory>${autodeploy.folder}</outputDirectory>
					<warName>${war.name}</warName>
					<packagingExcludes>WEB-INF/lib/gwt-dev-*,WEB-INF/lib/ojdbc14-*,WEB-INF/lib/ironjacamar-jdbc--1.0.3.Final.jar,.gwt-tmp/**</packagingExcludes>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>${maven.compiler.source}</source>
					<target>${maven.compiler.target}</target>
				</configuration>
			</plugin>
			
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.4.3</version>
				<configuration>
					<includes>						
						<include>**/*TestCase1.java</include>
					</includes>
				</configuration>
			</plugin>
			
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<configuration>
					<additionalJOption>-J-Xmx1024m</additionalJOption>
					<minmemory>128m</minmemory>
					<maxmemory>1g</maxmemory>
					<doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
					<docletArtifact>
						<groupId>org.umlgraph</groupId>
						<artifactId>doclet</artifactId>
						<version>5.1</version>
					</docletArtifact>
					<additionalparam>-attributes -enumconstants -enumerations
						-operations -types -visibility -inferrel -inferdep -hide java.*</additionalparam>
					<destDir>target/uml</destDir>
					<show>public</show>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>
