You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kristine Weissbarth <kr...@sourcepark.de> on 2003/07/07 14:20:38 UTC
mainproject is not deployed
hi,
in my project I'm using the reactor to automatically build the 2
subprojects.
project
|-subproject1
|-subproject2
|-maven.xml
|-project.xml
The reactor properly finds and builds the subprojects and deploys them
but the project itself is not deployed. All necessary files (e.g.
index.html) are generated in target/docs but they are not deployed.
Can anybody tell me the reason why? Please give me a hint!
I attached the maven.xml and project.xml file I am using in the projects
directory maybe you find something wrong.
Thanks.
------------------maven.xml-------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<project
default="site"
xmlns:j="jelly:core"
xmlns:maven="jelly:maven"
xmlns:velocity="jelly:org.apache.commons.jelly.tags.velocity.VelocityTagLibrary">
<preGoal name="site">
<attainGoal name="all-build"/>
</preGoal>
<goal name="all-build">
<maven:reactor
basedir="${basedir}"
includes="framework/src/project.xml,glcr/webapp/src/project.xml"
banner="Building site"
goals="clean,jar:install,site:deploy"
postProcessing="true"
ignoreFailures="true"
/>
<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>
------------------project.xml-------------------
<?xml version="1.0"?>
<project>
<pomVersion>3</pomVersion>
<name>GLCR-Projekt</name>
<id>glcr</id>
<currentVersion>0</currentVersion>
<organization>
<name>BDO</name>
<url></url>
<logo></logo>
</organization>
<inceptionYear></inceptionYear>
<description>GLCR Description... </description>
<shortDescription>short description blabla</shortDescription>
<url>http://grip/</url>
<siteAddress>grip</siteAddress>
<siteDirectory>/var/www/</siteDirectory>
<distributionDirectory>/var/www/build/</distributionDirectory>
<repository>
<connection>
<!--scm:cvs:ext:k_weissbarth@cvs.sourcepark.net:/home/cvsroot:kato-->
</connection>
</repository>
<!--<developers>
<developer>
<name>Steffen Fiedler</name>
<id>s_fiedler</id>
<email>steffen.fiedler@sourcepark.de</email>
<organization>SourcePark GmbH</organization>
<roles>
<role>aktiv</role>
</roles>
</developer>
<developer>
<name>Matthias Barmeier</name>
<id>m_barmeier</id>
<email>matthias.barmeier@sourcepark.de</email>
<organization>SourcePark GmbH</organization>
<roles>
<role>aktiv</role>
</roles>
</developer>
<developer>
<name>Knut Herhold</name>
<id>k_herhold</id>
<email></email>
<organization>SourcePark GmbH</organization>
<roles>
<role>nicht aktiv</role>
</roles>
</developer>
</developers>-->
<dependencies>
<dependency>
<groupId>commons-jelly</groupId>
<artifactId>commons-jelly-tags-velocity</artifactId>
<version>20030303.205659</version>
</dependency>
<dependency>
<id>velocity</id>
<version>1.3</version>
</dependency>
</dependencies>
<build>
</build>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mainproject is not deployed
Posted by Kristine Weissbarth <kr...@sourcepark.de>.
Thanks, that was it! It works now.
Am Mon, 2003-07-07 um 14.44 schrieb Mark H. Wilkinson:
> On Mon, 2003-07-07 at 13:20, Kristine Weissbarth wrote:
> > hi,
> > in my project I'm using the reactor to automatically build the 2
> > subprojects.
> >
> > project
> > |-subproject1
> > |-subproject2
> > |-maven.xml
> > |-project.xml
> >
> > The reactor properly finds and builds the subprojects and deploys them
> > but the project itself is not deployed.
>
> That would be because you're using the reactor to run site:deploy in the
> subprojects:
>
> > <maven:reactor
> > basedir="${basedir}"
> > includes="framework/src/project.xml,glcr/webapp/src/project.xml"
> > banner="Building site"
> > goals="clean,jar:install,site:deploy"
> > postProcessing="true"
> > ignoreFailures="true"
> > />
>
> but you're (defaulting, at least) to running just 'site' in the
> top-level project:
>
> > <?xml version="1.0" encoding="ISO-8859-1"?>
> >
> > <project
> > default="site"
> > xmlns:j="jelly:core"
> > xmlns:maven="jelly:maven"
>
> Try 'maven site:deploy' from the top level.
>
> -Mark.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: mainproject is not deployed
Posted by "Mark H. Wilkinson" <mh...@kremvax.net>.
On Mon, 2003-07-07 at 13:20, Kristine Weissbarth wrote:
> hi,
> in my project I'm using the reactor to automatically build the 2
> subprojects.
>
> project
> |-subproject1
> |-subproject2
> |-maven.xml
> |-project.xml
>
> The reactor properly finds and builds the subprojects and deploys them
> but the project itself is not deployed.
That would be because you're using the reactor to run site:deploy in the
subprojects:
> <maven:reactor
> basedir="${basedir}"
> includes="framework/src/project.xml,glcr/webapp/src/project.xml"
> banner="Building site"
> goals="clean,jar:install,site:deploy"
> postProcessing="true"
> ignoreFailures="true"
> />
but you're (defaulting, at least) to running just 'site' in the
top-level project:
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <project
> default="site"
> xmlns:j="jelly:core"
> xmlns:maven="jelly:maven"
Try 'maven site:deploy' from the top level.
-Mark.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org