You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Stephan Merker <St...@cegedim.fr> on 2003/03/12 11:25:48 UTC
Bug in maven:maven tag?
Hello,
I have thwo goals in maven.xml of a project:
<goal name="test1">
<maven:maven descriptor="${basedir}/project.xml" goals="clean"
ignoreFailures="false"/>
</goal>
<goal name="test2" prereqs="clean">
<maven:maven descriptor="${basedir}/project.xml" goals="clean"
ignoreFailures="false"/>
</goal>
The first runs fine but the second fails with the following exception:
E:\tmp\build\avalon>maven test2
__ __
| \/ |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0-beta-8
[echo] Avalon maven.xml loaded
[echo] Plugin java loaded
clean:clean:
clean:
test2:
[echo] Avalon maven.xml loaded
com.werken.werkz.NoActionDefinitionException: Goal [clean] has no action
definit
ion.
at com.werken.werkz.Goal.fire(Goal.java:628)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
383)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:372)
at
org.apache.maven.jelly.tags.maven.MavenTag.doTag(MavenTag.java:117)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
at com.werken.werkz.jelly.GoalTag$1.performAction(GoalTag.java:116)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
383)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:360)
at org.apache.maven.cli.App.doMain(App.java:518)
at org.apache.maven.cli.App.main(App.java:1074)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:543)
at com.werken.forehead.Forehead.main(Forehead.java:573)
BUILD FAILED
Goal [clean] has no action definition.
Total time: 3 seconds
It looks like that plugins that were used in the first maven instance are
somehow dead for the maven instance I'm starting with the maven:maven tag.
The same is true for the reactor.
The problem occurs as well if the goals test1 and test2 are not in maven.xml
but in a plugin.
Any ideas?
Stephan