Notice that the root of the <outputDirectory> tag is the folder in which the
current pom lies.

Try using the path "../target/site" to get it into the parent folder's
target.

The problem with this is that it makes implicit assumptions about the
relationships (in location) of the parent and child poms.

You might look into using "mvn site:deploy" to move all the sites for
parents and children into place after creating them in the "standard" place.

You could find a little info at this link on the <site> tag that tells it
where to deploy but it doesn't really tell how to use it:

http://maven.apache.org/ref/current/maven-model/maven.html#class_site

Maybe someone else will read this and give a better link.

Thanks.
-- Lee Meador

On 5/5/06, RobJac <[EMAIL PROTECTED]> wrote:


I have a requirement where in i want the site created for my child project
to
be placed in a specified location in under the parent project. I have used
<reporting>
        <outputDirectory>target/site</outputDirectory>
</reporting> in my child pom xml as of now which is placing the child site
under

ParentProject
pom.xml
    Child Project(Module A)
    pom.xml
    target
        site
           index.html

I wanted the site for my child project say,Module A under

ParentProject
pom.xml
target
     site
        ModuleA
            index.html
    Child Project(Module A)
    pom.xml
How do i configure refering to parent project directory from my child
project?
--
View this message in context:
http://www.nabble.com/Refering-to-parent-directory-from-child-pom-xml-t1562659.html#a4243752
Sent from the Maven - Users forum at Nabble.com.


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




--
-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]

Reply via email to