You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mruff <mr...@infometis.ch> on 2004/01/28 13:58:06 UTC

postgoal problem

hi ,
if I run the following maven.xml with
maven
then the postgoal is executed first, I do not have any idea why
I would expect, when I call
maven
that the ctm-buildall goal is executed
If I call maven ctm-generatedocs
first multiproject is executed and then postgoal for ctm-generatedocs
but the behaviour is NOT that way
thanks for help

<?xml version="1.0" encoding="ISO-8859-1"?>
<project default="ctm-buildall" xmlns:m="jelly:maven" 
xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant">

<goal name="ctm-buildall">
    <ant:echo>lusere home: ${user.home}</ant:echo>
    <ant:echo>local repository location: ${maven.repo.local}</ant:echo>   
    <m:reactor basedir="${basedir}"
               includes="**/project.xml"
               excludes="project.xml"
               goals="ctm-distribution"
               banner="Building"
               ignoreFailures="false"/>
</goal>
<goal name="ctm-generatedocs">
    <ant:echo>local repository location: ${maven.repo.local}</ant:echo>
    <attainGoal name="multiproject"/>
</goal>
<postgoal name="ctm-generatedocs">
    <ant:echo>copy from: ${dir.maven.reportssource} to 
${dir.maven.reportswebserverdestination}</ant:echo>
    <ant:delete dir="${dir.maven.reportswebserverdestination}"/>
    <ant:copy todir="${dir.maven.reportswebserverdestination}">
        <ant:fileset dir="${dir.maven.reportssource}"/>   
    </ant:copy>
</postgoal>

</project>


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


Re: postgoal problem

Posted by mruff <mr...@infometis.ch>.
Hi Jefferson,

>Try "postGoal" instead of "postgoal".
>
>  Jeff
>
>  
>
thanks, thats the solution, now it works !!!

>On Wed, 28 Jan 2004, at 13:58:06 [GMT +0100] mruff wrote:
>
>  
>
>>hi ,
>>if I run the following maven.xml with
>>maven
>>then the postgoal is executed first, I do not have any idea why
>>I would expect, when I call
>>maven
>>that the ctm-buildall goal is executed
>>If I call maven ctm-generatedocs
>>first multiproject is executed and then postgoal for ctm-generatedocs
>>but the behaviour is NOT that way
>>thanks for help
>>    
>>
>
>  
>
>><?xml version="1.0" encoding="ISO-8859-1"?>
>><project default="ctm-buildall" xmlns:m="jelly:maven" 
>>xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant">
>>    
>>
>
>  
>
>><goal name="ctm-buildall">
>>    <ant:echo>lusere home: ${user.home}</ant:echo>
>>    <ant:echo>local repository location: ${maven.repo.local}</ant:echo>   
>>    <m:reactor basedir="${basedir}"
>>               includes="**/project.xml"
>>               excludes="project.xml"
>>               goals="ctm-distribution"
>>               banner="Building"
>>               ignoreFailures="false"/>
>></goal>
>><goal name="ctm-generatedocs">
>>    <ant:echo>local repository location: ${maven.repo.local}</ant:echo>
>>    <attainGoal name="multiproject"/>
>></goal>
>><postgoal name="ctm-generatedocs">
>>    <ant:echo>copy from: ${dir.maven.reportssource} to 
>>${dir.maven.reportswebserverdestination}</ant:echo>
>>    <ant:delete dir="${dir.maven.reportswebserverdestination}"/>
>>    <ant:copy todir="${dir.maven.reportswebserverdestination}">
>>        <ant:fileset dir="${dir.maven.reportssource}"/>   
>>    </ant:copy>
>></postgoal>
>>    
>>
>
>  
>
>></project>
>>    
>>
>
>  
>


Re: postgoal problem

Posted by "Jefferson K. French" <je...@frenches.org>.
Try "postGoal" instead of "postgoal".

  Jeff

On Wed, 28 Jan 2004, at 13:58:06 [GMT +0100] mruff wrote:

> hi ,
> if I run the following maven.xml with
> maven
> then the postgoal is executed first, I do not have any idea why
> I would expect, when I call
> maven
> that the ctm-buildall goal is executed
> If I call maven ctm-generatedocs
> first multiproject is executed and then postgoal for ctm-generatedocs
> but the behaviour is NOT that way
> thanks for help

> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project default="ctm-buildall" xmlns:m="jelly:maven" 
> xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:ant="jelly:ant">

> <goal name="ctm-buildall">
>     <ant:echo>lusere home: ${user.home}</ant:echo>
>     <ant:echo>local repository location: ${maven.repo.local}</ant:echo>   
>     <m:reactor basedir="${basedir}"
>                includes="**/project.xml"
>                excludes="project.xml"
>                goals="ctm-distribution"
>                banner="Building"
>                ignoreFailures="false"/>
> </goal>
> <goal name="ctm-generatedocs">
>     <ant:echo>local repository location: ${maven.repo.local}</ant:echo>
>     <attainGoal name="multiproject"/>
> </goal>
> <postgoal name="ctm-generatedocs">
>     <ant:echo>copy from: ${dir.maven.reportssource} to 
> ${dir.maven.reportswebserverdestination}</ant:echo>
>     <ant:delete dir="${dir.maven.reportswebserverdestination}"/>
>     <ant:copy todir="${dir.maven.reportswebserverdestination}">
>         <ant:fileset dir="${dir.maven.reportssource}"/>   
>     </ant:copy>
> </postgoal>

> </project>

-- 
mailto:jeff@frenches.org



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