diff --git a/jar/plugin.jelly b/jar/plugin.jelly
index 60afe630..841a708c 100644
--- a/jar/plugin.jelly
+++ b/jar/plugin.jelly
@@ -24,8 +24,8 @@
-
-
+
+
-
+
@@ -73,9 +73,9 @@
-
-
-
+
+
+
@@ -123,7 +123,7 @@
artifact="${relativePath}"
type="jars"
assureDirectoryCommand="mkdir -p"
- siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp maven ${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version"
+ siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version"
/>
@@ -152,7 +152,7 @@
artifact="${relativePath}"
type="jars"
assureDirectoryCommand="mkdir -p"
- siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp maven ${maven.jar.to.deploy}"
+ siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy}"
/>
diff --git a/jar/plugin.properties b/jar/plugin.properties
index f8460971..477e9771 100644
--- a/jar/plugin.properties
+++ b/jar/plugin.properties
@@ -1,3 +1,5 @@
# -------------------------------------------------------------------
# P L U G I N P R O P E R T I E S
# -------------------------------------------------------------------
+
+maven.remote.group=maven
\ No newline at end of file
diff --git a/jar/xdocs/properties.xml b/jar/xdocs/properties.xml
index 45f9a35d..8df27972 100644
--- a/jar/xdocs/properties.xml
+++ b/jar/xdocs/properties.xml
@@ -161,7 +161,7 @@
Yes
This property is the list of the
-
@@ -188,7 +188,7 @@
Yes
This is a calculated property based on the value of the
-
@@ -241,7 +241,7 @@
This is the Ant patternset of all the includes and
excludes from the
-
@@ -286,6 +286,13 @@
This is the user name used to log in to the remote repository
+
+
maven.remote.group
+
Yes
+
+ The name of the Unix group that should own deployed artifacts. Default to maven
+