Maven: распаковать артефакт zip в КОНКРЕТНОЕ имя папки

Я пытаюсь загрузить артефакт tomcat zip и распаковать его в папку с именем tomcat. Я получаю tomcat / apache-tomcat-7.0.19 / Как мне избавиться от надоедливого промежуточного каталога?

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
    <execution>
        <id>unpack-tomcat</id>
        <phase>process-sources</phase>
        <goals>
            <goal>unpack</goal>
        </goals>
        <configuration>
            <artifactItems>
                <artifactItem>
                    <groupId>org.apache</groupId>
                    <artifactId>tomcat</artifactId>
                    <version>7.0.19-win64</version>
                    <type>zip</type>
                    <overWrite>false</overWrite>
                    <outputDirectory>tomcat</outputDirectory>
                    <excludes>webapps/**</excludes>
                </artifactItem>
            </artifactItems>                            
        </configuration>
    </execution>
</executions>
</plugin>
10
задан archmisha 19 January 2012 в 17:09
поделиться