You may need Maven AntRun Plugin for this.
In general, there are no conditional expressions in POM. The only thing that looks like this: create profiles that can be activated under certain specific conditions, but they probably don't fit into your current case.
, , . , , , Maven. Maven, . , , , , , , Maven.