You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Thomas Marti (HSR)" <tm...@hsr.ch> on 2006/06/06 23:30:44 UTC
Workaround for MNG-1508 (process-test-classes phaseis missing)?
Hello everyone
Is there a workaround for this limitation =>
http://jira.codehaus.org/browse/MNG-1508 ??
We really need a solution now and cannot wait for the release of Maven
2.0.5... Any solution is ok, even if it's just a temporary hack.
Thanks in advance.
Bye, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Workaround for MNG-1508 (process-test-classes phaseis missing)?
Posted by "Thomas Marti (HSR)" <tm...@hsr.ch>.
Please, anyone?
We really need some kind of solution for this. How can we specify a
phase that is executed *after* test-compile, but *before* the tests are
run??
Bye, Thomas
Thomas Marti (HSR) schrieb:
> Hello everyone
>
> Is there a workaround for this limitation =>
> http://jira.codehaus.org/browse/MNG-1508 ??
>
> We really need a solution now and cannot wait for the release of Maven
> 2.0.5... Any solution is ok, even if it's just a temporary hack.
>
>
> Thanks in advance.
>
>
> Bye, Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Re: Workaround for MNG-1508 (process-test-classes phaseis missing)?
Posted by Thomas Marti <th...@schweiz.ch>.
Hello Roland & Edwin
I think I found the problem!
We have an empty super project with several modules/sub-projects. Now I
configured the antrun-plugin with <inherited>false</inherited> and
<phase>test-compile</phase> and expected it to run after all
sub-projects have compiled their test-sources. But that isn't the case!
The order is like this:
----------------------
'super project'
...
test-compile
ant-run
test
module1
...
test-compile
test
...
----------------------
We expected it to be:
----------------------
'super project'
test-compile
module1
test-compile
'super project'
ant-run
test
module1
test
...
----------------------
Hope this helps someone else someday, who has the same problem! We
solved the problem with configuring the antrun-plugin with
<inherited>true</inherited> and now the ant-script is called for every
sub-project.
Thanks anyway!
Bye, Thomas
Edwin Punzalan schrieb:
> Roland is right. You can bind your plugin to the test-compile phase,
> and your plugin will run LAST during the test-compile phase. So it
> would look like your running the plugin after the other test-compile
> plugins yet its before the test phase.
>
>
> ^_^
>
>
> Roland Asmann wrote:
>> Hi Thomas,
>>
>> Every plugin you 'attach' to a certain phase, gets run AFTER the
>> default plugins for that phase are run.
>> If you want multiple plugins to run, the order of defining them is the
>> order in which they run (respecting
>> the default as the very first to run).
>> In your case, I suggest you attach your plugin to the
>> 'test-compile'-phase, since you already said
>> yourself you want it to run AFTER compiling, but BEFORE testing...
>>
>> And forget about writing your own plugins, just stick with antrun,
>> it'll do the trick for you!
>>
>> Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Workaround for MNG-1508 (process-test-classes phaseis missing)?
Posted by Edwin Punzalan <ep...@exist.com>.
Roland is right. You can bind your plugin to the test-compile phase,
and your plugin will run LAST during the test-compile phase. So it
would look like your running the plugin after the other test-compile
plugins yet its before the test phase.
^_^
Roland Asmann wrote:
> Hi Thomas,
>
> Every plugin you 'attach' to a certain phase, gets run AFTER the default plugins for that phase are run.
> If you want multiple plugins to run, the order of defining them is the order in which they run (respecting
> the default as the very first to run).
> In your case, I suggest you attach your plugin to the 'test-compile'-phase, since you already said
> yourself you want it to run AFTER compiling, but BEFORE testing...
>
> And forget about writing your own plugins, just stick with antrun, it'll do the trick for you!
>
> Roland
>
>
>
> On Thursday 08 June 2006 09:59, Thomas Marti wrote:
>
>> Hallo Edwin
>>
>> Thanks for you response. We want to run an ANT-Script with the
>> maven-antrun-plugin. Which <phase> do we have to specify in the
>> <execution>-tag, so that it runs after test-compile, but before the
>> tests are run??
>>
>>
>> Thanks and bye,
>> Thomas
>>
>> Edwin Punzalan schrieb:
>>
>>> What is your use case?
>>>
>>> If your plugin needs to run after the test phase but you don't want to
>>> run the package phase, then you can fork the lifecycle and use:
>>>
>>> @execute phase="test"
>>>
>>> for more info, please see:
>>> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle
>>> .html
>>>
>>>
>>>
>>> Hope that helps.
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Re: Workaround for MNG-1508 (process-test-classes phaseis missing)?
Posted by Roland Asmann <Ro...@cfc.at>.
Hi Thomas,
Every plugin you 'attach' to a certain phase, gets run AFTER the default plugins for that phase are run.
If you want multiple plugins to run, the order of defining them is the order in which they run (respecting
the default as the very first to run).
In your case, I suggest you attach your plugin to the 'test-compile'-phase, since you already said
yourself you want it to run AFTER compiling, but BEFORE testing...
And forget about writing your own plugins, just stick with antrun, it'll do the trick for you!
Roland
On Thursday 08 June 2006 09:59, Thomas Marti wrote:
> Hallo Edwin
>
> Thanks for you response. We want to run an ANT-Script with the
> maven-antrun-plugin. Which <phase> do we have to specify in the
> <execution>-tag, so that it runs after test-compile, but before the
> tests are run??
>
>
> Thanks and bye,
> Thomas
>
> Edwin Punzalan schrieb:
> > What is your use case?
> >
> > If your plugin needs to run after the test phase but you don't want to
> > run the package phase, then you can fork the lifecycle and use:
> >
> > @execute phase="test"
> >
> > for more info, please see:
> > http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle
> >.html
> >
> >
> >
> > Hope that helps.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Re: Workaround for MNG-1508 (process-test-classes phaseis missing)?
Posted by Thomas Marti <th...@schweiz.ch>.
Hallo Edwin
Thanks for you response. We want to run an ANT-Script with the
maven-antrun-plugin. Which <phase> do we have to specify in the
<execution>-tag, so that it runs after test-compile, but before the
tests are run??
Thanks and bye,
Thomas
Edwin Punzalan schrieb:
> What is your use case?
>
> If your plugin needs to run after the test phase but you don't want to
> run the package phase, then you can fork the lifecycle and use:
>
> @execute phase="test"
>
> for more info, please see:
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
>
>
>
> Hope that helps.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Workaround for MNG-1508 (process-test-classes phaseis missing)?
Posted by Edwin Punzalan <ep...@exist.com>.
What is your use case?
If your plugin needs to run after the test phase but you don't want to
run the package phase, then you can fork the lifecycle and use:
@execute phase="test"
for more info, please see:
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Hope that helps.
^_^
Thomas Marti (HSR) wrote:
> Hello everyone
>
> Is there a workaround for this limitation =>
> http://jira.codehaus.org/browse/MNG-1508 ??
>
> We really need a solution now and cannot wait for the release of Maven
> 2.0.5... Any solution is ok, even if it's just a temporary hack.
>
>
> Thanks in advance.
>
>
> Bye, Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org