maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Scholte (JIRA)" <j...@codehaus.org>
Subject [jira] (MNG-2971) Variables are not replaced into installed pom file
Date Wed, 21 Jan 2015 19:34:22 GMT

     [ https://jira.codehaus.org/browse/MNG-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Scholte updated MNG-2971:
--------------------------------

    Description: 
Variables are not replaced into installed pom file.
Here is a sample pom file
{code: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/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>
	<groupId>com.xxx.root</groupId>
	<artifactId>root</artifactId>
	<packaging>pom</packaging>
	<version>${prop.version}</version>
	<name>My Project</name>
        ...
	<properties>
		<prop.version>3.0.20</prop.version>
	</properties>

</project>
{code}
The installed pom is into $\{localRepository}/com/xxx/root/root/3.0.20/root-3.0.20.pom
is the same as the project pom file but the version referenced into the installed pom file
is $\{prop.version} instead of 3.0.20
which creates problem to artifacts depending of this one.

Thanks in advance

  was:
Variables are not replaced into installed pom file.
Here is a sample pom file
<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.xxx.root</groupId>
	<artifactId>root</artifactId>
	<packaging>pom</packaging>
	<version>${prop.version}</version>
	<name>My Project</name>
        ...
	<properties>
		<prop.version>3.0.20</prop.version>
	</properties>

</project>

The installed pom is into ${localRepository}/com/xxx/root/root/3.0.20/root-3.0.20.pom
is the same as the project pom file but the version referenced into the installed pom file
is ${prop.version} instead of 3.0.20
which creates problem to artifacts depending of this one.

Thanks in advance


> Variables are not replaced into installed pom file
> --------------------------------------------------
>
>                 Key: MNG-2971
>                 URL: https://jira.codehaus.org/browse/MNG-2971
>             Project: Maven
>          Issue Type: Bug
>          Components: Deployment, Inheritance and Interpolation
>         Environment: Windows, Solaris
> Maven version 2.0.4
>            Reporter: Laurent Dauvilaire
>            Assignee: Ralph Goers
>             Fix For: Issues to be reviewed for 3.x
>
>         Attachments: pom.xml
>
>
> Variables are not replaced into installed pom file.
> Here is a sample pom file
> {code: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/maven-v4_0_0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<groupId>com.xxx.root</groupId>
> 	<artifactId>root</artifactId>
> 	<packaging>pom</packaging>
> 	<version>${prop.version}</version>
> 	<name>My Project</name>
>         ...
> 	<properties>
> 		<prop.version>3.0.20</prop.version>
> 	</properties>
> </project>
> {code}
> The installed pom is into $\{localRepository}/com/xxx/root/root/3.0.20/root-3.0.20.pom
> is the same as the project pom file but the version referenced into the installed pom
file is $\{prop.version} instead of 3.0.20
> which creates problem to artifacts depending of this one.
> Thanks in advance



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message