You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tim Wu T <ti...@ericsson.com> on 2016/02/03 20:13:08 UTC

Avoid change folder permission when using maven site deploy plugin

Hi All,


When we deploy the site to our Linux server, I found maven will execute "chmod -Rf g+w,a+rX
" in the log folder every time, and this will takes very long time (Maybe 5-6 minutes)

Is there any way to avoid this?

Thanks very much.

Br,
Tim


RE: Avoid change folder permission when using maven site deploy plugin

Posted by Tim Wu T <ti...@ericsson.com>.
Hi,

Sure, I use maven 3.0.4, the plugin is very normal, maven site plugin 3.4, the wagon I use is:
		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-ssh-external</artifactId>
				<version>2.6</version>
			</extension>
		</extensions>

Log output:
19:17:48 [INFO] Executing command: /bin/sh -c ssh -i /home/hello/.ssh/id_rsa -o 'BatchMode yes' abc.def.com 'cd "/proj/webdocs/hello /root/my-docs/my-project"; unzip -q -o "wagon9211309153059078952.zip"; rm -f "wagon9211309153059078952.zip"'
19:18:25 [INFO] 
19:18:25 [INFO] 
19:18:25 [INFO] Executing command: chmod -Rf g+w,a+rX /proj/webdocs/hello/root/my-docs/
19:18:25 [INFO] Executing command: /bin/sh -c ssh -i /home/ hello /.ssh/id_rsa -o 'BatchMode yes' abc.def.com 'chmod -Rf g+w,a+rX /proj/webdocs/hello/root/my-docs/'

It takes very very long time to change the permissions as this folder contains lots of site files.

Br,
Tim
-----Original Message-----
From: Karl Heinz Marbaise [mailto:khmarbaise@gmx.de] 
Sent: 2016年2月3日 20:47
To: Maven Users List
Subject: Re: Avoid change folder permission when using maven site deploy plugin

On 2/3/16 8:13 PM, Tim Wu T wrote:
> Hi All,
>
>
> When we deploy the site to our Linux server, I found maven will 
> execute "chmod -Rf g+w,a+rX " in the log folder every time, and this 
> will takes very long time (Maybe 5-6 minutes)

Can show a little bit more of your log output and in particular which Maven version, which plugin do you use? How do you deploy the site ? How is Maven called in this case?

Kind regards
Karl Heinz Marbaise
>
> Is there any way to avoid this?
>
> Thanks very much.
>
> Br,
> Tim
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Avoid change folder permission when using maven site deploy plugin

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
On 2/3/16 8:13 PM, Tim Wu T wrote:
> Hi All,
>
>
> When we deploy the site to our Linux server, I found maven will execute "chmod -Rf g+w,a+rX
> " in the log folder every time, and this will takes very long time (Maybe 5-6 minutes)

Can show a little bit more of your log output and in particular which 
Maven version, which plugin do you use? How do you deploy the site ? How 
is Maven called in this case?

Kind regards
Karl Heinz Marbaise
>
> Is there any way to avoid this?
>
> Thanks very much.
>
> Br,
> Tim
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org