我的路径 "C:\ptc\Windchill_10.1\Windchill" 中有一个 zip 文件。请谁能告诉我如何使用maven解压这个文件
Maven 有一个与 Ant 一起使用的插件。使用该插件,您可以创建 Ant-Tasks,该任务是一系列 xml 指令,您可以使用它们(实际上)执行您需要的任何操作。
一段可以作为灵感的代码:
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<tasks>
<echo message="unzipping file" />
<unzip src="output/inner.zip" dest="output/" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
source: https://ant.apache.org/manual/Tasks/unzip.html https://ant.apache.org/manual/Tasks/unzip.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)