tomcat zip artifactをダウンロードしてtomcatという名前のフォルダに展開しようとしています。 私が得るものは、tomcat/apache-tomcat-7.0.19/ です。どのようにして迷惑な中間ディレクトリを取り除くことができますか?Maven:ZIPアーティファクトを特定のフォルダ名に展開します
<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>
私はそれを動作させないでください。今は、私が持っているすべての依存関係を私にもたらします。 – archmisha
pomのプラグイン宣言の設定セクションの下に tomcat –
BenjaminLinus
を追加しました.pomプラグインコード全体を投稿しました。それはまだ私のために働かない。ネストされたディレクトリを作成する – archmisha