Maven 1

Projects should inherit the project.properties from the POM they extend

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.0-rc2
  • Fix Version/s: 1.0-rc3
  • Component/s: inheritance
  • Labels:
    None
  • Environment:
    Windows 2000, JDK 1.4.2
  • Number of attachments :
    0

Description

When a project extends another project, the base project's properties are not inherited. This ends up causing a lot of problems. For example, I want to set:

webserver.ip=9.144.174.72
webserver.port=9000
webserver.root.directory=/www/cs

these are properties that should be "global", that is to say used by all subprojects. Currently, the only way to do this is to put the properties in a build.properties in the user's home. This causes a few problems:

1 - Putting the build.properties in CVS causes problems because it's checked out to the user's home

2 - If the user uses maven for several projects the build.properties will clash.

In short, I think this can easily be solved like this: When a project extends another project, the sub-project inherits the super-project's project.properties. I think this would be very easy to implement, and there is already a demand for this functionality. It'd be a perfect addition to the 1.0 release. I understand this may be planned for the 1.1 release, but I think it needs to be in 1.0. Once 1.0 is released Maven will get a lot more exposure and maybe even a book or two. If a critical feature like this is missing it may prevent people from using Maven.

Michael Mattox

Activity

Hide
Brett Porter added a comment -

duplicates MAVEN-37, already fixed.

Show
Brett Porter added a comment - duplicates MAVEN-37, already fixed.

People

Vote (2)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: