<!-- ****************************************************************************** 
	* Copyright (c) 2000-2011 E-DEAL * * E-DEAL S.A. * 41, rue Périer * 92120 
	Montrouge * France * * T: +33 (0)1 73 03 29 80 * F: +33 (0)1 73 01 69 77 
	* http://www.e-deal.com * * La diffusion de ce code source sous quelque forme 
	que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes 
	autorisés à modifier ce code source uniquement pour votre usage * propre 
	et sous réserve que les mentions de copyright demeurent intactes. * * Ce 
	code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * 
	implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable 
	des dommages pouvant résulter de l'utilisation de ce code * source. ****************************************************************************** -->
<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">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>com.edeal.frontline</groupId>
		<artifactId>edeal-parent</artifactId>
		<version>Spring2013-005</version>
	</parent>

	<artifactId>edeal-webapp</artifactId>

	<description>E-DEAL Webapp</description>
	<packaging>war</packaging>
	<name>E-DEAL Webapp</name>
	<url>http://www.e-deal.com</url>

	<properties>
		<!-- <target.dir>src/main/webapp/edealCRM/WEB-INF</target.dir> -->
		<!-- If edealCRM removed from webapp -->
		<target.dir>src/main/webapp/WEB-INF</target.dir>
		<packaging.directory>jars</packaging.directory>
		<additional.libs.directory>lib</additional.libs.directory>
		<webapp.context>/edealcrm</webapp.context>
		<encoding.format>UTF-8</encoding.format>
		<java.version>1.6</java.version>

		<!-- Eclipse Project Facets Version -->
		<wtp.version>2.0</wtp.version>
		<wst.jsdt.web.version>1.0</wst.jsdt.web.version>
		<jst.web.version>2.5</jst.web.version>

		<!-- Database provider version -->
		<!-- Current lib JDK 1.6 unavailable in public repo get from ou Artifactory -->
		<oracle.provider.artifactId>ojdbc6</oracle.provider.artifactId>
		<oracle.provider.version>11.2.0.3.0</oracle.provider.version>

		<!-- JDK 1.5 unavailable in public repo get from ou Artifactory -->
		<!-- <oracle.provider.artifactId>ojdbc5</oracle.provider.artifactId> -->
		<!-- <oracle.provider.version>11.2.0.3.0</oracle.provider.version> -->

		<!-- JDK 1.4 -->
		<!-- <oracle.provider.artifactId>ojdbc</oracle.provider.artifactId> -->
		<!-- <oracle.provider.version>14</oracle.provider.version> -->

		<!-- Current lib -->
		<postgresql.provider.artifactId>postgresql</postgresql.provider.artifactId>
		<postgresql.provider.version>8.1-404.jdbc3</postgresql.provider.version>

		<!-- Most recent libs -->
		<!-- <postgresql.provider.version>9.1-901.jdbc4</postgresql.provider.version> -->
		<!-- <postgresql.provider.version>9.1-901.jdbc3</postgresql.provider.version> -->

		<!-- Current lib -->
		<sqlserver.provider.artifactId>jtds</sqlserver.provider.artifactId>
		<sqlserver.provider.version>1.2.2</sqlserver.provider.version>

		<!-- Most recent libs -->
		<!-- <sqlserver.provider.version>1.2.4</sqlserver.provider.version> -->

		<!-- Packaging properties - Distribution properties like version: 1.0, 
			1.1, 4.1.2 prefix: edeal, winter2011, autumn2012, cci2012 -->
		<distribution.prefix>edeal</distribution.prefix>
		<release.assembly.name>E-DEAL_CRM.${project.version}</release.assembly.name>
	</properties>

	<dependencies>
		<!-- Dependencies for test phase -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<scope>test</scope>
		</dependency>

		<!-- Dependencies which normally must be provided by server container or 
			musn't be package in standard like with Domino jar (just use to compile) -->
		<dependency>
			<groupId>com.ibm</groupId>
			<artifactId>Notes</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.thetransactioncompany</groupId>
			<artifactId>cors-filter</artifactId>
			<scope>runtime</scope>
		</dependency>

		<!-- Change this dependency if you wan't another database provider -->

		<!-- SQLServer Drivers -->
		<!-- Current lib -->
		<dependency>
			<groupId>net.sourceforge.jtds</groupId>
			<artifactId>${sqlserver.provider.artifactId}</artifactId>
			<version>${sqlserver.provider.version}</version>
			<scope>compile</scope>
		</dependency>

		<!-- PostGreSQL Drivers -->
		<dependency>
			<groupId>postgresql</groupId>
			<artifactId>${postgresql.provider.artifactId}</artifactId>
			<version>${postgresql.provider.version}</version>
			<scope>runtime</scope>
		</dependency>

		<!-- Oracle Drivers -->
		<dependency>
			<groupId>com.oracle</groupId>
			<artifactId>${oracle.provider.artifactId}</artifactId>
			<version>${oracle.provider.version}</version>
			<scope>runtime</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.axis2</groupId>
			<artifactId>addressing</artifactId>
			<type>mar</type>
			<exclusions>
				<exclusion>
					<groupId>javax.mail</groupId>
					<artifactId>mail</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-javamail_1.4_spec</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-stax-api_1.0_spec</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-activation_1.1_spec</artifactId>
				</exclusion>
				<exclusion>
					<groupId>xalan</groupId>
					<artifactId>xalan</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet.jsp</groupId>
			<artifactId>jsp-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<!-- Unavailable dependency for moment because not correctly deployed into 
			a maven repo -->
		<!--<dependency> <groupId>microsoft.exchange</groupId> <artifactId>exchange-ws-api</artifactId> 
			<version>1.1.4-SNAPSHOT</version> </dependency> -->

		<!-- Dependencies which must be packaged in standard -->
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
		</dependency>
		<dependency>
			<groupId>commons-discovery</groupId>
			<artifactId>commons-discovery</artifactId>
		</dependency>
		<dependency>
			<groupId>com.sun.mail</groupId>
			<artifactId>javax.mail</artifactId>
			<exclusions>
				<exclusion>
					<groupId>javax.activation</groupId>
					<artifactId>activation</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.xmlbeans</groupId>
			<artifactId>xmlbeans</artifactId>
			<!-- JAVA 6 already include Stax, but not JAVA 5 comment exclude to compile 
				in 1.5 -->
			<exclusions>
				<exclusion>
					<groupId>stax</groupId>
					<artifactId>stax-api</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.json</groupId>
			<artifactId>json</artifactId>
		</dependency>
		<dependency>
			<groupId>dom4j</groupId>
			<artifactId>dom4j</artifactId>
			<exclusions>
				<exclusion>
					<groupId>xml-apis</groupId>
					<artifactId>xml-apis</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.restlet.jse</groupId>
			<artifactId>org.restlet</artifactId>
		</dependency>
		<dependency>
			<groupId>org.restlet.jse</groupId>
			<artifactId>org.restlet.ext.crypto</artifactId>
		</dependency>
		<dependency>
			<groupId>org.restlet.jse</groupId>
			<artifactId>org.restlet.ext.json</artifactId>
		</dependency>
		<dependency>
			<groupId>org.restlet.jse</groupId>
			<artifactId>org.restlet.ext.net</artifactId>
		</dependency>
		<dependency>
			<groupId>com.itextpdf</groupId>
			<artifactId>itextpdf</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache</groupId>
			<artifactId>slide-webdavlib</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.solr</groupId>
			<artifactId>solr-core</artifactId>
			<exclusions>
				<exclusion>
					<groupId>javax.mail</groupId>
					<artifactId>mail</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-stax-api_1.0_spec</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.solr</groupId>
			<artifactId>solr-dataimporthandler</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-stax-api_1.0_spec</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>com.google.gdata</groupId>
			<artifactId>gdata-calendar-2.0</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.gdata</groupId>
			<artifactId>gdata-contacts-3.0</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.tika</groupId>
			<artifactId>tika-core</artifactId>
		</dependency>
		<dependency>
			<groupId>com.enterprisedt</groupId>
			<artifactId>edtftpj</artifactId>
		</dependency>

		<!-- HornetQ Dependencies -->
		<dependency>
			<groupId>org.hornetq</groupId>
			<artifactId>hornetq-core</artifactId>
		</dependency>
		<dependency>
			<groupId>org.hornetq</groupId>
			<artifactId>hornetq-logging</artifactId>
		</dependency>
		<dependency>
			<groupId>org.hornetq</groupId>
			<artifactId>hornetq-core-client</artifactId>
		</dependency>
		<dependency>
			<groupId>org.jboss.netty</groupId>
			<artifactId>netty</artifactId>
		</dependency>

		<dependency>
			<groupId>com.google.code.gson</groupId>
			<artifactId>gson</artifactId>
		</dependency>
		<dependency>
			<groupId>javax.xml</groupId>
			<artifactId>jaxrpc-api</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.axis2</groupId>
			<artifactId>axis2-kernel</artifactId>
			<exclusions>
				<exclusion>
					<groupId>xerces</groupId>
					<artifactId>xmlParserAPIs</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.mail</groupId>
					<artifactId>mail</artifactId>
				</exclusion>
				<exclusion>
					<groupId>xalan</groupId>
					<artifactId>xalan</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-jta_1.1_spec</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-stax-api_1.0_spec</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<!-- Use our Axis2 Transport HTTP implementation with Exchange 2010 in the Cloud bugfix -->
		<dependency>
			<groupId>org.apache.axis2</groupId>
			<artifactId>axis2-transport-http-edeal</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.axis2</groupId>
			<artifactId>axis2-transport-local</artifactId>
		</dependency>
		<dependency>
			<groupId>ews</groupId>
			<artifactId>ews-client</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.axis</groupId>
			<artifactId>axis</artifactId>
		</dependency>
		<dependency>
			<groupId>com.amabis</groupId>
			<artifactId>amabis-ws</artifactId>
		</dependency>
		<dependency>
			<groupId>com.genesyslab</groupId>
			<artifactId>ail</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.poi</groupId>
			<artifactId>poi</artifactId>
		</dependency>
		<dependency>
			<groupId>net.sourceforge.htmlcleaner</groupId>
			<artifactId>htmlcleaner</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.xmlgraphics</groupId>
			<artifactId>fop</artifactId>
			<exclusions>
				<exclusion>
					<groupId>xalan</groupId>
					<artifactId>xalan</artifactId>
				</exclusion>
				<exclusion>
					<groupId>xml-apis</groupId>
					<artifactId>xml-apis</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>net.java.dev</groupId>
			<artifactId>connext-graphs</artifactId>
		</dependency>
		<dependency>
			<groupId>org.json.rpc</groupId>
			<artifactId>jsonrpc</artifactId>
		</dependency>
		<dependency>
			<groupId>org.jsoup</groupId>
			<artifactId>jsoup</artifactId>
		</dependency>
		<dependency>
			<groupId>com.sun.mail</groupId>
			<artifactId>dsn</artifactId>
			<exclusions>
				<exclusion>
					<groupId>javax.activation</groupId>
					<artifactId>activation</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>jstl</groupId>
			<artifactId>jstl</artifactId>
		</dependency>
		<dependency>
			<groupId>taglibs</groupId>
			<artifactId>standard</artifactId>
		</dependency>
		<dependency>
			<groupId>org.nfunk</groupId>
			<artifactId>jep</artifactId>
		</dependency>
		<!-- <dependency> -->
		<!-- <groupId>xml-apis</groupId> -->
		<!-- <artifactId>xml-apis</artifactId> -->
		<!-- <version>1.3.04</version> -->
		<!-- </dependency> -->

		<!-- For ICS file generation during send mail -->
		<dependency>
			<groupId>org.mnode.ical4j</groupId>
			<artifactId>ical4j</artifactId>
		</dependency>

		<!-- Geolocalisation en JAVA GoogleMap V3 -->
		<dependency>
			<groupId>com.google.code.geocoder-java</groupId>
			<artifactId>geocoder-java</artifactId>
		</dependency>

		<!-- Only used to recover all classes implemented by an interface
		for the moment -->
		<dependency>
			<groupId>org.reflections</groupId>
			<artifactId>reflections</artifactId>
		</dependency>

		<!-- Not sure libs -->
		<dependency>
			<groupId>org.apache.tika</groupId>
			<artifactId>tika-parsers</artifactId>
			<exclusions>
				<exclusion>
					<groupId>jdom</groupId>
					<artifactId>jdom</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-stax-api_1.0_spec</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>net.sourceforge.nekohtml</groupId>
			<artifactId>nekohtml</artifactId>
			<exclusions>
				<exclusion>
					<groupId>xerces</groupId>
					<artifactId>xercesImpl</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>log4j-over-slf4j</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.solr</groupId>
			<artifactId>solr-velocity</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.inject</groupId>
			<artifactId>guice</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.inject.extensions</groupId>
			<artifactId>guice-multibindings</artifactId>
		</dependency>
		<dependency>
			<groupId>com.google.inject.extensions</groupId>
			<artifactId>guice-servlet</artifactId>
		</dependency>
	</dependencies>
	<build>
		<!-- <sourceDirectory>${basedir}/src/main/java</sourceDirectory> -->
		<outputDirectory>${basedir}/${target.dir}/classes</outputDirectory>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.3.2</version>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
					<encoding>${encoding.format}</encoding>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>2.9</version>
				<configuration>
					<sourceExcludes>
						<sourceExclude>bin</sourceExclude>
						<sourceExclude>deploy.jars</sourceExclude>
						<!-- <sourceExclude>lib</sourceExclude> -->
						<sourceExclude>res</sourceExclude>
						<sourceExclude>target</sourceExclude>
					</sourceExcludes>
					<additionalProjectFacets>
						<wst.jsdt.web>${wst.jsdt.web.version}</wst.jsdt.web>
						<java>${java.version}</java>
						<jst.web>${jst.web.version}</jst.web>
					</additionalProjectFacets>
					<additionalProjectnatures>
						<projectnature>org.eclipse.jem.workbench.JavaEMFNature</projectnature>
						<projectnature>org.eclipse.wst.common.project.facet.core.nature</projectnature>
						<projectnature>org.eclipse.wst.jsdt.core.jsNature</projectnature>
					</additionalProjectnatures>
					<buildcommands>
						<buildcommand>org.eclipse.wst.jsdt.core.javascriptValidator</buildcommand>
						<buildcommand>org.eclipse.jdt.core.javabuilder</buildcommand>
						<buildcommand>org.eclipse.wst.common.project.facet.core.builder</buildcommand>
						<buildcommand>org.eclipse.wst.validation.validationbuilder</buildcommand>
					</buildcommands>
					<projectnatures>
						<projectnature>org.eclipse.jdt.core.javanature</projectnature>
						<projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
					</projectnatures>
					<additionalConfig>
						<file>
							<name>.settings/org.eclipse.jdt.core.prefs</name>
							<content>
