Thread View: gwene.org.apache.planet
1 messages
1 total messages
Started by olamy
Mon, 27 Aug 2012 15:40
Maven Assembly/Dependency plugins useJvmChmod field WTF ?
Author: olamy
Date: Mon, 27 Aug 2012 15:40
Date: Mon, 27 Aug 2012 15:40
27 lines
2788 bytes
2788 bytes
<div xmlns="http://www.w3.org/1999/xhtml">It looks not a lot folks knows a strange named option from the Assembly and Dependency Maven plugins.<br/> The name is useJvmChmod. Sure when reading this name you can say: "WTF ?????".<br/> Both plugins use a component called plexus-archiver (which pack,unpack files and can set files permissions).<br/> By default on unix platform, this component will fork a process to do chmod command line call and for each files (ouch !!!! for large distributions or unpack goal).<br/> So long ago now (yup 2 years is long in our world :-)), I added a configurable mode to use file permission methods from jdk1.6 and not using anymore forked command line call to chmod.<br/> This is why it's called useJvmChmod (sorry I'm sometimes not really good on naming marketing :-)).<br/> By the way, if your build is still 1.5 that will works as it's done trough reflection (see <a href="https://github.com/sonatype/plexus-archiver/commit/aa74285f7a0cc87054e0ce2b0920916bda18299d" target="_blank">initial commit</a> ).<br/> Note this option is available since assembly plugin 2.2 and it's now available in the fresh release of dependency plugin 2.5.1 (thanks to @atlassian folks for the issue report: <a href="https://jira.codehaus.org/browse/MDEP-368" target="_blank">https://jira.codehaus.org/browse/MDEP-368</a>).<br/> So if you assembly plugin or use unpack goal from the dependency don't miss this attribute to true!<br/> <pre/> <plugin><br/> <groupId>org.apache.maven.plugins</groupId><br/> <artifactId>maven-assembly-plugin</artifactId><br/> or<br/> <artifactId>maven-dependency-plugin</artifactId><br/> <configuration><br/> <useJvmChmod>true</useJvmChmod><br/> </configuration><br/> </plugin><br/> <br/> <br/> <br/> <br/> <br/><div class="blogger-post-footer"><img alt="" height="1" src="https://blogger.googleusercontent.com/tracker/2243705636208447360-2209424254808675019?l=olamy.blogspot.com" width="1"/></div> <p><a href="http://feedads.g.doubleclick.net/~a/I_yx1vxfNY5Jhy2LP4Dc9SO8yiw/0/da"><img border="0" ismap="true" src="http://feedads.g.doubleclick.net/~a/I_yx1vxfNY5Jhy2LP4Dc9SO8yiw/0/di"/></a><br/> <a href="http://feedads.g.doubleclick.net/~a/I_yx1vxfNY5Jhy2LP4Dc9SO8yiw/1/da"><img border="0" ismap="true" src="http://feedads.g.doubleclick.net/~a/I_yx1vxfNY5Jhy2LP4Dc9SO8yiw/1/di"/></a></p><img height="1" src="http://feeds.feedburner.com/~r/OlamyAtApacheDotOrg/~4/US48IoV5xNk" width="1"/></div> <p><a href="http://feedproxy.google.com/~r/OlamyAtApacheDotOrg/~3/US48IoV5xNk/maven-assemblydependency-plugins.html">Link</a>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads