You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Willie Vu <ct...@ust.hk> on 2003/01/17 04:45:59 UTC

Project inheritance: Override and merge dependency?

I have a child project that extends a parent.  The child wants most of the
setup from parent except that some dependencies.  Is it possible to override
some dependencies?

E.g. In parent,

<dependencies>
  <dependency>
      <id>xerces</id>
      <version>2.2.1</version>
      <url>http://xml.apache.org/xerces2-j/</url>
    </dependency>
  <dependency>
      <id>childDoesNotWant</id>
      <version>1.0</version>
      <url>http://www.foo.com/</url>
    </dependency>
</dependencies>

In child, I want to use an older version of xerces, ignore one jar, and add
more child-specific jars, like the following:

<dependencies>
  <dependency>
      <id>xerces</id>
      <version>2.0.2</version>
      <url>http://xml.apache.org/xerces2-j/</url>
    </dependency>
  <dependency>
      <id>childDoesNotWant</id>
      <!-- something like the following -->
      <properties>
        <ignore>true</ignore>
      <properties>
    </dependency>
  <dependency>
      <id>childSpecific</id>
      <version>2.0</version>
      <url>http://www.foo.com/</url>
    </dependency>
</dependencies>

--
Willie Vu


RE: Javadoc report is missing from site:generate (CVS HEAD)

Posted by Willie Vu <ct...@ust.hk>.
dIon,

I ran both site and site:generate.  Same problem.  I am talking about the
Javadoc Report, not the Javadoc itself.  Attached is the log file when I ran
"mave site".



--
Willie Vu
 


> -----Original Message-----
> From: dion@multitask.com.au [mailto:dion@multitask.com.au] 
> Sent: Wednesday, January 22, 2003 1:32
> To: Turbine Maven Users List
> Subject: Re: Javadoc report is missing from site:generate (CVS HEAD)
> 
> 
> Willie, I just bootstrapped and ran it here.
> 
> All came out ok.
> 
> I used 'maven site'
> 
> Got anything we can work with?
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://www.freeroller.net/page/dion/Weblog
> Work:      http://www.multitask.com.au
> 
> 
> "Willie Vu" <ct...@ust.hk> wrote on 22/01/2003 02:26:48 PM:
> 
> > Project Documentation / Project Reports / Javadoc Report is missing
> after
> > site:generate is run.  I'm using the CVS HEAD.
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:turbine-maven-user-
> > unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:turbine-maven-user- 
> > help@jakarta.apache.org>
> > 
> 
> > ForwardSourceID:NT000A65FE
> 
> --
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> 
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 
> 

Re: Javadoc report is missing from site:generate (CVS HEAD)

Posted by di...@multitask.com.au.
Willie, I just bootstrapped and ran it here.

All came out ok.

I used 'maven site'

Got anything we can work with?
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


"Willie Vu" <ct...@ust.hk> wrote on 22/01/2003 02:26:48 PM:

> Project Documentation / Project Reports / Javadoc Report is missing 
after
> site:generate is run.  I'm using the CVS HEAD.
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-maven-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:turbine-maven-user-
> help@jakarta.apache.org>
> 

> ForwardSourceID:NT000A65FE 

Javadoc report is missing from site:generate (CVS HEAD)

Posted by Willie Vu <ct...@ust.hk>.
Project Documentation / Project Reports / Javadoc Report is missing after
site:generate is run.  I'm using the CVS HEAD.


Re: Project inheritance: Override and merge dependency?

Posted by Jason van Zyl <ja...@zenplex.com>.
On Thu, 2003-01-16 at 22:45, Willie Vu wrote:
> I have a child project that extends a parent.  The child wants most of the
> setup from parent except that some dependencies.  Is it possible to override
> some dependencies?

The dependencies list is considered a single object so it is overriden
completely. I'm thinking about a way to do a 'partial' inheritance as
it's been requested quite a bit and I think it could be useful.

-- 
jvz.

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society