<![CDATA[
encoding/src/test/java=UTF-8
encoding/.=UTF-8
encoding/src/main/resources=UTF-8
eclipse.preferences.version=1
encoding/src/test/resources=UTF-8
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.source=1.6
]]>
							</content>
						</file>
					</additionalConfig>
					<wtpContextName>${webapp.context}</wtpContextName>
					<wtpversion>${wtp.version}</wtpversion>
					<wtpmanifest>true</wtpmanifest>
					<wtpapplicationxml>true</wtpapplicationxml>
				</configuration>
			</plugin>
			<!-- Allowing also package a jar which only edeal-webapp classes, no full war-->
			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.1.1</version>
				<configuration>
					<attachClasses>true</attachClasses>
					<classesClassifier>classes</classesClassifier>
				</configuration>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											org.apache.maven.plugins
										</groupId>
										<artifactId>
											maven-dependency-plugin
										</artifactId>
										<versionRange>
											[2.1,)
										</versionRange>
										<goals>
											<goal>
												copy-dependencies
											</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>
	<profiles>
		<profile>
			<id>distribution-packaging</id>
			<dependencies>
					<!-- PostGreSQL Drivers -->
					<dependency>
						<groupId>postgresql</groupId>
						<artifactId>${postgresql.provider.artifactId}</artifactId>
						<version>${postgresql.provider.version}</version>
						<scope>provided</scope>
					</dependency>

					<!-- Oracle Drivers -->
					<dependency>
						<groupId>com.oracle</groupId>
						<artifactId>${oracle.provider.artifactId}</artifactId>
						<version>${oracle.provider.version}</version>
						<scope>provided</scope>
					</dependency>
			</dependencies>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation><build>
				<plugins>
					<plugin>
						<artifactId>maven-clean-plugin</artifactId>
    					<version>2.5</version>
				        <executions>
				          <execution>
				            <id>auto-clean</id>
				            <phase>initialize</phase>
				            <goals>
				              <goal>clean</goal>
				            </goals>
				          </execution>
				        </executions>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>buildnumber-maven-plugin</artifactId>
						<version>1.1</version>
						<executions>
							<execution>
								<id>generate-build-date</id>
								<phase>validate</phase>
								<goals>
									<goal>create</goal>
								</goals>
								<configuration>
									<doCheck>false</doCheck>
									<doUpdate>true</doUpdate>
									<format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
									<items>
										<item>timestamp</item>
									</items>
									<buildNumberPropertyName>buildDate</buildNumberPropertyName>
								</configuration>
							</execution>
							<execution>
								<id>generate-timestamp</id>
								<phase>validate</phase>
								<goals>
									<goal>create</goal>
								</goals>
								<configuration>
									<doCheck>false</doCheck>
									<doUpdate>true</doUpdate>
									<format>{0}</format>
									<items>
										<item>timestamp</item>
									</items>
								</configuration>
							</execution>
							<execution>
								<phase>validate</phase>
								<goals>
									<goal>create</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-jar-plugin</artifactId>
						<version>2.4</version>
						<configuration>
							<outputDirectory>${basedir}/target/${packaging.directory}</outputDirectory>
							<archive>
								<manifest>
									<addClasspath>true</addClasspath>
								</manifest>
								<manifestEntries>
									<url>${project.url}</url>
									<Implementation-Title>${project.name}</Implementation-Title>
									<Implementation-Vendor>E-DEAL</Implementation-Vendor>
									<Implementation-Version>${project.version}</Implementation-Version>
									<Build-Number>${timestamp}</Build-Number>
									<Build-Date>${buildDate}</Build-Date>
									<Built-OS>${os.name}</Built-OS>
								</manifestEntries>
							</archive>
						</configuration>
						<executions>
							<execution>
								<id>build-edeal-base-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/*.class</include>
										<include>com/edeal/frontline/automation/*.class</include>
										<include>com/edeal/frontline/grid/**</include>
										<include>com/edeal/frontline/display/**</include>
										<include>com/edeal/frontline/helper/**</include>
										<include>com/edeal/frontline/navigation/**</include>
										<include>com/edeal/frontline/partition/**</include>
										<include>com/edeal/frontline/webservicessubscription/**</include>
									</includes>
									<finalName>${distribution.prefix}-base</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-controller-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/controller/**</include>
										<include>com/edeal/frontline/initializers/**</include>
										<include>com/edeal/frontline/grid/**</include>
										<include>com/edeal/frontline/display/**</include>
										<include>com/edeal/frontline/helper/**</include>
										<include>com/edeal/frontline/navigation/**</include>
									</includes>
									<excludes>
										<exclude>com/edeal/frontline/controller/actions/custom/notused/**</exclude>
									</excludes>
									<finalName>${distribution.prefix}-controller</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-custom-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/custom/*.class</include>
									</includes>
									<finalName>${distribution.prefix}-custom</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-dashboard-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/dashboard/*.class</include>
									</includes>
									<finalName>${distribution.prefix}-dashboard</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-transfer-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/transfer/**</include>
									</includes>
									<finalName>${distribution.prefix}-transfer</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-fulltextsearch-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/fulltextsearch/**</include>
									</includes>
									<finalName>${distribution.prefix}-fulltextsearch</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-fusion-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/fusion/**</include>
									</includes>
									<finalName>${distribution.prefix}-fusion</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-infobar-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/infobar/**</include>
									</includes>
									<finalName>${distribution.prefix}-infobar</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-netbusiness-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/netbusiness/**</include>
										<include>com/edeal/frontline/publication/**</include>
									</includes>
									<finalName>${distribution.prefix}-netbusiness</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-ofcgraphs-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/ofcgraphs/**</include>
									</includes>
									<finalName>${distribution.prefix}-ofcgraphs</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-tasks-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/tasks/**</include>
									</includes>
									<finalName>${distribution.prefix}-tasks</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-merger-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/merger/**</include>
									</includes>
									<finalName>${distribution.prefix}-merger</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-services-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/services/**</include>
										<include>com/edeal/frontline/ws/**</include>
									</includes>
									<finalName>${distribution.prefix}-services</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-sla-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/sla/**</include>
									</includes>
									<finalName>${distribution.prefix}-sla</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-synchro-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/synchro/**</include>
									</includes>
									<finalName>${distribution.prefix}-synchro</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-utils-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/dataimport/**</include>
										<include>com/edeal/frontline/util/**</include>
									</includes>
									<finalName>${distribution.prefix}-utils</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-workflow-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/workflow/**</include>
									</includes>
									<finalName>${distribution.prefix}-workflow</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-kpi-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/kpi/**</include>
									</includes>
									<finalName>${distribution.prefix}-kpi</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-map-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/map/**</include>
									</includes>
									<finalName>${distribution.prefix}-map</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-jaxb-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/xml/**</include>
									</includes>
									<finalName>${distribution.prefix}-jaxb</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-wall-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/wall/**</include>
									</includes>
									<finalName>${distribution.prefix}-wall</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-msging-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/messaging/**</include>
									</includes>
									<finalName>${distribution.prefix}-msging</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-di-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/guice/**</include>
									</includes>
									<finalName>${distribution.prefix}-di</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-checker-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/checker/**</include>
									</includes>
									<finalName>${distribution.prefix}-checker</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-dao-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/dao/**</include>
									</includes>
									<finalName>${distribution.prefix}-dao</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-configwizard-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/wizard/**</include>
									</includes>
									<finalName>${distribution.prefix}-wizardconfig</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-process-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/process/**</include>
									</includes>
									<finalName>${distribution.prefix}-process</finalName>
								</configuration>
							</execution>
						</executions>
					</plugin>

					<plugin>
						<artifactId>maven-assembly-plugin</artifactId>
        				<version>2.4</version>
						<executions>
							<execution>
								<id>dist</id>
								<phase>package</phase>
								<goals>
									<goal>single</goal>
								</goals>
								<configuration>
									<finalName>${release.assembly.name}</finalName>
									<descriptors>
										<descriptor>res/distribution.xml</descriptor>
									</descriptors>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>1.7</version>
						<executions>
							<execution>
								<id>ant-war-generation</id>
								<phase>package</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<exportAntProperties>true</exportAntProperties>
									<target>						
                					<property name="maven.classpath" refid="maven.runtime.classpath" />
                					<echo>****************************** MANIFEST.MF Generation ******************************</echo>
                					<echo>MANIFEST.MF generate to ${basedir}/target/${release.assembly.name}-distribution/${release.assembly.name}/webapps/edealCRM/WEB-INF/classes/META-INF/MANIFEST.MF</echo>
                					<echo>With following parameters:</echo>
               						<echo>Url: ${project.url}</echo>
               						<echo>Implementation-Title: ${project.name}</echo>
               						<echo>Implementation-Vendor: ${E-DEAL}</echo>
               						<echo>Implementation-Version: ${project.version}</echo>
               						<echo>Build-Number: ${timestamp}</echo>
               						<echo>Build-Date: ${buildDate}</echo>
               						<echo>Built-OS: ${os.name}</echo>
               						<pathconvert pathsep="${line.separator}| |-- " property="compile_fileset" refid="maven.runtime.classpath" />
               						<echo message="|-- compile classpath" />
               						<echo message="| |" />
               						<echo message="| |-- ${compile_fileset}" />
                					<echo>************************************************************************************</echo>
<!--                 					<copy file="${basedir}/target/${release.assembly.name}-distribution/${release.assembly.name}/webapps/edealCRM/META-INF/MANIFEST.MF" tofile="${basedir}/target/${release.assembly.name}-distribution/${release.assembly.name}/webapps/edealCRM/WEB-INF/classes/META-INF/MANIFEST.MF" overwrite="true" />			 -->
									<manifest file="${basedir}/target/${release.assembly.name}-distribution/${release.assembly.name}/webapps/edealCRM/META-INF/MANIFEST.MF">
											<attribute name="url" value="${project.url}" />
											<attribute name="Implementation-Title" value="${project.name}" />
											<attribute name="Implementation-Vendor" value="E-DEAL" />
											<attribute name="Implementation-Version" value="${project.version}" />
											<attribute name="Build-Number" value="${timestamp}" />
											<attribute name="Build-Date" value="${buildDate}" />
											<attribute name="Built-OS" value="${os.name}" />
											<attribute name="Class-Path" value="${maven.classpath}" />
									</manifest>
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
		<profile>
			<id>generate-edeal-war</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-war-plugin</artifactId>
						<version>2.3</version>
						<configuration>
							<webXml>${basedir}/src/main/webapp/edealCRM/WEB-INF/web.xml</webXml>
							<webResources>
								<resource>
									<directory />
								</resource>
								<resource>
									<directory>${basedir}/src/main/webapp/edealCRM</directory>
								</resource>
							</webResources>
							<warSourceDirectory>${basedir}/src/main/webapp/edealCRM</warSourceDirectory>
							<archiveClasses>false</archiveClasses>
							<archive>
								<manifest>
									<addClasspath>true</addClasspath>
									<classpathPrefix />
								</manifest>
								<manifestEntries>
									<url>${project.url}</url>
									<Implementation-Build>${buildNumber}</Implementation-Build>
									<Implementation-Title>${project.name}</Implementation-Title>
									<Implementation-Vendor>E-DEAL</Implementation-Vendor>
									<Implementation-Version>${project.version}</Implementation-Version>
									<Built-OS>${os.name}</Built-OS>
									<Build-Date>${timestamp}</Build-Date>
									<SCM>${buildNumber}</SCM>
								</manifestEntries>
							</archive>
						</configuration>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.1</version>
						<executions>
							<execution>
								<id>jar</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<!-- relative to the input directory whose contents is being packaged 
								into the JAR -->
							<!-- must be src\main\java than? -->
							<includes>
								<include>**/*.java</include>
								<include>../**/*.groovy</include>
							</includes>
							<includePom>true</includePom>
							<useDefaultExcludes>false</useDefaultExcludes>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- BuildDbDescription java com.edeal.frontline.util.BuildDBDescription 
			<path of XML output file> -ctx <context> Can be launch by: mvn generate-resources 
			-Pbuilddb-description-all Parameter can be overrided by: -Dout="mydir/edealCRM.xml" 
			-Dctx="/edealcrm" in maven command line -->
		<profile>
			<id>builddb-description-all</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<out>${basedir}/res/edealCRM.xml</out>
				<ctx>${webapp.context}</ctx>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.BuildDBDescription</mainClass>
							<arguments>
								<argument>${out}</argument>
								<argument>-ctx</argument>
								<argument>${ctx}</argument>
								<argument>-a</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

			<!-- Data Import profile: Invoke following class
			java com.edeal.frontline.dataimport.DataImport with following parameters:
			-ctx <Frontline context> -xml <script file> -nfo <date file> -err <file> -out <file> -s <file>
			
			Can be launch by: mvn generate-resources 
			-Pdata-import Parameter can be overrided by: -Dnfo="lastimport.nfo" 
			-Dctx="/edealcrm" -Dxml="C:\Users\a.ruffie\Desktop\imports\ACTOR.xml" ...
			
			Example:
			mvn generate-resources -Pdata-import-Oracle -Dctx=/edealcrm -Dxml=C:\Users\a.ruffie\Desktop\imports\ACTOR.xml
			-Dnfo=C:\Users\a.ruffie\Desktop\imports\actor-import.nfo -Derr=C:\User\a.ruffie\Desktop\imports\actor-log.err 
			-Dout=C:\Users\a.ruffie\Desktop\imports\actor-log.out -Dsource=C:\Users\a.ruffie\Desktop\imports\ACTOR.csv 
			in maven command line -->
		<profile>
			<id>data-import-Oracle</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<ctx>${webapp.context}</ctx>
				<xml>${basedir}/imports/import.xml</xml>
				<nfo>${basedir}/imports/lastimport.nfo</nfo>
				<err>${basedir}/imports/log.err</err>
				<out>${basedir}/imports/log.out</out>
				<source>${basedir}/imports/import.csv</source>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
				<dependency>
					<groupId>com.oracle</groupId>
					<artifactId>${oracle.provider.artifactId}</artifactId>
					<version>${oracle.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.dataimport.DataImport</mainClass>
							<arguments>
								<argument>agrs</argument>
								<argument>-ctx</argument>
								<argument>${ctx}</argument>
								<argument>-xml</argument>
								<argument>${xml}</argument>
								<argument>-nfo</argument>
								<argument>${nfo}</argument>
								<argument>-err</argument>
								<argument>${err}</argument>
								<argument>-out</argument>
								<argument>${out}</argument>
								<argument>-s</argument>
								<argument>${source}</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Data Import profile: Invoke following class
			java com.edeal.frontline.dataimport.DataImport with following parameters:
			-ctx <Frontline context> -xml <script file> -nfo <date file> -err <file> -out <file> -s <file>
			
			Can be launch by: mvn generate-resources 
			-Pdata-import Parameter can be overrided by: -Dnfo="lastimport.nfo" 
			-Dctx="/edealcrm" -Dxml="C:\Users\a.ruffie\Desktop\imports\ACTOR.xml" ...
			
			Example:
			mvn generate-resources -Pdata-import-MSSQL -Dctx=/edealcrm -Dxml=C:\Users\a.ruffie\Desktop\imports\ACTOR.xml
			-Dnfo=C:\Users\a.ruffie\Desktop\imports\actor-import.nfo -Derr=C:\User\a.ruffie\Desktop\imports\actor-log.err 
			-Dout=C:\Users\a.ruffie\Desktop\imports\actor-log.out -Dsource=C:\Users\a.ruffie\Desktop\imports\ACTOR.csv 
			in maven command line -->
		<profile>
			<id>data-import-MSSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<ctx>${webapp.context}</ctx>
				<xml>${basedir}/imports/import.xml</xml>
				<nfo>${basedir}/imports/lastimport.nfo</nfo>
				<err>${basedir}/imports/log.err</err>
				<out>${basedir}/imports/log.out</out>
				<source>${basedir}/imports/import.csv</source>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
				<dependency>
					<groupId>net.sourceforge.jtds</groupId>
					<artifactId>${sqlserver.provider.artifactId}</artifactId>
					<version>${sqlserver.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.dataimport.DataImport</mainClass>
							<arguments>
								<argument>agrs</argument>
								<argument>-ctx</argument>
								<argument>${ctx}</argument>
								<argument>-xml</argument>
								<argument>${xml}</argument>
								<argument>-nfo</argument>
								<argument>${nfo}</argument>
								<argument>-err</argument>
								<argument>${err}</argument>
								<argument>-out</argument>
								<argument>${out}</argument>
								<argument>-s</argument>
								<argument>${source}</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Data Import profile: Invoke following class
			java com.edeal.frontline.dataimport.DataImport with following parameters:
			-ctx <Frontline context> -xml <script file> -nfo <date file> -err <file> -out <file> -s <file>
			
			Can be launch by: mvn generate-resources 
			-Pdata-import Parameter can be overrided by: -Dnfo="lastimport.nfo" 
			-Dctx="/edealcrm" -Dxml="C:\Users\a.ruffie\Desktop\imports\ACTOR.xml" ...
			
			Example:
			mvn generate-resources -Pdata-import-PostgreSQL -Dctx=/edealcrm -Dxml=C:\Users\a.ruffie\Desktop\imports\ACTOR.xml
			-Dnfo=C:\Users\a.ruffie\Desktop\imports\actor-import.nfo -Derr=C:\User\a.ruffie\Desktop\imports\actor-log.err 
			-Dout=C:\Users\a.ruffie\Desktop\imports\actor-log.out -Dsource=C:\Users\a.ruffie\Desktop\imports\ACTOR.csv 
			in maven command line -->
		<profile>
			<id>data-import-PostgreSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<ctx>${webapp.context}</ctx>
				<xml>${basedir}/imports/import.xml</xml>
				<nfo>${basedir}/imports/lastimport.nfo</nfo>
				<err>${basedir}/imports/log.err</err>
				<out>${basedir}/imports/log.out</out>
				<source>${basedir}/imports/import.csv</source>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
				<dependency>
					<groupId>postgresql</groupId>
					<artifactId>${postgresql.provider.artifactId}</artifactId>
					<version>${postgresql.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.dataimport.DataImport</mainClass>
							<arguments>
								<argument>agrs</argument>
								<argument>-ctx</argument>
								<argument>${ctx}</argument>
								<argument>-xml</argument>
								<argument>${xml}</argument>
								<argument>-nfo</argument>
								<argument>${nfo}</argument>
								<argument>-err</argument>
								<argument>${err}</argument>
								<argument>-out</argument>
								<argument>${out}</argument>
								<argument>-s</argument>
								<argument>${source}</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Generate Base 1 profile java com.edeal.frontline.util.GenerateBase 
			<in.xml> -num <n° de base> [-db <type de SGBD>] [-date <format>] [-sql] [-profile 
			<profile.xml>] [-csv <import.zip>] [-unicode] Can be launch by: mvn generate-resources 
			-Pgeneratebase-1-MSSQL Parameter can be overrided by: -Ddb=MSSQL -Ddate="yyyyMMdd 
			HH:mm:ss:SSS" in maven command line -->
		<profile>
			<id>generatebase-1-MSSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>MSSQL</db>
				<num>0</num>
				<date>"yyyyMMdd HH:mm:ss:SSS"</date>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.GenerateBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-num</argument>
								<argument>${num}</argument>
								<argument>-date</argument>
								<argument>${date}</argument>
								<argument>-sql</argument>
								<argument>-index_all</argument>
								<argument>-unicode</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Generate Base 1 profile java com.edeal.frontline.util.GenerateBase 
			<in.xml> -num <n° de base> [-db <type de SGBD>] [-date <format>] [-sql] [-profile 
			<profile.xml>] [-csv <import.zip>] [-unicode] Can be launch by: mvn generate-resources 
			-Pgeneratebase-1-Oracle Parameter can be overrided by: -Ddb=Oracle -Ddate="yyyyMMdd 
			HH:mm:ss:SSS" in maven command line -->
		<profile>
			<id>generatebase-1-Oracle</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>Oracle</db>
				<num>0</num>
				<!-- <date>"yyyyMMdd HH:mm:ss:SSS"</date> -->
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.GenerateBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-num</argument>
								<argument>${num}</argument>
								<!-- <argument>-date</argument> <argument>${date}</argument> -->
								<argument>-sql</argument>
								<argument>-index_all</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Generate Base 1 profile java com.edeal.frontline.util.GenerateBase 
			<in.xml> -num <n° de base> [-db <type de SGBD>] [-date <format>] [-sql] [-profile 
			<profile.xml>] [-csv <import.zip>] [-unicode] Can be launch by: mvn generate-resources 
			-Pgeneratebase-1-PostgreSQL Parameter can be overrided by: -Ddb=PostgreSQL 
			-Ddate="yyyy-MM-dd HH:mm:ss" in maven command line -->
		<profile>
			<id>generatebase-1-PostgreSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>PostgreSQL</db>
				<num>0</num>
				<date>"yyyy-MM-dd HH:mm:ss"</date>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.GenerateBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-num</argument>
								<argument>${num}</argument>
								<argument>-date</argument>
								<argument>${date}</argument>
								<argument>-sql</argument>
								<argument>-index_all</argument>
								<argument>-unicode</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Generate Base 2 profile java com.edeal.frontline.util.GenerateBase 
			<in.xml> -num <n° de base> [-db <type de SGBD>] [-date <format>] [-sql] [-profile 
			<profile.xml>] [-csv <import.zip>] [-unicode] Can be launch by: mvn generate-resources 
			-Pgeneratebase-2-MSSQL Parameter can be overrided by: -Ddb=MSSQL -Ddate="yyyyMMdd 
			HH:mm:ss:SSS" in maven command line -->
		<profile>
			<id>generatebase-2-MSSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>MSSQL</db>
				<num>0</num>
				<date>"yyyyMMdd HH:mm:ss:SSS"</date>
				<profile>${basedir}/deploy/SQLServer/profile.xml</profile>
				<database.url>jdbc:jtds:sqlserver://dbserver:1433/dbname</database.url>
				<user>user</user>
				<password>password</password>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
				<dependency>
					<groupId>net.sourceforge.jtds</groupId>
					<artifactId>${sqlserver.provider.artifactId}</artifactId>
					<version>${sqlserver.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>1.7</version>
						<executions>
							<execution>
								<id>ant-profile-generation</id>
								<phase>process-sources</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<target>
										<echo>Replace profile file parameter for MSSQL environment and copy to ${basedir}/target/profile-sqlserver.xml</echo>
										<copy file="${profile}" tofile="${basedir}\target\profile-sqlserver.xml" overwrite="true">
											<filterset>
												<filter token="URL" value="${database.url}" />
												<filter token="USER" value="${user}" />
												<filter token="PASSWORD" value="${password}" />
											</filterset>
										</copy>
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.GenerateBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-num</argument>
								<argument>${num}</argument>
								<argument>-date</argument>
								<argument>${date}</argument>
								<argument>-profile</argument>
								<argument>${basedir}/target/profile-sqlserver.xml</argument>
								<argument>-index_all</argument>
								<argument>-unicode</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Generate Base 2 profile java com.edeal.frontline.util.GenerateBase 
			<in.xml> -num <n° de base> [-db <type de SGBD>] [-date <format>] [-sql] [-profile 
			<profile.xml>] [-csv <import.zip>] [-unicode] Can be launch by: mvn generate-resources 
			-Pgeneratebase-2-Oracle Parameter can be overrided by: -Ddb=Oracle -Ddate="yyyyMMdd 
			HH:mm:ss:SSS" in maven command line -->
		<profile>
			<id>generatebase-2-Oracle</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>Oracle</db>
				<num>0</num>
				<date>"yyyyMMdd HH:mm:ss:SSS"</date>
				<profile>${basedir}/deploy/Oracle/profile.xml</profile>
				<database.url>jdbc:oracle:thin:@dbserver:1521:dbname</database.url>
				<user>user</user>
				<password>password</password>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
				<dependency>
					<groupId>com.oracle</groupId>
					<artifactId>${oracle.provider.artifactId}</artifactId>
					<version>${oracle.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>1.7</version>
						<executions>
							<execution>
								<id>ant-profile-generation</id>
								<phase>process-sources</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<target>
										<echo>Replace profile file parameter for Oracle environment and copy to ${basedir}/target/profile-oracle.xml</echo>
										<copy file="${profile}" tofile="${basedir}\target\profile-oracle.xml" overwrite="true">
											<filterset>
												<filter token="URL" value="${database.url}" />
												<filter token="USER" value="${user}" />
												<filter token="PASSWORD" value="${password}" />
											</filterset>
										</copy>
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.GenerateBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-num</argument>
								<argument>${num}</argument>
								<argument>-date</argument>
								<argument>${date}</argument>
								<argument>-profile</argument>
								<argument>${basedir}/target/profile-oracle.xml</argument>
								<argument>-index_all</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Generate Base 2 profile java com.edeal.frontline.util.GenerateBase 
			<in.xml> -num <n° de base> [-db <type de SGBD>] [-date <format>] [-sql] [-profile 
			<profile.xml>] [-csv <import.zip>] [-unicode] Can be launch by: mvn generate-resources 
			-Pgeneratebase-2-PostgreSQL Parameter can be overrided by: -Ddb=PostgreSQL 
			-Ddate="yyyy-MM-dd HH:mm:ss" in maven command line 
			
			mvn generate-resources -Pgeneratebase-2-Oracle -Ddatabase.url=jdbc:oracle:thin:@rd4vm-oracle:1521:Head500New -Duser=edeal -Dpassword=edeal
			mvn generate-resources -Pgeneratebase-2-PostgreSQL -Ddatabase.url=jdbc:postgresql://rd4vm-postgres:5432:Head500New -Duser=postgres -Dpassword=postgres
			-->
		<profile>
			<id>generatebase-2-PostgreSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>PostgreSQL</db>
				<num>0</num>
				<date>"yyyy-MM-dd HH:mm:ss"</date>
				<profile>${basedir}/deploy/PostGreSQL/profile.xml</profile>
				<database.url>jdbc:postgresql://dbserver:5432/dbname</database.url>
				<user>user</user>
				<password>password</password>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
				<dependency>
					<groupId>postgresql</groupId>
					<artifactId>${postgresql.provider.artifactId}</artifactId>
					<version>${postgresql.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>1.7</version>
						<executions>
							<execution>
								<id>ant-profile-generation</id>
								<phase>process-sources</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<target>
										<echo>Replace profile file parameter for PostgreSQL environment and copy to ${basedir}/target/profile-postgresql.xml</echo>
										<copy file="${profile}" tofile="${basedir}\target\profile-postgresql.xml" overwrite="true">
											<filterset>
												<filter token="URL" value="${database.url}" />
												<filter token="USER" value="${user}" />
												<filter token="PASSWORD" value="${password}" />
											</filterset>
										</copy>
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.GenerateBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-num</argument>
								<argument>${num}</argument>
								<argument>-date</argument>
								<argument>${date}</argument>
								<argument>-profile</argument>
								<argument>${basedir}/target/profile-postgresql.xml</argument>
								<argument>-index_all</argument>
								<argument>-unicode</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Upgrade Base profile java com.edeal.frontline.util.UpgradeBase <in.xml> 
			Name of the XML file containing the description of the new version of the 
			database. -db Indicates the type of the target base. -profile Corresponds 
			to the connection parameters to the target base. -log Indicates the file 
			name that will contain the report of the migration. -pwd Indicates to the 
			migration tool to encrypt user password. It is used only if the initial version 
			of the application is older than the version 4. -unicode Indicates that the 
			database must consider unicode character set. Can be launch by: mvn generate-resources 
			-Pupgradebase-Oracle Parameter can be overrided by: -Ddb=Oracle -Dprofile=C:\Java\Workspaces\profile.xml 
			in maven command line -->
		<profile>
			<id>upgradebase-Oracle</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>Oracle</db>
				<log>upgradeBaseLogs.csv</log>
				<profile>${basedir}/res/profile.xml</profile>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.UpgradeBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-log</argument>
								<argument>${log}</argument>
								<argument>-profile</argument>
								<argument>${profile}</argument>
								<argument>-deprecated</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Upgrade Base profile java com.edeal.frontline.util.UpgradeBase <in.xml> 
			Name of the XML file containing the description of the new version of the 
			database. -db Indicates the type of the target base. -profile Corresponds 
			to the connection parameters to the target base. -log Indicates the file 
			name that will contain the report of the migration. -pwd Indicates to the 
			migration tool to encrypt user password. It is used only if the initial version 
			of the application is older than the version 4. -unicode Indicates that the 
			database must consider unicode character set. Can be launch by: mvn generate-resources 
			-Pupgradebase-MSSQL Parameter can be overrided by: -Ddb=MSSQL -Dprofile=C:\Java\Workspaces\profile.xml 
			in maven command line -->
		<profile>
			<id>upgradebase-MSSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>MSSQL</db>
				<log>upgradeBaseLogs.csv</log>
				<profile>${basedir}/res/profile.xml</profile>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.UpgradeBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-log</argument>
								<argument>${log}</argument>
								<argument>-profile</argument>
								<argument>${profile}</argument>
								<argument>-unicode</argument>
								<argument>-deprecated</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Upgrade Base profile java com.edeal.frontline.util.UpgradeBase <in.xml> 
			Name of the XML file containing the description of the new version of the 
			database. -db Indicates the type of the target base. -profile Corresponds 
			to the connection parameters to the target base. -log Indicates the file 
			name that will contain the report of the migration. -pwd Indicates to the 
			migration tool to encrypt user password. It is used only if the initial version 
			of the application is older than the version 4. -unicode Indicates that the 
			database must consider unicode character set. Can be launch by: mvn generate-resources 
			-Pupgradebase-PostgreSQL Parameter can be overrided by: -Ddb=PostgreSQL -Dprofile=C:\Java\Workspaces\profile.xml 
			in maven command line -->
		<profile>
			<id>upgradebase-PostgreSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/edealCRM.xml</in>
				<db>PostgreSQL</db>
				<log>upgradeBaseLogs.csv</log>
				<profile>${basedir}/res/profile.xml</profile>
			</properties>
			<dependencies>
				<dependency>
					<groupId>javax.servlet</groupId>
					<artifactId>servlet-api</artifactId>
					<version>2.5</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.UpgradeBase</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>-db</argument>
								<argument>${db}</argument>
								<argument>-log</argument>
								<argument>${log}</argument>
								<argument>-profile</argument>
								<argument>${profile}</argument>
								<argument>-unicode</argument>
								<argument>-deprecated</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Provide SQLExecutor util in order to execute sql script file directly 
			in specified database (like execute sequentially fkdrop.sql, drop.sql, create.sql, 
			fk.sql, index.sql script files, in order to restart from scratch on specified 
			database) Arguments must be [sql script file path] [datavendor] like Oracle, 
			MSSQL, PostgresSQL [url] [user] [password] C:\Users\a.ruffie\Desktop\Oracle-Head500New\create.sql 
			Oracle jdbc:oracle:thin:@rd4vm-oracle:1521:Head500New edeal edeal Can be 
			launch by: mvn generate-resources -Pexecute-script-Oracle -Din=C:\Users\a.ruffie\Desktop\Oracle-Head500New\index.sql 
			-Ddb=Oracle -Durl=jdbc:oracle:thin:@rd4vm-oracle:1521:Head500New -Duser=edeal 
			-Dpassword=edeal -Ddelimiter=GO -->
		<profile>
			<id>execute-script-Oracle</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/create.xml</in>
				<db>Oracle</db>
				<database.url>jdbc:oracle:thin:@dbserver:1521:dbname</database.url>
				<user>user</user>
				<password>password</password>
				<delimiter>;</delimiter>
			</properties>
			<dependencies>
				<dependency>
					<groupId>com.oracle</groupId>
					<artifactId>${oracle.provider.artifactId}</artifactId>
					<version>${oracle.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.SQLExecutor</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>${db}</argument>
								<argument>${database.url}</argument>
								<argument>${user}</argument>
								<argument>${password}</argument>
								<argument>${delimiter}</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Provide SQLExecutor util in order to execute sql script file directly 
			in specified database (like execute sequentially fkdrop.sql, drop.sql, create.sql, 
			fk.sql, index.sql script files, in order to restart from scratch on specified 
			database) Arguments must be [sql script file path] [datavendor] like Oracle, 
			MSSQL, PostgresSQL [url] [user] [password] C:\Users\a.ruffie\Desktop\Oracle-Head500New\create.sql 
			Oracle jdbc:oracle:thin:@rd4vm-oracle:1521:Head500New edeal edeal Can be 
			launch by: mvn generate-resources -Pexecute-script-Oracle -Din=C:\Users\a.ruffie\Desktop\Oracle-Head500New\index.sql 
			-Ddb=Oracle -Ddatabase.url=jdbc:oracle:thin:@rd4vm-oracle:1521:Head500New -Duser=edeal 
			-Dpassword=edeal -Ddelimiter=GO -->
		<profile>
			<id>execute-script-PostgreSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/create.xml</in>
				<db>PostgreSQL</db>
				<database.url>jdbc:postgresql://dbserver:5432/dbname</database.url>
				<user>user</user>
				<password>password</password>
				<delimiter>;</delimiter>
			</properties>
			<dependencies>
				<dependency>
					<groupId>postgresql</groupId>
					<artifactId>${postgresql.provider.artifactId}</artifactId>
					<version>${postgresql.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.SQLExecutor</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>${db}</argument>
								<argument>${database.url}</argument>
								<argument>${user}</argument>
								<argument>${password}</argument>
								<argument>${delimiter}</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Provide SQLExecutor util in order to execute sql script file directly 
			in specified database (like execute sequentially fkdrop.sql, drop.sql, create.sql, 
			fk.sql, index.sql script files, in order to restart from scratch on specified 
			database) Arguments must be [sql script file path] [datavendor] like Oracle, 
			MSSQL, PostgresSQL [url] [user] [password] C:\Users\a.ruffie\Desktop\Oracle-Head500New\create.sql 
			Oracle jdbc:oracle:thin:@rd4vm-oracle:1521:Head500New edeal edeal Can be 
			launch by: mvn generate-resources -Pexecute-script-Oracle -Din=C:\Users\a.ruffie\Desktop\Oracle-Head500New\index.sql 
			-Ddb=Oracle -Ddatabase.url=jdbc:oracle:thin:@rd4vm-oracle:1521:Head500New -Duser=edeal 
			-Dpassword=edeal -Ddelimiter=GO -->
		<profile>
			<id>execute-script-MSSQL</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<in>${basedir}/res/create.xml</in>
				<db>MSSQL</db>
				<database.url>jdbc:jtds:dbserver://dbserver:1433/dbname</database.url>
				<user>user</user>
				<password>password</password>
				<delimiter>GO</delimiter>
			</properties>
			<dependencies>
				<dependency>
					<groupId>net.sourceforge.jtds</groupId>
					<artifactId>${sqlserver.provider.artifactId}</artifactId>
					<version>${sqlserver.provider.version}</version>
					<scope>runtime</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.SQLExecutor</mainClass>
							<arguments>
								<argument>${in}</argument>
								<argument>${db}</argument>
								<argument>${database.url}</argument>
								<argument>${user}</argument>
								<argument>${password}</argument>
								<argument>${delimiter}</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- The parameter <path> corresponds to the path of the directory in which 
			will be stored different generated files. The parameter <object> corresponds 
			to the object name for which the sources will be generated. It is possible 
			to specify multiple objects. If no object is specified, the utility will 
			generate sources for all objects of custom type. Other parameters are: Parameter 
			Description -ctx Contains among others all the necessary informations to 
			connect to the data base. It?s decribed in the file frontline.xml present 
			in the CLASSPATH. -all If no object is specified, indicates to generate beans 
			sources for all standard objects other than custom objects. Can be launch 
			by: mvn generate-resources -Pbeanmaker -Dclasses="Person, Enterprise, ..." 
			Parameter can be overrided by: -DoutDir="./target" -Dclasses="..." in maven 
			command if outDir isn't provided it containt by default "." and classes "-all" 
			line -->
		<profile>
			<id>beanmaker</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<outDir>.</outDir>
				<classes>-all</classes>
			</properties>

			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>generate-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<mainClass>com.edeal.frontline.util.BeanMaker</mainClass>
							<arguments>
								<argument>${outDir}</argument>
								<argument>-ctx</argument>
								<argument>${webapp.context}</argument>
								<argument>${classes}</argument>
							</arguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- The following profile will be used to run amabis web service stub 
			generation. if new old stub (current amabis stub) must be generated (With 
			Axis1 + Java 6) Can be launched by: mvn clean process-resources -Pgenerate-amabis3-java6 
			Sources will be generate to src/main/java/com/amabis Warning don't add whitespace 
			between -o option and src/main/java because Axis generate a new src folder 
			with name " src" it interprets the whitespace as a the first char folder 
			output name ... -->
		<profile>
			<id>generate-amabis3-java6</id>
			<!-- Default properties for edeal util command lines -->
			<properties>
				<wsdl>http://sw1.amabis.com/?wsdl</wsdl>
				<output>src/main/java</output>
			</properties>
			<dependencies>
				<dependency>
					<groupId>commons-discovery</groupId>
					<artifactId>commons-discovery</artifactId>
					<version>0.2</version>
					<scope>compile</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>process-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<compilerVersion>${java.version}</compilerVersion>
							<source>${java.version}</source>
							<target>${java.version}</target>
							<mainClass>org.apache.axis.wsdl.WSDL2Java</mainClass>
							<arguments>
								<argument>${wsdl}</argument>
								<argument>-o${output}</argument>
							</arguments>
							<!--<systemProperties> <systemProperty> <key>myproperty</key> <value>myvalue</value> 
								</systemProperty> </systemProperties> -->
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- The following profile will be used to run amabis web service stub 
			generation. if new old stub (current amabis stub) must be generated (With 
			Axis1 + Java 5) Can be launched by: mvn clean process-resources -Pgenerate-amabis3-java5 
			Sources will be generate to src/main/java/com/amabis Warning don't add whitespace 
			between -o option and src/main/java because Axis generate a new src folder 
			with name " src" it interprets the whitespace as a the first char folder 
			output name ... -->
		<profile>
			<id>generate-amabis3-java5</id>
			<properties>
				<wsdl>http://sw1.amabis.com/?wsdl</wsdl>
				<output>src/main/java</output>
			</properties>
			<dependencies>
				<dependency>
					<groupId>commons-discovery</groupId>
					<artifactId>commons-discovery</artifactId>
					<version>0.2</version>
					<scope>compile</scope>
				</dependency>
			</dependencies>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.2.1</version>
						<executions>
							<execution>
								<phase>process-resources</phase>
								<goals>
									<goal>java</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<compilerVersion>1.5</compilerVersion>
							<source>1.5</source>
							<target>1.5</target>
							<mainClass>org.apache.axis.wsdl.WSDL2Java</mainClass>
							<arguments>
								<argument>${wsdl}</argument>
								<argument>-o${output}</argument>
							</arguments>
							<!-- <arguments> -->
							<!-- <argument>${basedir}/src/main/resources/swtest.amabis.com.wsdl</argument> -->
							<!-- <argument>-osrc/main/java</argument> -->
							<!-- </arguments> -->
							<!--<systemProperties> <systemProperty> <key>myproperty</key> <value>myvalue</value> 
								</systemProperty> </systemProperties> -->
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- The following profile will be used to package all edeal jar see on 
			top of this pom the several distribution properties. Can be launched by: 
			mvn clean prepare-package -Pgenerate-edeal-jars -->
		<profile>
			<id>generate-edeal-jars</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-jar-plugin</artifactId>
						<version>2.4</version>
						<configuration>
							<outputDirectory>${basedir}/${packaging.directory}</outputDirectory>
							<archive>
								<manifest>
									<addClasspath>true</addClasspath>
								</manifest>
								<manifestEntries>
									<url>${project.url}</url>
									<Implementation-Title>${project.name}</Implementation-Title>
									<Implementation-Vendor>E-DEAL</Implementation-Vendor>
									<Implementation-Version>${project.version}</Implementation-Version>
									<Build-Number>${timestamp}</Build-Number>
									<Build-Date>${buildDate}</Build-Date>
									<Built-OS>${os.name}</Built-OS>
								</manifestEntries>
							</archive>
						</configuration>
						<executions>
							<execution>
								<id>build-edeal-base-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/*.class</include>
										<include>com/edeal/frontline/automation/*.class</include>
										<include>com/edeal/frontline/grid/**</include>
										<include>com/edeal/frontline/display/**</include>
										<include>com/edeal/frontline/helper/**</include>
										<include>com/edeal/frontline/navigation/**</include>
									</includes>
									<finalName>${distribution.prefix}-base</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-controller-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/controller/**</include>
										<include>com/edeal/frontline/initializers/**</include>
										<include>com/edeal/frontline/grid/**</include>
										<include>com/edeal/frontline/display/**</include>
										<include>com/edeal/frontline/helper/**</include>
										<include>com/edeal/frontline/navigation/**</include>
									</includes>
									<excludes>
										<exclude>com/edeal/frontline/controller/actions/custom/notused/**</exclude>
									</excludes>
									<finalName>${distribution.prefix}-controller</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-custom-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/custom/*.class</include>
									</includes>
									<finalName>${distribution.prefix}-custom</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-dashboard-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/dashboard/*.class</include>
									</includes>
									<finalName>${distribution.prefix}-dashboard</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-transfer-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/transfer/**</include>
									</includes>
									<finalName>${distribution.prefix}-transfer</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-fulltextsearch-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/fulltextsearch/**</include>
									</includes>
									<finalName>${distribution.prefix}-fulltextsearch</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-fusion-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/fusion/**</include>
									</includes>
									<finalName>${distribution.prefix}-fusion</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-infobar-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/infobar/**</include>
									</includes>
									<finalName>${distribution.prefix}-infobar</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-netbusiness-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/netbusiness/**</include>
										<include>com/edeal/frontline/publication/**</include>
									</includes>
									<finalName>${distribution.prefix}-netbusiness</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-ofcgraphs-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/ofcgraphs/**</include>
									</includes>
									<finalName>${distribution.prefix}-ofcgraphs</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-tasks-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/tasks/**</include>
									</includes>
									<finalName>${distribution.prefix}-tasks</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-merger-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/merger/**</include>
									</includes>
									<finalName>${distribution.prefix}-merger</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-services-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/services/**</include>
										<include>com/edeal/frontline/ws/**</include>
									</includes>
									<finalName>${distribution.prefix}-services</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-sla-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/sla/**</include>
									</includes>
									<finalName>${distribution.prefix}-sla</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-synchro-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/synchro/**</include>
									</includes>
									<finalName>${distribution.prefix}-synchro</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-utils-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/dataimport/*.class</include>
										<include>com/edeal/frontline/util/*.class</include>
									</includes>
									<finalName>${distribution.prefix}-utils</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-workflow-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/workflow/**</include>
									</includes>
									<finalName>${distribution.prefix}-workflow</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-kpi-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/kpi/**</include>
									</includes>
									<finalName>${distribution.prefix}-kpi</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-map-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/map/**</include>
									</includes>
									<finalName>${distribution.prefix}-map</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-jaxb-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/xml/**</include>
									</includes>
									<finalName>${distribution.prefix}-jaxb</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-wall-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/wall/**</include>
									</includes>
									<finalName>${distribution.prefix}-wall</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-msging-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/messaging/**</include>
									</includes>
									<finalName>${distribution.prefix}-msging</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-di-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/guice/**</include>
									</includes>
									<finalName>${distribution.prefix}-di</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-checker-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/checker/**</include>
									</includes>
									<finalName>${distribution.prefix}-checker</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-dao-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/dao/**</include>
									</includes>
									<finalName>${distribution.prefix}-dao</finalName>
								</configuration>
							</execution>
							<execution>
								<id>build-edeal-configwizard-jar</id>
								<phase>prepare-package</phase>
								<goals>
									<goal>jar</goal>
								</goals>
								<configuration>
									<includes>
										<include>com/edeal/frontline/wizard/**</include>
									</includes>
									<finalName>${distribution.prefix}-wizardconfig</finalName>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

		<!-- Jenkins Profiles -->
		<!-- Launch by : mvn pre-integration-test -Pjenkins-packaging -->
		<profile>
			<dependencies>
					<dependency>
						<groupId>net.sourceforge.jtds</groupId>
						<artifactId>${sqlserver.provider.artifactId}</artifactId>
						<version>${sqlserver.provider.version}</version>
						<scope>runtime</scope>
					</dependency>

					<!-- PostGreSQL Drivers -->
					<dependency>
						<groupId>postgresql</groupId>
						<artifactId>${postgresql.provider.artifactId}</artifactId>
						<version>${postgresql.provider.version}</version>
						<scope>runtime</scope>
					</dependency>

					<!-- Oracle Drivers -->
					<dependency>
						<groupId>com.oracle</groupId>
						<artifactId>${oracle.provider.artifactId}</artifactId>
						<version>${oracle.provider.version}</version>
						<scope>runtime</scope>
					</dependency>
			</dependencies>
			<id>jenkins-packaging</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<properties>
				<maven.resources.overwrite>true</maven.resources.overwrite>
				<database.name>masterdev</database.name>
			</properties>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>buildnumber-maven-plugin</artifactId>
						<version>1.1</version>
						<!-- <configuration> -->
						<!-- <format> -->
						<!-- Vendor: {0} -->
						<!-- Version: {1} -->
						<!-- Built-By: {2} -->
						<!-- Built-On: {3} -->
						<!-- Build-Date: {4} -->
						<!-- Url: {5} -->
						<!-- SCM: {6} -->
						<!-- </format> -->
						<!-- <items> -->
						<!-- <item>${project.name}</item> -->
						<!-- <item>${project.version}</item> -->
						<!-- <item>${user.name}</item> -->
						<!-- <item>${os.name}</item> -->
						<!-- <item>${buildDateToWar}</item> -->
						<!-- <item>${project.url}</item> -->
						<!-- <item>b0c1c69be579175e63eeb1c056d607f01ab61e96</item> -->
						<!-- </items> -->
						<!-- <doCheck>false</doCheck> -->
						<!-- <doUpdate>true</doUpdate> -->
						<!-- </configuration> -->
						<executions>
							<!-- <execution> -->
							<!-- <id>generate-buildnumber</id> -->
							<!-- <phase>validate</phase> -->
							<!-- <goals> -->
							<!-- <goal>create</goal> -->
							<!-- </goals> -->
							<!-- <configuration> -->
							<!-- <format>{0,date,yyyy-MM-dd}</format> -->
							<!-- <items> -->
							<!-- <item>timestamp</item> -->
							<!-- </items> -->
							<!-- <buildNumberPropertyName>buildDateToDirectory</buildNumberPropertyName> -->
							<!-- </configuration> -->
							<!-- </execution> -->
							<execution>
								<id>generate-build-date</id>
								<phase>validate</phase>
								<goals>
									<goal>create</goal>
								</goals>
								<configuration>
									<doCheck>false</doCheck>
									<doUpdate>true</doUpdate>
									<format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
									<items>
										<item>timestamp</item>
									</items>
									<buildNumberPropertyName>buildDate</buildNumberPropertyName>
								</configuration>
							</execution>
							<execution>
								<id>generate-timestamp</id>
								<phase>validate</phase>
								<goals>
									<goal>create</goal>
								</goals>
								<configuration>
									<doCheck>false</doCheck>
									<doUpdate>true</doUpdate>
									<format>{0}</format>
									<items>
										<item>timestamp</item>
									</items>
								</configuration>
							</execution>
							<execution>
								<phase>validate</phase>
								<goals>
									<goal>create</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-war-plugin</artifactId>
						<version>2.3</version>
						<configuration>
							<webXml>${basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
							<warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
							<archiveClasses>true</archiveClasses>
							<archive>
								<manifest>
									<addClasspath>true</addClasspath>
								</manifest>
								<manifestEntries>
									<url>${project.url}</url>
									<Implementation-Title>${project.name}</Implementation-Title>
									<Implementation-Vendor>E-DEAL</Implementation-Vendor>
									<Implementation-Version>${project.version}</Implementation-Version>
									<Build-Number>${timestamp}</Build-Number>
									<Build-Date>${buildDate}</Build-Date>
									<Built-OS>${os.name}</Built-OS>
								</manifestEntries>
							</archive>
						</configuration>
					</plugin>
					<!-- <webResources> -->
					<!-- <resource> -->
					<!-- <directory>deploy\Oracle</directory> -->
					<!-- <targetPath>WEB-INF\classes\META-INF</targetPath> -->
					<!-- <filtering>true</filtering> -->
					<!-- </resource> -->
					<!-- </webResources> -->
					<plugin>
						<artifactId>maven-antrun-plugin</artifactId>
						<version>1.7</version>
						<executions>
							<execution>
								<id>ant-war-generation</id>
								<phase>pre-integration-test</phase>
								<goals>
									<goal>run</goal>
								</goals>
								<configuration>
									<target>
										<echo>Delete default generated war: target/${project.artifactId}.war</echo>
										<delete file="target/${project.artifactId}.war" />
										<echo>Delete default configuration file: frontline.xml and {webapp.context}.lic</echo>
										<delete file="target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/frontline.xml" />
										<delete file="target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF${webapp.context}.lic" />
										<delete file="target/${project.artifactId}-${project.version}/WEB-INF/classes/log4j.properties" />

										<!-- Oracle war generation -->
										<echo>Begin Oracle generation War for Tomcat6</echo>
										<echo>Copy others configuration files for integration test environment</echo>
										<echo>Copy web.xml under WEB-INF and replace @CONTEXTNAME@ variable by ${webapp.context}-Oracle</echo>
										<copy file="${basedir}\deploy\Others\web.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-Oracle" />
											</filterset>
										</copy>
										<echo>Copy hornetq-configuration.xml under WEB-INF\classes\META-INF\ and replace @CONTEXTNAME@ variable by ${webapp.context}-Oracle</echo>
										<copy file="${basedir}\deploy\Others\hornetq-configuration.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-Oracle" />
											</filterset>
										</copy>
										<echo>Copy edealws.properties under WEB-INF\classes\META-INF\ and replace @CONTEXTNAME@ variable by ${webapp.context}-Oracle</echo>
										<copy file="${basedir}\deploy\Others\edealws.properties" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-Oracle" />
											</filterset>
										</copy>
										<echo>Copy log4j.properties under WEB-INF\classes\ and replace @CONTEXTNAME@ variable by ${webapp.context}-Oracle and @LOGDIR@ by /var/log/tomcat6</echo>
										<copy file="${basedir}\deploy\Others\log4j.properties" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-Oracle" />
												<filter token="LOGDIR" value="/var/log/tomcat6" />
											</filterset>
										</copy>
										<echo>Copy Oracle configuration files: frontline.xml, ${webapp.context-Oracle.lic} into exploded war and replace @CONTEXTNAME@ variable by ${webapp.context}-Oracle and @DATABASENAME@ by ${database.name}</echo>
										<copy file="${basedir}\deploy\Oracle\frontline.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-Oracle" />
												<filter token="DATABASENAME" value="${database.name}" />
											</filterset>
										</copy>
										<copy file="${basedir}\deploy\Oracle${webapp.context}.lic" tofile="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF${webapp.context}-Oracle.lic" overwrite="true" />
										<echo>Generate Oracle war</echo>
										<war destfile="target/${project.artifactId}-Oracle.war" webxml="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/web.xml">
											<fileset dir="target/${project.artifactId}-${project.version}/">
												<exclude name="WEB-INF/lib/${postgresql.provider.artifactId}-${postgresql.provider.version}.jar" />
												<exclude name="WEB-INF/lib/${sqlserver.provider.artifactId}-${sqlserver.provider.version}.jar" />
											</fileset>
										</war>
										<!-- Delete specific oracle generated files -->
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/frontline.xml" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF${webapp.context}-Oracle.lic" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/hornetq-configuration.xml" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/edealws.properties" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/log4j.properties" />




										<!-- SQLServer war generation -->
										<echo>Begin SQLServer generation War for Tomcat6</echo>
										<echo>Copy others configuration files for integration test environment</echo>
										<echo>Copy web.xml under WEB-INF and replace @CONTEXTNAME@ variable by ${webapp.context}-SQLServer</echo>
										<copy file="${basedir}\deploy\Others\web.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-SQLServer" />
											</filterset>
										</copy>
										<echo>Copy hornetq-configuration.xml under WEB-INF\classes\META-INF\ and replace @CONTEXTNAME@ variable by ${webapp.context}-SQLServer</echo>
										<copy file="${basedir}\deploy\Others\hornetq-configuration.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-SQLServer" />
											</filterset>
										</copy>
										<echo>Copy edealws.properties under WEB-INF\classes\META-INF\ and replace @CONTEXTNAME@ variable by ${webapp.context}-SQLServer</echo>
										<copy file="${basedir}\deploy\Others\edealws.properties" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-SQLServer" />
											</filterset>
										</copy>
										<echo>Copy log4j.properties under WEB-INF\classes\ and replace @CONTEXTNAME@ variable by ${webapp.context}-SQLServer and @LOGDIR@ by /var/log/tomcat6</echo>
										<copy file="${basedir}\deploy\Others\log4j.properties" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-SQLServer" />
												<filter token="LOGDIR" value="/var/log/tomcat6" />
											</filterset>
										</copy>
										<echo>Copy SQLServer configuration files: frontline.xml, ${webapp.context-SQLServer.lic} into exploded war and replace @CONTEXTNAME@ variable by ${webapp.context}-SQLServer and @DATABASENAME@ by ${database.name}</echo>
										<copy file="${basedir}\deploy\SQLServer\frontline.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-SQLServer" />
												<filter token="DATABASENAME" value="${database.name}" />
											</filterset>
										</copy>
										<copy file="${basedir}\deploy\SQLServer${webapp.context}.lic" tofile="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF${webapp.context}-SQLServer.lic" overwrite="true" />
										<echo>Generate SQLServer war</echo>
										<war destfile="target/${project.artifactId}-SQLServer.war" webxml="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/web.xml">
											<fileset dir="target/${project.artifactId}-${project.version}/">
												<exclude name="WEB-INF/lib/${oracle.provider.artifactId}-${oracle.provider.version}.jar" />
												<exclude name="WEB-INF/lib/${postgresql.provider.artifactId}-${postgresql.provider.version}.jar" />
											</fileset>
										</war>
										<!-- Delete specific oracle generated files -->
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/frontline.xml" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF${webapp.context}-SQLServer.lic" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/hornetq-configuration.xml" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/edealws.properties" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/log4j.properties" />





										<!-- PostGreSQL war generation -->
										<echo>Begin PostGreSQL generation War for Tomcat6</echo>
										<echo>Copy others configuration files for integration test environment</echo>
										<echo>Copy web.xml under WEB-INF and replace @CONTEXTNAME@ variable by ${webapp.context}-PostGreSQL</echo>
										<copy file="${basedir}\deploy\Others\web.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-PostGreSQL" />
											</filterset>
										</copy>
										<echo>Copy hornetq-configuration.xml under WEB-INF\classes\META-INF\ and replace @CONTEXTNAME@ variable by ${webapp.context}-PostGreSQL</echo>
										<copy file="${basedir}\deploy\Others\hornetq-configuration.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-PostGreSQL" />
											</filterset>
										</copy>
										<echo>Copy edealws.properties under WEB-INF\classes\META-INF\ and replace @CONTEXTNAME@ variable by ${webapp.context}-PostGreSQL</echo>
										<copy file="${basedir}\deploy\Others\edealws.properties" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-PostGreSQL" />
											</filterset>
										</copy>
										<echo>Copy log4j.properties under WEB-INF\classes\ and replace @CONTEXTNAME@ variable by ${webapp.context}-PostGreSQL and @LOGDIR@ by /var/log/tomcat6</echo>
										<copy file="${basedir}\deploy\Others\log4j.properties" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-PostGreSQL" />
												<filter token="LOGDIR" value="/var/log/tomcat6" />
											</filterset>
										</copy>
										<echo>Copy PostGreSQL configuration files: frontline.xml, ${webapp.context-PostGreSQL.lic} into exploded war and replace @CONTEXTNAME@ variable by ${webapp.context}-PostGreSQL and @DATABASENAME@ by ${database.name}</echo>
										<copy file="${basedir}\deploy\PostGreSQL\frontline.xml" todir="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF\" overwrite="true">
											<filterset>
												<filter token="CONTEXTNAME" value="${webapp.context}-PostGreSQL" />
												<filter token="DATABASENAME" value="${database.name}" />
											</filterset>
										</copy>
										<copy file="${basedir}\deploy\PostGreSQL${webapp.context}.lic" tofile="${basedir}\target\${project.artifactId}-${project.version}\WEB-INF\classes\META-INF${webapp.context}-PostGreSQL.lic" overwrite="true" />
										<echo>Generate PostGreSQL war</echo>
										<war destfile="target/${project.artifactId}-PostGreSQL.war" webxml="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/web.xml">
											<fileset dir="target/${project.artifactId}-${project.version}/">
												<exclude name="WEB-INF/lib/${oracle.provider.artifactId}-${oracle.provider.version}.jar" />
												<exclude name="WEB-INF/lib/${sqlserver.provider.artifactId}-${sqlserver.provider.version}.jar" />
											</fileset>
										</war>
										<!-- Delete specific oracle generated files -->
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/frontline.xml" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF${webapp.context}-PostGreSQL.lic" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/hornetq-configuration.xml" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/META-INF/edealws.properties" />
										<delete file="${basedir}/target/${project.artifactId}-${project.version}/WEB-INF/classes/log4j.properties" />
										<delete dir="target/antrun" />
										<echo>Finish to generate wars for each database</echo>
									</target>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
	<scm>
		<connection>scm:git:ssh://git@rd1/edealcrm.git</connection>
		<developerConnection>scm:git:ssh://git@rd1/edealcrm.git</developerConnection>
		<url>scm:git:ssh://git@rd1/edealcrm.git</url>
	  <tag>Spring2013/005</tag>
  </scm>
</project>
