誰かが mvn clean パッケージを使用すると、生成された jar ファイルが現在のディレクトリにコピーされるように、pom.xml を更新したいと考えています。Maven プラグインの copy-resources を見ていますが、現在のディレクトリを指定する方法がわかりません。これを行うオペレーティング システムに依存しない方法はありますか? できればWindowsでも動くようにしてほしい
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<id>copy-resources</id>
<!-- here the phase you need -->
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}</outputDirectory>
<resources>
<resource>
<directory>target/Test-0.0.1-SNAPSHOT.jar</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
ありがとう