try ${pom.version} instead of ${project.version}
CletteBou
2007/6/26, Stefan Reinhold <[EMAIL PROTECTED]>:
Hi there,
I'm trying to use ${project.version} in resolving a parent project. But it
does not resolve the property. If I try using an environment variable, e.g
.
${env.VERSION} it fails the same way.
This is the Maven output:
$ mvn -e -X help:effective-pom
+ Error stacktraces are turned on.
Maven version: 2.0.7
Java version: 1.5.0_11
OS name: "windows xp" version: "5.1" arch: "x86"
[DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente und
Einstellungen\w90115e\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'c:\tools\maven-2.0.7\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM:
com.wieland.wfs:ZentraleKonfiguration::${project.version} of project:
com.wieland.wfs:WFS:pom:1.0-SNAPSHOT in relative path:
ZentraleKonfiguration
[DEBUG] Path specified in <relativePath/> (ZentraleKonfiguration) is a
directory. Searching for 'pom.xml' within this directory.
[DEBUG] Invalid parent-POM referenced by relative path
'ZentraleKonfiguration' in parent specification in
com.wieland.wfs:WFS:pom:1.0-SNAPSHOT:
Specified: com.wieland.wfs:ZentraleKonfiguration::${project.version}
Found: com.wieland.wfs:ZentraleKonfiguration:pom:1.0-SNAPSHOT
[DEBUG] Retrieving parent-POM:
com.wieland.wfs:ZentraleKonfiguration::${project.version} for project:
com.wieland.wfs:WFS:pom:1.0-SNAPSHOT from the repository.
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/com/wieland/wfs/ZentraleKonfiguration/${project.version}/ZentraleKonfiguration-${project.version}.pom
My pom.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd
">
<modelVersion>4.0.0</modelVersion>
<groupId>com.wieland.wfs</groupId>
<artifactId>WFS</artifactId>
<name>Wieland Factory Suite</name>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<url>http://iwod/jee-wfs</url>
<parent>
<groupId>com.wieland.wfs</groupId>
<artifactId>ZentraleKonfiguration</artifactId>
<version>${project.version}</version>
<relativePath>ZentraleKonfiguration</relativePath>
</parent>
<!--
<modules>
<module>ZentraleKonfiguration</module>
<module>Auftragsverwaltung</module>
</modules>
-->
</project>
------------------------------------------------------------------------
Wieland-Werke Aktiengesellschaft
Vorstand:
Harald Kroener, Sprecher
Dr. Jörg Hanisch
Werner T. Traa
Dr. Ulrich Hartmann
Vorsitzender des Aufsichtsrats:
Dr.-Ing. Wolfgang Eychmüller
Sitz der Gesellschaft: Ulm
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]