You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/04/25 01:27:12 UTC

[jira] Closed: (MAVEN-1224) subprojects should inherit project.properties file that lives in same dir as 'ed pom file

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Sat, 24 Apr 2004 7:26 PM

Duplicate of MAVEN-37, which has been fixed.

This patch was not sufficient to solve the problem completely, but thanks. The properties were already being loaded, but inserted into the wrong context.
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1224

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1224
    Summary: subprojects should inherit project.properties file that lives in same dir as <extend>'ed pom file
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: DUPLICATE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Fix Fors:
             1.0-rc3
   Versions:
             1.0-rc1

   Assignee: Brett Porter
   Reporter: joseph benavidez

    Created: Thu, 8 Apr 2004 5:20 AM
    Updated: Sat, 24 Apr 2004 7:26 PM
Environment: linux

Description:
let's say i've got this structure:

superproj/
|-- maven.xml
|-- project.properties
|-- project.xml
`-- subproj
    |-- project.properties
    `-- project.xml

and subproj's project.xml inherits superproj's project.xml... if I run maven from inside subproj, I want to inherit superproj's project.properties.

it's nice to be able to build stuff at the top level (using multiproject), but it'd be also nice to build at the subproj level without having to dup project.properties...

for example i want to be able to just run maven checkstyle from w/in the subproj. of course the checkstyle properties are all defined in the top-level project.properties...

I will attach a simple patch. (nothing refactored. a few lines copy/pasted). It seems to work correctly. The subproject's project.proprties overrides those of the subclassed pom's properties file. 


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org