Maven deploy プラグインを使用してアーティファクトをリポジトリにデプロイしています。
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>none</phase>
</execution>
<execution>
<id>aqua-deploy</id>
<phase>package</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<file>./deploy/sample.zip</file>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
<artifactId>standalonehostrelease</artifactId>
<generatePom>false</generatePom>
<packaging>zip</packaging>
<repositoryId>${project.distributionManagement.snapshotRepository.id}</repositoryId>
<url>${project.distributionManagement.snapshotRepository.url}</url>
</configuration>
</execution>
</executions>
</plugin>
現在、pom.xml で distributionManagement を定義して、repositoryId と URL を取得しています。
<distributionManagement>
<snapshotRepository>
<id>snapshots</id>
<name>name</name>
<urlurl</url>
</snapshotRepository>
<repository>
<id>central</id>
<name>name</name>
<urlurl</url>
</repository>
</distributionManagement>
settings.xml から repositoryId と URL を取得する必要があるという要件があります。settings.xml を指定して、repositoryId と URL を取得し、pom での配布管理を回避することは可能ですか。