-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Stefan,
I don't think you are allowed to have a property in the parent
reference. I tried this before and it would work in most other places
of the pom apart from the parent reference.
If I remember correctly, the rationale behind it is that this reference
needs to be static once it comes to releasing a version of the pom
itself. Someone correct me if I am wrong.
Cheers,
Johan
Stefan Reinhold wrote:
> 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]
- --
you too?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGgSdb1Tv8wj7aQ34RAmE4AJ9GjNL6fJAeyMnwBH2d7sZoVpUa6ACgioU5
k1UgHNtVJG3kRZ+sy2o9Dtc=
=XU3t
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]