Is parent's pom in repository? I too had faced similar problem(not with
site), then after help from user list I installed the Parent's pom as well
in the repository(local/remote) with install/deploy.
It solved the problem for me after that.

Regards,
Amit

On Feb 19, 2008 9:18 AM, Andrew Hughes <[EMAIL PROTECTED]> wrote:

> Hi Lee,
>
> I think by default the relative path is ../pom.xml which is ok unless you
> have a flat (eclipse friendly) structure like we do. So you probably don't
> need it set.
>
> Yes I most certainly have <modules> in my parent.
>
> From the logs tho, it is using the parent ${basedir} even when it is
> within
> a module.
>
> I will try to install as a hacky workaround in the meantime
>
>
> Cheers!!!
>
>
> On Feb 19, 2008 10:45 AM, Lee Meador <[EMAIL PROTECTED]> wrote:
>
> > Sad ... replying to myself.
> >
> > I noticed one thing when I read the Jira issue Andrew linked to.
> >
> > When doing the "site" you have to do "install site" to make it work
> unless
> > you did an "install" since the last change to the parent pom.
> >
> > -- lee
> >
> > On Feb 18, 2008 6:10 PM, Lee Meador <[EMAIL PROTECTED]> wrote:
> >
> > > Are you using this in the parent pom?
> > >
> > > <module>../module-1</module>
> > >
> > > As I remember, this works if done some ways.
> > >
> > > You can build if you issue 'mvn' from /parent mostly
> > > You can build if you issue "mvn -f parent/pom.xml" from the folder
> above
> > > all the project folders mostly
> > > You can build if you issue 'mvn' from /module-1 but it will only build
> > > that project and has some caveats below.
> > >
> > > I think the first 2 only work if you have done 'install' recently. (
> i.e.
> > > Since changes to the pom.xml in the parent)
> > > I think the last one only works if you did one of the first two with a
> > > recent install (possibly with -N option to only build the parent)
> > >
> > > I'm using maven version 2.0.7 right now. I think these rules were
> > accurate
> > > in version 2.0.4.
> > >
> > > And, I just noticed, I don't use the <relativePath/> tag. Maybe that's
> a
> > > killer for you.
> > >
> > > -- Lee
> > >
> > >
> > > On Feb 18, 2008 5:39 PM, Andrew Hughes <[EMAIL PROTECTED]> wrote:
> > >
> > > > This is a known issue:
> > > > http://jira.codehaus.org/browse/MSITE-261
> > > >
> > > >
> > > > On Feb 19, 2008 9:36 AM, Andrew Hughes <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > Hi Hi,
> > > > >
> > > > > This is the error I am getting.... which is causing my sites to
> > > > > build/behave badly. The model file path is wrong in the log below,
> > and
> > > > the
> > > > > project is "unknown"... not sure why any of this is happening....
> > > > >
> > > > > [INFO] [site:site]
> > > > > [INFO] Unable to load parent project from a relative path: Could
> not
> > > > find
> > > > > the model file '/data/workspaces/mycompany/parent/../pom.xml'. for
> > > > project
> > > > > unknown
> > > > > [INFO] Parent project loaded from repository.
> > > > >
> > > > > This is my structure....
> > > > >
> > > > > /myproject/parent/pom.xml
> > > > > /myproject/module-1/pom.xml
> > > > > /myproject/module-2/pom.xml
> > > > > /myproject/module-3/pom.xml
> > > > >
> > > > >
> > > > > This is my <parent> inside each module-X....
> > > > > <parent>
> > > > >     <groupId>myproject</groupId>
> > > > >     <artifactId>parent</artifactId>
> > > > >     <version>0.0.1-SNAPSHOT</version>
> > > > >     <relativePath>../parent/pom.xml</relativePath>
> > > > > </parent>
> > > > >
> > > > > Any help would be great!!! :)
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > -- Lee Meador
> > > Sent from gmail. My real email address is lee AT leemeador.com
> >
> >
> >
> >
> > --
> > -- Lee Meador
> > Sent from gmail. My real email address is lee AT leemeador.com
> >
>

Reply via email to