I am trying use regular expression in maven-assembly-plugin
which is shown below.
There are files with the names starts with ABC502. I am trying to copy only the rpms with the 3 or 4 in suffix. Below one is not working.
rpm names are given below
ABC5023-buildnumber.rpm
ABC5024-buildnumber.rpm
ABC5025-buildnumber.rpm
ABC5026-buildnumber.rpm
<fileSet>
<directory>${project.build.directory}/tar_content/stackcontents/</directory>
<outputDirectory>scripts/data/rpms/</outputDirectory>
<includes>
<include>%regex[ABC502(3|4)]-*.rpm</include>
</includes>
<fileMode>0755</fileMode>
<directoryMode>0755</directoryMode>
</fileSet>