aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes maven assembly plugin unix line ending Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven assembly plugin unix line ending" Watch "maven assembly plugin unix line ending" New topic

maven assembly plugin unix line ending

jorge mendez

Joined: Aug 29, 2012
Posts: 1
Hi all,

I have an assembly descriptor that works well for me, except for one issue. I need to use unix line endings on the files of a dependency that is unpacked. Unfortunately I cannot specify both of <unpack/> and <lineEnding/> at the same time.

If I only specify the <unpack/> element set to true, my assembly is created fine, but the files contain windows line endings. Basically I'm unpacking certain directories from a configuration dependency.

If I specify both <unpack/> set to true, and <lineEnding/> set to unix, the included dependency does not get unpacked???

Here is the snippet that is giving me issues:

Any help would be greatly appreciated.
Peter Johnson

Joined: May 14, 2008
Posts: 5772

Use the dependency:unpack-dependencies goal within your pom.xml to unpack the config jar to a temporary directory before running the assembly plugin, and then have the assembly plugin get the unpacked files and apply the <lineEnding> filter.

JBoss In Action
I agree. Here's the link:
subject: maven assembly plugin unix line ending
Similar Threads
How to create Jar file with all the dependencies
Sonar - Native Plugin
maven war package corrupts jar import
How to create solaris package using Maven
maven - resources files