[
https://issues.apache.org/jira/browse/MASSEMBLY-681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738530#comment-14738530
]
Stephan Krull commented on MASSEMBLY-681:
-----------------------------------------
Found a way at least:
see this massive documentation:
http://books.sonatype.com/mvnref-book/reference/assemblies-sect-controlling-contents.html#assemblies-sect-managing-root
So, declaring
{code}
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3
http://maven.apache.org/xsd/assembly-1.1.3.xsd">
...
<includeBaseDirectory>false</includeBaseDirectory>
...
</assembly>
{code}
skips creating a parent folder.
> plugin ignores empty finalName and uses default value
> -----------------------------------------------------
>
> Key: MASSEMBLY-681
> URL: https://issues.apache.org/jira/browse/MASSEMBLY-681
> Project: Maven Assembly Plugin
> Issue Type: Wish
> Affects Versions: 2.4
> Reporter: Paul Millar
> Assignee: Karl Heinz Marbaise
> Priority: Minor
> Fix For: backlog
>
>
> When used in the 'dir' format, I would argue that an empty finalName is
> reasonable.
> For example, I would expect the following configuration, with the 'dir'
> format, to output the assembled files in ${foo.baseDirectory}
> <configuration>
> <descriptors>
> <descriptor>src/main/assembly/foo.xml</descriptor>
> </descriptors>
> <outputDirectory>${foo.baseDirectory}</outputDirectory>
> <finalName/>
> </configuration>
> The actual behaviour is to silently ignore the configured empty finalName and
> use the default finalName value, which is append this to the outputDirectory.
> Arguably there are two bugs here:
> finalName is silently ignored (if this is invalid, it should report an
> error)
> the empty finalName is not honoured.
> Specify '.' as the finalName (<finalName>.</finalName>) seems to work as a
> work-around, at least for unix-like systems.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)