Thanks for clearing that up.

Brendan.

-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED]
Sent: 28 June 2003 17:28
To: Maven Users List
Subject: RE: Dependency lists for 'main' projects


On Sat, 2003-06-28 at 12:12, Brendan Lawlor wrote:
> Jason,
>    There is one remaining thing that is behaving unexpectedly. When I use
> build the main project using reactor and I have specified -o for offline,
my
> build fails as (before reactor has even begun) maven insists it can't go
any
> further as there are some dependencies missing.
>
> When I run connected (we're using our own intranet remote repository) and
so
> without the -o, maven _still_ attempts to download the missing
dependencies,
> but after failing to do so, moves on to carry out, successfully, the
reactor
> goal.
>
> Any ideas why the -o build should or might fail like that?

You also need to set this property:

maven.repo.remote.enabled = false

I know this is somewhat confusing but the offline property actually
controls things like the changelog plugins that attempts to connect to a
remote server. Setting the offline property stops any sort of remote
connection, but this property doesn't control downloading artifacts. So
you need to control the remote repository behaviour with the above
mentioned property.

If I remember correctly I implemented this for Vincent who wanted to be
online to so change log reports would be generated but wanted the repo
disabled.

> Brendan.
>
> -----Original Message-----
> From: Brendan Lawlor [mailto:[EMAIL PROTECTED]
> Sent: 28 June 2003 14:30
> To: Maven Users List
> Subject: RE: Dependency lists for 'main' projects
>
>
> Sorry - misread your first reply. That sorts it out. Thanks.
>
> Brendan.
>
> -----Original Message-----
> From: Jason van Zyl [mailto:[EMAIL PROTECTED]
> Sent: 28 June 2003 14:21
> To: Maven Users List
> Subject: RE: Dependency lists for 'main' projects
>
>
> On Sat, 2003-06-28 at 09:14, Brendan Lawlor wrote:
> > Thanks Jason,
> >    That explains things, but it does leave me with the following
problem:
> >
> > I was specifically trying to avoid a situation when the main project
> > physically contained the sub projects
>
> They don't need to be physically contained within the main project. They
> can be in a parallel directory structure:
>
> build/
>   main/
>   project0/
>   project1/
>   project2/
>
> > (sorry for the awkward questions on a
> > Saturday!). The reason to avoid this structure is that we do things in a
> > very component-based way. Our subprojects are heavily reused by other
main
> > projects. But the directory structure (which presumeably must be
reflected
> > in CVS) means that each sub-project must have only one parent.
> >
> > I suppose it might be possible to _not_ maintain the parent-child
> directory
> > relationship in CVS, and check out the subproject modules under the
> > directory that the main project module is checked out in. But as many
CVS
> > commends can be recursive I suspect that this will cause strange
behaviour
> > from CVS tools such and WinCVS.
> >
> > Any experience with such matters?
> >
> > Brendan.
> >
> > -----Original Message-----
> > From: Jason van Zyl [mailto:[EMAIL PROTECTED]
> > Sent: 28 June 2003 14:05
> > To: Maven Users List
> > Subject: Re: Dependency lists for 'main' projects
> >
> >
> > On Sat, 2003-06-28 at 08:49, Brendan Lawlor wrote:
> > > Hi,
> > >    I have a problem: I want to make a 'main' project made up of sub
> > projects
> > > or component projects (following the excellent article by Charles Chan
> of
> > > IBM). I would like to record the dependencies of this main project on
> its
> > > component parts in the POM. If I do this, then I cannot build the main
> > > project as none of the component libraries are installed yet. But the
> > whole
> > > point of this main project is to build and install its component parts
> > > (using reactor).
> > >
> > > This is a real chicken-and-egg situation. The only way to break the
> cycle
> > is
> > > to remove the dependencies, and if I do that, then my main project's
POM
> > > doesn't reflect its component parts.
> > >
> > > Am I missing a point somewhere?
> >
> > Maven checks to make sure that all your binary dependencies are present
> > before building so what you are attempting needs to be altered slightly.
> >
> > If you you have a directory that contains all your projects (i.e. your
> > main project and the projects it depends on) then the reactor will see
> > that your main project depends on your other projects and build it last.
> >
> > So as part of your reactor build you might specify the 'jar:install'
> > goal which will build and install the JARs. When at last your main
> > project is encountered all its dependencies will have been built and
> > installed and the build for your main project should work.
> >
> > If this is what you are attempting and it's not working then you must
> > check to make sure you have your dependencies stated correctly.
> > Unfortunately we have no lint type mechanism to check for common
> > problems yet.
> >
> > > Regards,
> > > Brendan.
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > --
> > jvz.
> >
> > Jason van Zyl
> > [EMAIL PROTECTED]
> > 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
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> jvz.
>
> Jason van Zyl
> [EMAIL PROTECTED]
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
jvz.

Jason van Zyl
[EMAIL PROTECTED]
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to