You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by James Kavanagh <Ja...@betfair.com> on 2009/11/09 12:44:18 UTC
Problem with permissions after archive created
Hi there,
Post build, I'm building a zip file using the assembly plugin and for some reason when the archive is unzipped on the target machine all directories have 777 permissions i.e. drwxrwxrwx.
This only happens on our production build server, on our dev CI server the archive is produced correctly i.e. 755 permissions on directories.
For reference the assembly file looks like this:
<assembly>
<id>target-packaged</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<moduleSets>
<moduleSet>
<includes>
<include>*:core-env</include>
</includes>
<binaries>
<attachmentClassifier>env</attachmentClassifier>
<includeDependencies>false</includeDependencies>
<unpack>true</unpack>
</binaries>
</moduleSet>
<moduleSet>
<includes>
<include>*:data-bridge</include>
</includes>
<binaries>
<attachmentClassifier>target</attachmentClassifier>
<includeDependencies>false</includeDependencies>
<unpack>true</unpack>
</binaries>
</moduleSet>
<moduleSet>
<includes>
<include>*:web-ui</include>
</includes>
<binaries>
<attachmentClassifier>web</attachmentClassifier>
<includeDependencies>false</includeDependencies>
<unpack>true</unpack>
</binaries>
</moduleSet>
</moduleSets>
</assembly>
As you can see the assembly unpacks some existing archive dependencies (part of a module set) and re-zips them. After examining those dependent files their directory permissions are correct i.e. 755 as opposed to 777.
Has anyone seen this problem before and if so is there an easy resolution to it?
Java Version : 1.6.0_06
Maven Version: 2.1.0 (r755702; 2009-03-18 19:10:27+0000)
OS: "linux" version: "2.6.9-11.elsmp" arch: "i386" Family: "unix"
Cheers,
James
________________________________________________________________________
In order to protect our email recipients, Betfair Group use SkyScan from
MessageLabs to scan all Incoming and Outgoing mail for viruses.
________________________________________________________________________