diff --git a/site/plugin.jelly b/site/plugin.jelly index 447fe21c..65d1b6d4 100644 --- a/site/plugin.jelly +++ b/site/plugin.jelly @@ -233,6 +233,7 @@ + source site address: ${siteAddress} @@ -241,6 +242,7 @@ destination site address: ${destSiteAddress} destination site directory: ${destSiteDirectory} destination site username: ${destSiteUsername} + publish clean: ${publishClean} Executing filesystem copy on local server to publish - + Cleaning destination first @@ -264,7 +266,7 @@ Executing filesystem copy on remote server to publish - + Cleaning destination first @@ -277,7 +279,7 @@ Executing rsync on stage server to publish to live server - + Cleaning destination diff --git a/site/plugin.properties b/site/plugin.properties index 6f9e8db3..37cdd894 100644 --- a/site/plugin.properties +++ b/site/plugin.properties @@ -35,3 +35,4 @@ maven.rsync.executable=rsync maven.username=USERNAME_NOT_SET maven.site.deploy.clean=false +maven.site.publish.clean=false diff --git a/site/xdocs/properties.xml b/site/xdocs/properties.xml index f7309481..044d5b1c 100644 --- a/site/xdocs/properties.xml +++ b/site/xdocs/properties.xml @@ -55,10 +55,18 @@ maven.site.deploy.clean Yes - This will ensure the target in either a site:deploy or site:publish goal is + This will ensure the target in a site:deploy goal is clean by either deleting the directory first, or rsync'ing with the --delete option. - This operation is not atomic, so is not recommended for the live site unless you are using the rsync - method. + This operation is not atomic, so is not recommended for the live site unless you are using the rsync method. + + + + maven.site.publish.clean + Yes + + This will ensure the target in a site:publish goal is + clean by either deleting the directory first, or rsync'ing with the --delete option. + This operation is not atomic, so is not recommended for the live site unless you are using the rsync method.