############################################
#
#			C R E A T I O N
#
############################################

create gwResourcesDeployer-1.2.0-bin.zip
	open cmd from Windows start and execute in sequence

		cd C:\workspace\gw-resources-deployer

		mvn -U clean package assembly:single
	
	take the file:
		C:\workspace\gw-resources-deployer\target\gwResourcesDeployer-1.2.0-bin.zip
	or (depending on the conf in assembly/dep.xml)
		C:\workspace\gw-resources-deployer\target\gwResourcesDeployer-1.2.0-bin.tar.gz



############################################
#
#			D E P L O Y
#
############################################

To deploy the zip (already created) to the geoweb artifactory repository
	open cmd from Windows start and execute in sequence (choosing gw-release | gw-snapshots)

	example gw-release, file .tar.gz, file .zip
		
		cd C:\workspace\gw-resources-deployer
		mvn deploy:deploy-file -Durl=http://artifactory.geowebframework.com/artifactory/gw-release -DrepositoryId=gw-release -Dfile=target\gwResourcesDeployer-1.2.0-bin.tar.gz -DgroupId=com.geowebframework -DartifactId=gwResourcesDeployer -Dversion=1.2.0
		mvn deploy:deploy-file -Durl=http://artifactory.geowebframework.com/artifactory/gw-release -DrepositoryId=gw-release -Dfile=target\gwResourcesDeployer-1.2.0-bin.zip -DgroupId=com.geowebframework -DartifactId=gwResourcesDeployer -Dversion=1.2.0
		
		
	example gw-snapshots, file .tar.gz, file .zip
	
		cd C:\workspace\gw-resources-deployer
		mvn deploy:deploy-file -Durl=http://artifactory.geowebframework.com/artifactory/gw-snapshots -DrepositoryId=gw-snapshots -Dfile=target\gwResourcesDeployer-1.2.0-bin.tar.gz -DgroupId=com.geowebframework -DartifactId=gwResourcesDeployer -Dversion=1.2.0
		mvn deploy:deploy-file -Durl=http://artifactory.geowebframework.com/artifactory/gw-snapshots -DrepositoryId=gw-snapshots -Dfile=target\gwResourcesDeployer-1.2.0-bin.zip -DgroupId=com.geowebframework -DartifactId=gwResourcesDeployer -Dversion=1.2.0
		
Consider that being the version containing '-SNAPSHOT', the file could to be deployed only under gw-snapshots repository



############################################
#
#			E X E C U T I O N
#
############################################


de-compress gwResourcesDeployer-1.2.0-bin.zip in C:\gwResourcesDeployer-1.2.0-bin

open cmd from Windows start and execute

	cd C:\gwResourcesDeployer-1.2.0-bin

	launch the batch with the 2 parameter: 
		1) path to the gw_package_folder (containing the resources)
		2) the spring active profiles for database. Allowed values ['oracle','postgres','sqlserver']
		   
		Note: if 1) has blank spaces or 2) as a comma ',' use double quotes to enclose all " "

		Example:
		
			gwdeploy C:\path\to\gw_package postgres
			
			
		Example:
		
			gwdeploy "C:\path and spaces\to\gw_package" postgres
			
		
###
Full example:
	
	cd C:\Users\giorgio.scali\Desktop\gwResourcesDeployer-1.2.0-bin
	
	gwdeploy C:\Users\giorgio.scali\Desktop\gw_package postgres


###
Notes:

In all environment where jvm installed is pre Java 9 installed (like jdk1.8.0_261), 
the appropriate batch file had to be used:
	
	gwdeploy_prejava9.bat

	Example:
 
		gwdeploy_prejava9 "C:\path and spaces\to\gw_package" postgres