Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Issues to be reviewed for 3.x
-
Component/s: Deployment, Inheritance and Interpolation
-
Labels:None
-
Environment:Windows, Solaris
Maven version 2.0.4
-
Complexity:Intermediate
-
Number of attachments :
Description
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>$
<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
Issue Links
- depends upon
-
MINSTALL-50
provide property filtering on .pom files placed in local repo
-
- duplicates
-
MNG-4369
Maven does not expand expressions while installing artifacts locally
-
- is related to
-
MNG-3057
properties not expanded in generated POMs when building A/B/C nested projects
-
-
MNG-624
automatic parent versioning
-
-
MNG-3267
replacing variables in version, groupId or artifactId when POM is installed/deployed
-
- relates to
-
MNG-4223
Resolve expressions in POM artifact coordinates
-
-
MNG-4161
possibility to omit version in dependency of same project (and fill in on install/deploy)
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Project | Maven 2.x Install Plugin [ 11136 ] | Maven 2 [ 10500 ] |
| Complexity | Intermediate | |
| Affects Version/s | 2.0 [ 12224 ] | |
| Key | MINSTALL-20 | MNG-2971 |
| Fix Version/s | Reviewed [ 13555 ] |
| Fix Version/s | Reviewed Pending Version Assignment [ 13555 ] | |
| Fix Version/s | 2.0.x [ 13141 ] | |
| Component/s | Deployment [ 12029 ] | |
| Component/s | Inheritance and Interpolation [ 11570 ] |
| Link | This issue depends upon MINSTALL-50 [ MINSTALL-50 ] |
| Assignee | Ralph Goers [ ralphgoers ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Resolution | Duplicate [ 3 ] | |
| Status | In Progress [ 3 ] | Closed [ 6 ] |
| Status | Closed [ 6 ] | Reopened [ 4 ] |
| Resolution | Duplicate [ 3 ] |
| Link | This issue duplicates MARTIFACT-32 [ MARTIFACT-32 ] |
| Fix Version/s | 3.0-alpha-7 [ 16087 ] | |
| Fix Version/s | 2.2.x [ 13141 ] |
| Fix Version/s | 3.0-alpha-7 [ 16087 ] | |
| Fix Version/s | 3.x (to be reviewed) [ 13145 ] |
| Attachment | pom.xml [ 58761 ] |