The following comment has been added to this issue:

     Author: Kevin Hagel
    Created: Mon, 6 Oct 2003 8:56 AM
       Body:
My current favorite kludge around this to put the following right at the top of my 
maven.xml:

  <util:properties file="../project.properties" trim="true" />
  <util:properties file="../build.properties"   trim="true" />

this is immediately after the opening <project ..> tag, before any goals are 
encountered.  Yes, outside of any <goal>

Using jelly:util preserves the mavenesque last-set feature, while using the 
<ant:loadproperties srcFile="file.properties"/> sticks you with ant's first-set policy.
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-37


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-37
    Summary: Not honoring parents project.properties when inheriting projects.
       Type: Bug

     Status: Assigned
   Priority: Minor

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core
   Fix Fors:
             1.1
   Versions:
             1.0-beta-7

   Assignee: Jason van Zyl
   Reporter: Jeff Brekke

    Created: Sun, 4 Aug 2002 9:15 PM
    Updated: Sun, 3 Aug 2003 11:28 PM
Environment: java version "1.4.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_01-b03)
Java HotSpot(TM) Client VM (build 1.4.0_01-b03, mixed mode)

Redhat 7.3 + errata

Description:
When a project is inheiriting from a parent project, the parent's project 
project.properties file is not being read.  Example:

Parent project.properties defines maven.repo.remote.  When the child is built it will 
default to maven's default remote repo at jakarta.


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to