Sounds a lot like http://jira.codehaus.org/browse/MAVEN-1638

On 9/16/05, Michael Owen <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I've just upgraded from Maven 1.0.2 to Maven 1.1 beta 2, and it is a great
> improvement. Many Thanks. :)
> 
> However, I do have a problem. I have built a custom plugin which has all the
> goals I've built myself, and has preGoal's and postGoal's to already
> existing goals.
> 
> To explain the problem lets take an example. :) I have a postGoal in my
> custom plugin for the goal test:test. This postGoal just copies property
> files from the test source folder to the test classes folder. Please don't
> dwell on why I do this, or whether I can do this a better way - it's just a
> simple example and I do have other postGoal's that are more complicated and
> couldn't be done through the POM etc. :)
> 
> I have noticed that when I'm in an individual project and I run test:test,
> the postGoal gets executed as it should do. However, the problem occurs when
> using the multiproject goal (either a multiproject build or building a
> multiproject site). When I build all my projects using the multiproject
> goal, when it runs test:test in an individual project, as part of
> multiproject goal, it doesn't execute the postGoal for test:test from the
> custom plugin. (Note the same seems to be true for a preGoal in the custom
> plugin)
> 
> Am I doing something wrong and I can fix it or is this a bug? I've got a
> workaround by just putting the postGoal statements actually at the end of
> the test:test goal itself and not defined in a postGoal in the custom
> plugin, however, I don't like this solution as I want to separate my custom
> code from the already existing code.
> 
> Note that I have kept some of the old plugins from Maven 1.0.2 in the Maven
> 1.1 beta 2 (with taking out the newer ones) plugins, just because some old
> plugins have custom code I added that couldn't be put in postGoals/preGoals.
> 
> Many thanks in advance,
> 
> Mike
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to