tomcat zip 아티팩트를 다운로드하고 tomcat이라는 폴더에 int를 압축하려고합니다. 내가 얻는 것은 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에있는 플러그인 선언의 구성 섹션에서를 추가하십시오. –
BenjaminLinus
전체 pom 플러그인 코드를 게시했습니다. 아직도 나를 위해 일하지 않습니다. 그냥 중첩 된 dir을 만듭니다 – archmisha