maven-antrun-plugin を使用して、jar ファイルをフォルダーに解凍しています。この jar ファイルはすべてのビルドで生成され、バリアント TIMESTAMP を持ちます (次のスニペットを参照)。jar ファイルと同じ名前のフォルダーに jar ファイルを解凍するにはどうすればよいですか? たとえば、フォルダーは /folder ではなく /sample_TIMESTAMP にする必要があります
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>unpack-jar-features</id>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo message="unpack jar file" />
<unzip dest="/folder">
<fileset dir="/folder">
<include name="sample_TIMESTAMP.jar" />
</fileset>
</unzip>
</target>
</configuration>
</execution>
</executions>
</plugin>