私の POM.xml ファイルでは、アセンブリ プラグインを使用しています。名前がパラメーター化されているアセンブリ ファイルに基づいてビルドを組み立てたいと考えています。ビルドは正常に動作します。ただし、jenkins でリリース アクションを実行して m2 リリース プラグインを使用すると、リリース プラグインは $env の値を置き換えて、assembly.xml ファイルを取得できませんでした。次の例外が発生します。
原因: org.apache.maven.plugin.assembly.io.AssemblyReadException: アセンブリ記述子の検索エラー: src/main/assembly/${env}.xml
ログとPOMファイルを添付しました。
POM ファイルのビルド部分:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>jar-with-dependencies</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</execution>
<execution>
<id>dist</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuraenter code heretion>
<descriptors>
<descriptor>src/main/assembly/${env}.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
<plugin>