次の構成を使用して外部プロパティファイルからプロパティを読み取るために、次のコードをpom.xmlに追加しました。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>..\maven.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
私のmaven.propertiesファイルには次のものがあります。
アスペクトj-maven-plugin.version=1.4
version-maven-plugin.version = 2.0
${versions-maven-plugin.version}
pom.xmlで使用しています
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
<configuration>
<rulesUri>url</rulesUri>
<includesList>com.package:*</includesList>
</configuration>
</plugin>
しかし、mvn clean install
プラグインのバージョンが無効であるという例外がパッケージで実行されるとスローされます。これが発生する理由は何ですか?
注:pom.xmlとmave.propertiesの両方が同じフォルダーにあります