maven-dependecy-plugins コピー ゴールを使用してパッケージ化する前に、リソースを別のフォルダーにコピーしています。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>copy</id>
<phase>prepare-package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<failBuild>false</failBuild>
<artifactItems>
<artifactItem>
<groupId>my.groupID</groupId>
<artifactId>myArtifact</artifactId>
<version>0.0.1-SNAPSHOT</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>my/custom/path</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
リソースは重要ではなく、アクセスできない可能性があります。そのため、アクセスできない場合でもビルドが失敗しないようにしたいと考えています。すでに failBuild プロパティを false に設定しましたが、効果はありませんでした。これを達成する方法はありますか?