You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Willie Vu <ct...@ust.hk> on 2003/04/17 04:10:12 UTC
Reactor problem
I've a scenario like this. I've a main project that has 2 components. In its
maven.xml,
<goal name="clean-tests">
<maven:reactor
basedir="${basedir}/post-build-test"
includes="*/test-project.xml"
goals="clean"
banner="Building"
ignoreFailures="false"
/>
</goal>
<postGoal name="clean">
<attainGoal name="clean-tests"/>
<!-- Clean up JBoss server configuration -->
<delete
dir="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
</postGoal>
When I run clean-tests only, it works fine. However, when I run clean, the 2
components' clean are run first, then the first component's clean is run AGAIN,
and then I got an error:
null:17:5: <maven:reactor> Unknown goal "clean"
Any idea?
--
Willie Vu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Reactor problem
Posted by Willie Vu <ct...@ust.hk>.
I created a sample, as attached. The problem I encounter in the sample is
different. When I run clean, I got
null:17:5: <maven:reactor> Unable to obtain goal [clean] -- null:21:35:
<attainGoal> null:17:5: <maven:reactor
> error getting projects
I also attached the log file.
--
Willie Vu
> -----Original Message-----
> From: Willie Vu [mailto:ctwillie@ust.hk]
> Sent: Thursday, April 17, 2003 10:10
> To: users@maven.apache.org
> Subject: Reactor problem
>
>
> I've a scenario like this. I've a main project that has 2
> components. In its maven.xml,
>
> <goal name="clean-tests">
> <maven:reactor
> basedir="${basedir}/post-build-test"
> includes="*/test-project.xml"
> goals="clean"
> banner="Building"
> ignoreFailures="false"
> />
> </goal>
>
> <postGoal name="clean">
> <attainGoal name="clean-tests"/>
> <!-- Clean up JBoss server configuration -->
> <delete
> dir="${maven.jboss.build.dir}/${maven.jboss.conf.name}"/>
> </postGoal>
>
> When I run clean-tests only, it works fine. However, when I
> run clean, the 2 components' clean are run first, then the
> first component's clean is run AGAIN, and then I got an error:
>
> null:17:5: <maven:reactor> Unknown goal "clean"
>
> Any idea?
>
> --
> Willie Vu
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>