You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ashley Williams <as...@db.com> on 2008/05/01 18:31:26 UTC

maven site multi-module question

Hi,

I'm having trouble generating a maven site in the directory of my 
choosing. I don't want to actually deploy
the site (onto a remote server), but instead I want to copy the resulting 
website into a local directory.
The directory then gets picked up by a company process and gets placed 
into a webserver directory
some time later.

The trouble is that no combination of site:site or site:stage seem to 
work.
Here is the project structure:


/mvnparentdir           [pom.xml]
        |
        |_____project1  [pom.xml]
        |
        |_____project2  [pom.xml]
        |
        |...

/websitedir


So what combination of settings do I need to specify in the various 
pom.xml files in order
to generate the fully formed website in the websitedir directory, which 
I'm assuming is a
sibling to the /mvnparentdir directory?

Thanks
- Ashley

---

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.

RE: maven site multi-module question

Posted by Ashley Williams <as...@db.com>.
Cunning idea, but it wouldn't work for us, since the /websitedir is 
actually in the target
directory of another project. So a more accurate picture would be as 
follows:

/mvnparentdir           [pom.xml]
        |
        |_____project1  [pom.xml]
        |
        |_____project2  [pom.xml]
        |
        |_____jettyproj [pom.xml]
                  |
                  |____target   [jettyproj.jar]
                         |
                         |__classes
                               |
                               |__websitedir


The jettyproj.jar is an executable jar that we can take onto another
machine and run from there. We do this so that we can have different 
documentation jars for different branches and don't wish to administer a
full on Apache installation.

We also use continuum for our builds so the projects get checked out
into various different directories, and managing these locations
in the settings.xml file would get quite tricky.

It seems a pretty fundamental ability for a site plugin to be able
to create the finished version of the actual site without only being
available when tacked onto the deployment, so I'm hoping there is
some combination of settings that will do this for us.



"Prystash,John" <pr...@oclc.org> wrote on 01/05/2008 17:47:07:

> 
> Hey Ashley, I've been able to do something similar by putting the
> following in the POM of the parent.
> 
> <distributionManagement>
>   <site>
>     <url>file://${user.dir}/site</url>
>   </site>
> </distributionManagement> 
> 
> This puts the site directory inside the parent directory however when I
> run site-deploy.
> 
> -----Original Message-----
> From: Ashley Williams [mailto:ashley.williams@db.com] 
> Sent: Thursday, May 01, 2008 12:31 PM
> To: users@maven.apache.org
> Subject: maven site multi-module question
> 
> Hi,
> 
> I'm having trouble generating a maven site in the directory of my
> choosing. I don't want to actually deploy the site (onto a remote
> server), but instead I want to copy the resulting website into a local
> directory.
> The directory then gets picked up by a company process and gets placed
> into a webserver directory some time later.
> 
> The trouble is that no combination of site:site or site:stage seem to
> work.
> Here is the project structure:
> 
> 
> /mvnparentdir           [pom.xml]
>         |
>         |_____project1  [pom.xml]
>         |
>         |_____project2  [pom.xml]
>         |
>         |...
> 
> /websitedir
> 
> 
> So what combination of settings do I need to specify in the various 
> pom.xml files in order
> to generate the fully formed website in the websitedir directory, which 
> I'm assuming is a
> sibling to the /mvnparentdir directory?
> 
> Thanks
> - Ashley
> 
> ---
> 
> This e-mail may contain confidential and/or privileged information. If
> you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
> 
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
> additional EU corporate and regulatory disclosures.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.

RE: maven site multi-module question

Posted by "Prystash,John" <pr...@oclc.org>.
Hey Ashley, I've been able to do something similar by putting the
following in the POM of the parent.

<distributionManagement>
  <site>
    <url>file://${user.dir}/site</url>
  </site>
</distributionManagement>   

This puts the site directory inside the parent directory however when I
run site-deploy.

-----Original Message-----
From: Ashley Williams [mailto:ashley.williams@db.com] 
Sent: Thursday, May 01, 2008 12:31 PM
To: users@maven.apache.org
Subject: maven site multi-module question

Hi,

I'm having trouble generating a maven site in the directory of my
choosing. I don't want to actually deploy the site (onto a remote
server), but instead I want to copy the resulting website into a local
directory.
The directory then gets picked up by a company process and gets placed
into a webserver directory some time later.

The trouble is that no combination of site:site or site:stage seem to
work.
Here is the project structure:


/mvnparentdir           [pom.xml]
        |
        |_____project1  [pom.xml]
        |
        |_____project2  [pom.xml]
        |
        |...

/websitedir


So what combination of settings do I need to specify in the various 
pom.xml files in order
to generate the fully formed website in the websitedir directory, which 
I'm assuming is a
sibling to the /mvnparentdir directory?

Thanks
- Ashley

---

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for
additional EU corporate and regulatory disclosures.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org