maven-deploy-plugin を使用してファイルをデプロイしたいと考えています。現在、私は自分のpomに次のものを持っています:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>deploy-features-xml</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<repositoryId>${project.distributionManagement.snapshotRepository.id}</repositoryId>
<url>${project.distributionManagement.snapshotRepository.url}</url>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<file>features.xml</file>
</configuration>
</execution>
</executions>
</plugin>
バージョンに基づいて、スナップショットとリリース リポジトリを切り替えたい。プロジェクトのバージョンが 1-SNAPSHOT の場合、ファイルはスナップショット リポジトリにデプロイする必要があります。プロジェクトのバージョンが 1.0 の場合、ファイルはリリース リポジトリにデプロイする必要があります。しかし、maven-deploy-plugin はそれをハード コードしますか?