Übergeben Sie Variablen aus der Eigenschaftendatei an das Tag "distributionManagement" in "pom.xml"

Ich habe also so etwas wie:

<plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>properties-maven-plugin</artifactId>
            <version>1.0-alpha-1</version>
            <executions>
                <execution>
                    <phase>initialize</phase>
                    <goals>
                        <goal>read-properties</goal>
                    </goals>
                    <configuration>
                        <files>
                            <file>${user.home}/build.properties</file>
                        </files>
                    </configuration>
                </execution>
            </executions>
        </plugin>

und ich habedistributionManagement mögen:

<distributionManagement>
    <repository>
        <id>local-repo</id>
        <url>file:///${deploy.dir}/${project.artifactId}</url>
    </repository>
</distributionManagement>

Ich habe kein Remote-Repository, deshalb verwende ich esfile:///

${deploy.dir} ist eine Immobilie aus dembuild.properties Datei und es wird nicht den Wert für diese Eigenschaft nehmen. Warum?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage