The following comment has been added to this issue:

     Author: Dan Tran
    Created: Thu, 4 Nov 2004 12:57 PM
       Body:
Sadly to say Edwin patch introduce a major problem for me.  I am current testing a 
maven.jar built by Edwin.

It is best that I decribe my usage of Maven and introduce the scenario as I go along.

I have a tree of project directories that from the root, I can
issue "maven multiproject:install" which can transverse to all
subdirectories and build/install artifact to my local repo.

Some subtrees are ignored completely.  

So here is how I structure it.

  - In my root, I set maven.multiproject.type=ignore 
    in my project.properties
  - Add a do nothing goal "ignore:install" to maven.xml

This way, any sub tree with does not define maven.multiproject.type
will inherite the root definition, and therefore multiproject plugin
will invoke the do nothing goal "ignore:install"

For those subtrees that I want multiproject goal to build, all I need is to define 
"maven.multiproject.type=multiproject" in the subtree's project.properties file

For those project (leaf) that I want mutlproject goal to build, all I need is to 
define "maven.multiproject.type=jar|war..." in project.properties

The problem here is If start do a build from a subtree,
any maven.multiproeject.type defined in the subtree of this subtree, are ignored, and 
therefore inherit the root's value.  And there for
all my intended buildable subtrees are igored.

In summary, please reverse the patch
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1479?page=comments#action_26075

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1479

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1479
    Summary: Multiproject inheritance (again)
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: DUPLICATE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core
   Fix Fors:
             1.0.1

   Assignee: Brett Porter
   Reporter: John Taylor

    Created: Tue, 13 Jul 2004 9:38 AM
    Updated: Thu, 4 Nov 2004 12:57 PM
Environment: WinXP

Description:
This may be a duplicate of
http://jira.codehaus.org/browse/MPMULTIPROJECT-32
in which case I apologise.

I'm finding that sub projects only inherit *properties* from one level deep if run via 
multiproject.  Furthermore, certain "built-in" properties don't get inherited at all.

In the attached code, sub inherits from base which inherits from basebase.  When run 
as a multiproject from the root project (goal: doit->multiproject:clean), sub sees the 
props defined in base, but not basebase.  Also, the property maven.repo.central, 
overridden in base, retains its default value of login.ibiblio.org

However, running sub directly (from sub's folder with goal "clean") gives the correct 
behaviour.





---------------------------------------------------------------------
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