[
http://jira.codehaus.org/browse/MASSEMBLY-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162923#action_162923
]
Vincent Massol commented on MASSEMBLY-238:
------------------------------------------
This can be tried by building the following module:
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution/jetty/hsqldb/
Note that you'll need to modify the application.xml file here to remove the
"hack":
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution/jetty/hsqldb/src/assemble/application.xml
It should look like:
{noformat}
<!--
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
-->
<assembly>
<formats>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
<dependencySets>
<!-- XWiki webapp. -->
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
plugin where the artifact name will be used instead of / if
outputFileNameMapping is
not specified -->
<outputFileNameMapping></outputFileNameMapping>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>com.xpn.xwiki.products:xwiki-enterprise-web</include>
</includes>
<outputDirectory>webapps/xwiki</outputDirectory>
<unpack>true</unpack>
<unpackOptions>
<excludes>
<exclude>**/hibernate.cfg.xml</exclude>
</excludes>
</unpackOptions>
</dependencySet>
<!-- ROOT webapp, redirecting to /xwiki/ when no application is specified.
-->
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
plugin where the artifact name will be used instead of / if
outputFileNameMapping is
not specified -->
<outputFileNameMapping></outputFileNameMapping>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>com.xpn.xwiki.platform.tools:xwiki-rootwebapp</include>
</includes>
<outputDirectory>webapps/root</outputDirectory>
<unpack>true</unpack>
</dependencySet>
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
plugin where the artifact name will be used instead of / if
outputFileNameMapping is
not specified -->
<outputFileNameMapping></outputFileNameMapping>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>com.xpn.xwiki.platform.tools:xwiki-jetty-resources</include>
</includes>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
</dependencySet>
<dependencySet>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>${xwiki.db.jdbc.groupId}:${xwiki.db.jdbc.artifactId}</include>
</includes>
<outputDirectory>webapps/xwiki/WEB-INF/lib</outputDirectory>
<unpack>false</unpack>
</dependencySet>
<dependencySet>
<!-- This shouldn't be required but there's a bug in version 2.2-beta-1
of the Assembly
plugin where the artifact name will be used instead of / if
outputFileNameMapping is
not specified -->
<outputFileNameMapping></outputFileNameMapping>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>com.xpn.xwiki.products:xwiki-enterprise-database-${xwiki.db}</include>
</includes>
<outputDirectory>/database</outputDirectory>
<unpack>true</unpack>
</dependencySet>
</dependencySets>
<files>
<file>
<source>${basedir}/target/maven-shared-archive-resources/hibernate.cfg.xml</source>
<outputDirectory>webapps/xwiki/WEB-INF</outputDirectory>
</file>
</files>
<fileSets>
<!-- Add License/Notice files -->
<fileSet>
<directory>${basedir}/target/maven-shared-archive-resources/META-INF</directory>
<outputDirectory>META-INF</outputDirectory>
</fileSet>
</fileSets>
</assembly>
{noformat}
> Assembly plugin removes file permissions
> ----------------------------------------
>
> Key: MASSEMBLY-238
> URL: http://jira.codehaus.org/browse/MASSEMBLY-238
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-1
> Reporter: Vincent Massol
> Assignee: John Casey
> Fix For: 2.2-beta-3
>
>
> I have some files with the execute permission set. When they are copied into
> a zip file by the assembly plugin their permissions are removed.
> This forces me to do something ugly (and not efficient) like this:
> {code}
> <!-- Copy sh files so that we can set their permissions. This is required
> since the
> Assembly plugin looses file permissions. -->
> <dependencySet>
> <!-- This shouldn't be required but there's a bug in version 2.2-beta-1
> of the Assembly
> plugin where the artifact name will be used instead of / if
> outputFileNameMapping is
> not specified -->
> <outputFileNameMapping></outputFileNameMapping>
> <includes>
> <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
> </includes>
> <outputDirectory>/</outputDirectory>
> <unpack>true</unpack>
> <unpackOptions>
> <includes>
> <include>**/*.sh</include>
> </includes>
> </unpackOptions>
> <fileMode>755</fileMode>
> </dependencySet>
> <!-- Copy all other files (excluding sh files). See above for details. -->
> <dependencySet>
> <!-- This shouldn't be required but there's a bug in version 2.2-beta-1
> of the Assembly
> plugin where the artifact name will be used instead of / if
> outputFileNameMapping is
> not specified -->
> <outputFileNameMapping></outputFileNameMapping>
> <includes>
> <include>com.xpn.xwiki.platform:xwiki-jetty-resources</include>
> </includes>
> <outputDirectory>/</outputDirectory>
> <unpack>true</unpack>
> <unpackOptions>
> <excludes>
> <exclude>**/*.sh</exclude>
> </excludes>
> </unpackOptions>
> </dependencySet>
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira