You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marco Tedone <mt...@jemos.org> on 2004/03/17 00:34:43 UTC
Difference in behaviour with preGoal or attainGoal
Hi, I defined the following goal in my project-specific plugin:
<goal name="jemos:xdoclet-ejbdoclet" >
<ejbdoclet...
bla...bla...bla...
</goal>
I then defined in my project's maven.xml a simple goal:
<goal name="xdoclet-ejbdoclet">
<attainGoal name="jemos:xdoclet-ejbdoclet" />
</goal>
If I run the following command from my project's root directory:
maven xdoclet-ejbdoclet
The ejbdoclet target defined in my plugin works fine, and the EJBs
interfaces get generated.
However, if I insert the following in my project's maven.xml:
<preGoal name="java:compile">
<attainGoal name="xdoclet-ejbdoclet" />
</preGoal>
I obtain the following error:
BUILD FAILED
File...... file:/C:/Documents and
Settings/mtedone/.maven/plugins/maven-jemos-plugin-1.0/
Element... maven:reactor
Line...... 405
Column.... 30
Unable to obtain goal [driver] --
file:/D:/Projects/jemos-xmlop-1.0/src/:49:50: <attainGoal> No goal
[jemos:xdoclet
-ejbdoclet]
Total time: 5 seconds
Finished at: Tue Mar 16 23:28:46 GMT 2004
There is obviously a difference in behaviour. It would seem that when
inserted as a preGoal, my plugin is not considered.
Could anyone help?
Marco
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org