Issue Details (XML | Word | Printable)

Key: MAVEN-1726
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Manfred Mayer
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1

CLONE -Add the possibility to use parent pom present in repo

Created: 17/Nov/05 06:57 AM   Updated: 11/Apr/06 05:11 PM
Component/s: None
Affects Version/s: 1.0.2, 1.1-beta-1, 1.1-beta-2, 1.1-beta-3
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File MAVEN-1726.txt (7 kB)



 Description  « Hide

For the extend tag, we can support http protocol, or another syntax like this <extend>${repo}/aGroupId/poms/anArtifactId-version.pom</extend>. Personally, I prefer the second solution.

With this features, users can share default pom parameter between all their projects, and it prepare the introduction of pom V4.



Manfred Mayer added a comment - 17/Nov/05 07:05 AM

For the extend tag the extend of a pom should be possible like this <extend>${maven.repo.local}/aGroupId/poms/anArtifactId-version.pom</extend>.
I think this would be a nice feature extension for Maven 1.1.
I created a patch for the current 1.1-beta3-SNAPSHOT, which parses the string in <extend>${maven.repo.local}/aGroupId/poms/anArtifactId-version.pom</extend>
and tries to download "aGroupId/poms/anArtifactId-version.pom" with the common artifact-download-mechanism from the specified remote repositories to the local repository. It also supports the SNAPSHOT mechanism, and works fine.

IMHO this change is not very invasive, because it only becomes active, if the specified parent pom cannot be found.


Manfred Mayer added a comment - 17/Nov/05 07:07 AM

patch to the last comment (for downloading parent poms)


Arnaud Heritier added a comment - 30/Nov/05 06:33 PM

Will not be fixed in maven 1.0.X
I'm not sure that it will not create side-effects. You can share the pom but what about properties (used in the parent pom for example ...) ???