私は1つのmavenプロジェクトを持っています。私は、外部プロパティファイルに外部依存化依存バージョンを外部化したい。 私はプロパティファイルを試しましたプラグイン私はプロパティファイルを読み込んでいません。プロパティファイルから痴漢バージョンを読む方法
config.properties
springframework.version=4.2.5.RELEASE
pom.xmlファイル
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.estuate.test</groupId>
<artifactId>testPom</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-1</version>
<executions>
<execution>
<phase>pre-clean</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>config.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${springframework.version}</version>
</dependency>
</dependencies>
はまだ私が私を助けてください
build.plugins.plugin[org.codehaus.mojo:properties-maven-plugin].dependencies.dependency.version' for org.springframework:spring-core:jar must be a valid version but is '${springframework.version}'
としてエラーメッセージをgetttingています。
に[プロパティ-のmaven-pluginの](http://www.mojohaus.org/properties-maven-plugin/)の最新バージョンを使用していないのはなぜ1.0.0? – khmarbaise
私は解決策を理解しませんでした。私は1つのpom.xmlファイルしか持っていません。私は親のMavenプロジェクトやモジュールモジュールを持っていません。 –