You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by kiran malla <ki...@bsil.com> on 2003/05/14 16:11:08 UTC

Problem with multiple projects.

Hi All,
        I am mavenizing the whole code base. The structure is as follows:

Main Project
        |
        |
        --sub project 1
        |
        |
        --sub project 2
        |
        |
        --sub project 3

        The problem is currently i have project.xml and project.properties
in each of these sub projects. I want o/p along the lines of
http://db.apache.org/ where u have subprojects in the main page and user can
view a particular project after following a particular link.

        Currently when i give hte command maven...it picks up all sub
projects and prepares seperate zip,tar and other distributions...i want
something like a common jar/war/ zip which contains all the sub projects.. i
mean so that i can deploy it on a web server...Infact my requirement is
exactly that of http://db.apache.org/  look and feel...so that i can go to
individual projects from a main homepage....where subprojects are generated
and automatcally get reflected in the man site.

        Please provide your valuable inputs regarding my queries...

Any suggestions would be welcome:)


Maven.xml currenlty being used by me:
*******************************************
<project
  default="site"
  xmlns:j="jelly:core"
  xmlns:maven="jelly:maven"

xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTagLibr
ary">

  <!--
   |
   | S I T E
   |
   -->
  <preGoal name="build">
    <attainGoal name="site"/>
  </preGoal>

  <goal name="site">

          <maven:reactor
            basedir="${basedir}"
            includes="*/project.xml"
            excludes=""
            goals="clean,site:generate,dist"
            banner="Building"
            ignoreFailures="false"
          />

    <fileScanner var="templates">
      <fileset dir="${basedir}/templates">
        <include name="*.xml"/>
      </fileset>
    </fileScanner>

    <j:forEach var="template" items="${templates.iterator()}">

      <j:set var="templateName" value="${template.name}"/>
      <echo>Processing ${templateName} template ...</echo>

      <velocity:merge
        name="${basedir}/xdocs/${templateName}"
        basedir="${basedir}/templates"
        template="${templateName}"/>

    </j:forEach>

  </goal>

</project>
*******************************************












Re: Problem with multiple projects.

Posted by Theunis de Jongh <th...@epiuse.com>.
kiran malla wrote:

>Hi All,
>        Please provide your valuable inputs regarding my queries...
>
>Any suggestions would be welcome:)
>
>  
>
Hi Kiran,

What about having the subprojects copying their jars and wars etc. to 
the top-level directory, say $basedir/dist ?

Then define a goal in the main maven.xml file that aggregates the jars 
and wars into a single deployable archive.

Regards,

-- 

Theunis de Jongh	
EPI-USE Systems (Pty) Ltd.           "We make you shine!"
http://www.epiuse.com
mailto:theunis.de.jongh@epiuse.com
switchboard : (012) 368-8400  
direct line : (012) 368-8481
fax         : (012) 348-2709
cell        : (082) 653 1535

This message may contain information that is proprietary or confidential
and is intended only for the addressee named above.  If you are not the
addressee or authorized to receive this message for the addressee, you
may not use, copy or disclose to anyone this message or its contents.
If you have received this message in error, please notify me immediately
and permanently destroy any copies you may have.





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