You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Charles Williams <ch...@itadmins.net> on 2011/04/06 09:28:28 UTC

Disabling phases

hey all,

am currently working on a new archetype for wordpress projects in 
phpmaven. but am not in need of the PHPUnit tests and would like to 
disable them. How would I best go about it?

thanks,
Chuck


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Disabling phases

Posted by Anders Hammar <an...@hammar.net>.
Btw, if you're on your first week of Maven you should probably not be trying
to create an archetype. Start by use Maven for some builds first. If you
don't know Maven, how would you be able to create a good template (a.k.a
archetype) for someone else to use?

/Anders

On Wed, Apr 6, 2011 at 13:00, Charles Williams <ch...@itadmins.net> wrote:

> OK. by deleting apptest.php I got the project to generate the packages as
> well as the new archetype. now I just have to figure out why the generation
> of archetype.xml didn't work.
>
> thanks Anders.
>
> chuck
>
>
> On 04/06/2011 12:23 PM, Charles Williams wrote:
>
>> am still learning atm. just started with maven 2 days ago. have not
>> reached the book section that covers the test/compile phase. ;)
>>
>> will try and see if I can figure out the test phase and just get rid of
>> all tests.
>>
>> thanks.
>>
>> On 04/06/2011 12:19 PM, Anders Hammar wrote:
>>
>>> So it whould be the "phpunit" maven plugin then.
>>> If it has a skip param and it doesn't work - file a bug ticket. If it
>>> doesn't have a skip param - file an enhancement ticket. In both cases a
>>> patch would increase the likelihood of this getting fixed quickly.
>>>
>>> However, why aren't you just removing the test cases? You're writing the
>>> archetype, so you should be in control of that.
>>>
>>> /Anders
>>>
>>> On Wed, Apr 6, 2011 at 12:12, Charles Williams<ch...@itadmins.net>
>>>  wrote:
>>>
>>>  Anders,
>>>>
>>>> Here is the info I posted to the phpmaven google group:
>>>>
>>>> am currently working on a new archetype for wordpress projects and am
>>>> wanting to disable phpunit tests. adding<skip>true</skip>  in the
>>>> configuration of the test phase doesn't seem to do the trick. I still
>>>> get the following error.
>>>>
>>>> chuck@Militia:~/test2/wordpress31$ mvn package
>>>> [INFO] Scanning for projects...
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] Building Wordpress 3.1 project
>>>> [INFO]    task-segment: [package]
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] [plugin:descriptor {execution: default-descriptor}]
>>>> [INFO] [resources:resources {execution: default-resources}]
>>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>>> resources, i.e. build is platform dependent!
>>>> [INFO] skip non existing resourceDirectory /home/chuck/test2/
>>>> wordpress31/src/main/resources
>>>> [INFO] [php:php-validate {execution: default-php-validate}]
>>>> [INFO] [resources:testResources {execution: default-testResources}]
>>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>>> resources, i.e. build is platform dependent!
>>>> [INFO] skip non existing resourceDirectory /home/chuck/test2/
>>>> wordpress31/src/test/resources
>>>> [INFO] [php:phpunit {execution: default-phpunit}]
>>>> [INFO] Surefire report directory: /home/chuck/test2/wordpress31/target/
>>>> surefire-reports
>>>>
>>>> -------------------------------------------------------
>>>> T E S T S
>>>> -------------------------------------------------------
>>>> [ERROR] Testcase: apptest.php fails.
>>>> [ERROR] See log: /home/chuck/test2/wordpress31/target/surefire-reports/
>>>> apptest.txt
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [ERROR] BUILD ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO]
>>>> PHP Warning:  require_once(PHPUnit/TextUI/TestRunner.php): failed to
>>>> open stream: No such file or directory in /home/chuck/test2/
>>>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5PHP Fatal
>>>> error:  require_once(): Failed opening required 'PHPUnit/TextUI/
>>>> TestRunner.php' (include_path=':/home/chuck/test2/wordpress31/src/main/
>>>> php:/home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
>>>> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
>>>> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
>>>> chuck/test2/wordpress31/target/classes:') in /home/chuck/test2/
>>>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5 in
>>>> File:
>>>>  /home/chuck/test2/wordpress31/src/test/php/net/itadmins/apptest.php
>>>> Command:
>>>>  php -d include_path=":/home/chuck/test2/wordpress31/src/main/php:/
>>>> home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
>>>> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
>>>> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
>>>> chuck/test2/wordpress31/target/classes:" "/home/chuck/test2/
>>>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php" "/home/chuck/test2/
>>>> wordpress31/src/test/php/net/itadmins/apptest.php" "/home/chuck/test2/
>>>> wordpress31/target/surefire-reports/apptest.xml"+
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] For more information, run Maven with the -e switch
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>> [INFO] Total time: 4 seconds
>>>> [INFO] Finished at: Wed Apr 06 11:53:28 CEST 2011
>>>> [INFO] Final Memory: 17M/189M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On 04/06/2011 11:08 AM, Anders Hammar wrote:
>>>>
>>>>  WHat plugin is that?
>>>>>
>>>>> /Anders
>>>>>
>>>>> On Wed, Apr 6, 2011 at 10:43, Charles Williams<ch...@itadmins.net>
>>>>>  wrote:
>>>>>
>>>>>  that's the problem. I have found a few examples but none of them work.
>>>>>
>>>>>> even
>>>>>> <skip>true</skip>   in the<configuration>   block for the plugin has
>>>>>> no
>>>>>> effect.
>>>>>>
>>>>>>
>>>>>> On 04/06/2011 10:37 AM, Anders Hammar wrote:
>>>>>>
>>>>>>  Just remove the unit tests?
>>>>>>
>>>>>>> And to clarify a maven topic wrt your subject, you cannot disable a
>>>>>>> phase.
>>>>>>> However, you can disable a plugin bound to a phase, which could also
>>>>>>> be
>>>>>>> the
>>>>>>> solution to your questions (although simply remove the tests would be
>>>>>>> better
>>>>>>> I think as it would then allow for the user to add tests should
>>>>>>> he/she
>>>>>>> like
>>>>>>> to).
>>>>>>>
>>>>>>> /Anders
>>>>>>> On Wed, Apr 6, 2011 at 09:28, Charles Williams<ch...@itadmins.net>
>>>>>>>  wrote:
>>>>>>>
>>>>>>>  hey all,
>>>>>>>
>>>>>>>  am currently working on a new archetype for wordpress projects in
>>>>>>>> phpmaven.
>>>>>>>> but am not in need of the PHPUnit tests and would like to disable
>>>>>>>> them.
>>>>>>>> How
>>>>>>>> would I best go about it?
>>>>>>>>
>>>>>>>> thanks,
>>>>>>>> Chuck
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Disabling phases

Posted by Charles Williams <ch...@itadmins.net>.
OK. by deleting apptest.php I got the project to generate the packages 
as well as the new archetype. now I just have to figure out why the 
generation of archetype.xml didn't work.

thanks Anders.

chuck

On 04/06/2011 12:23 PM, Charles Williams wrote:
> am still learning atm. just started with maven 2 days ago. have not 
> reached the book section that covers the test/compile phase. ;)
>
> will try and see if I can figure out the test phase and just get rid 
> of all tests.
>
> thanks.
>
> On 04/06/2011 12:19 PM, Anders Hammar wrote:
>> So it whould be the "phpunit" maven plugin then.
>> If it has a skip param and it doesn't work - file a bug ticket. If it
>> doesn't have a skip param - file an enhancement ticket. In both cases a
>> patch would increase the likelihood of this getting fixed quickly.
>>
>> However, why aren't you just removing the test cases? You're writing the
>> archetype, so you should be in control of that.
>>
>> /Anders
>>
>> On Wed, Apr 6, 2011 at 12:12, Charles Williams<ch...@itadmins.net>  
>> wrote:
>>
>>> Anders,
>>>
>>> Here is the info I posted to the phpmaven google group:
>>>
>>> am currently working on a new archetype for wordpress projects and am
>>> wanting to disable phpunit tests. adding<skip>true</skip>  in the
>>> configuration of the test phase doesn't seem to do the trick. I still
>>> get the following error.
>>>
>>> chuck@Militia:~/test2/wordpress31$ mvn package
>>> [INFO] Scanning for projects...
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] Building Wordpress 3.1 project
>>> [INFO]    task-segment: [package]
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] [plugin:descriptor {execution: default-descriptor}]
>>> [INFO] [resources:resources {execution: default-resources}]
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> [INFO] skip non existing resourceDirectory /home/chuck/test2/
>>> wordpress31/src/main/resources
>>> [INFO] [php:php-validate {execution: default-php-validate}]
>>> [INFO] [resources:testResources {execution: default-testResources}]
>>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>>> resources, i.e. build is platform dependent!
>>> [INFO] skip non existing resourceDirectory /home/chuck/test2/
>>> wordpress31/src/test/resources
>>> [INFO] [php:phpunit {execution: default-phpunit}]
>>> [INFO] Surefire report directory: /home/chuck/test2/wordpress31/target/
>>> surefire-reports
>>>
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> [ERROR] Testcase: apptest.php fails.
>>> [ERROR] See log: /home/chuck/test2/wordpress31/target/surefire-reports/
>>> apptest.txt
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO]
>>> PHP Warning:  require_once(PHPUnit/TextUI/TestRunner.php): failed to
>>> open stream: No such file or directory in /home/chuck/test2/
>>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5PHP Fatal
>>> error:  require_once(): Failed opening required 'PHPUnit/TextUI/
>>> TestRunner.php' (include_path=':/home/chuck/test2/wordpress31/src/main/
>>> php:/home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
>>> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
>>> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
>>> chuck/test2/wordpress31/target/classes:') in /home/chuck/test2/
>>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5 in
>>> File:
>>>   /home/chuck/test2/wordpress31/src/test/php/net/itadmins/apptest.php
>>> Command:
>>>   php -d include_path=":/home/chuck/test2/wordpress31/src/main/php:/
>>> home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
>>> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
>>> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
>>> chuck/test2/wordpress31/target/classes:" "/home/chuck/test2/
>>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php" "/home/chuck/test2/
>>> wordpress31/src/test/php/net/itadmins/apptest.php" "/home/chuck/test2/
>>> wordpress31/target/surefire-reports/apptest.xml"+
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>> [INFO] Total time: 4 seconds
>>> [INFO] Finished at: Wed Apr 06 11:53:28 CEST 2011
>>> [INFO] Final Memory: 17M/189M
>>> [INFO]
>>> ------------------------------------------------------------------------ 
>>>
>>>
>>>
>>>
>>>
>>> On 04/06/2011 11:08 AM, Anders Hammar wrote:
>>>
>>>> WHat plugin is that?
>>>>
>>>> /Anders
>>>>
>>>> On Wed, Apr 6, 2011 at 10:43, Charles Williams<ch...@itadmins.net>
>>>>   wrote:
>>>>
>>>>   that's the problem. I have found a few examples but none of them 
>>>> work.
>>>>> even
>>>>> <skip>true</skip>   in the<configuration>   block for the plugin 
>>>>> has no
>>>>> effect.
>>>>>
>>>>>
>>>>> On 04/06/2011 10:37 AM, Anders Hammar wrote:
>>>>>
>>>>>   Just remove the unit tests?
>>>>>> And to clarify a maven topic wrt your subject, you cannot disable a
>>>>>> phase.
>>>>>> However, you can disable a plugin bound to a phase, which could 
>>>>>> also be
>>>>>> the
>>>>>> solution to your questions (although simply remove the tests 
>>>>>> would be
>>>>>> better
>>>>>> I think as it would then allow for the user to add tests should 
>>>>>> he/she
>>>>>> like
>>>>>> to).
>>>>>>
>>>>>> /Anders
>>>>>> On Wed, Apr 6, 2011 at 09:28, Charles Williams<ch...@itadmins.net>
>>>>>>   wrote:
>>>>>>
>>>>>>   hey all,
>>>>>>
>>>>>>> am currently working on a new archetype for wordpress projects in
>>>>>>> phpmaven.
>>>>>>> but am not in need of the PHPUnit tests and would like to 
>>>>>>> disable them.
>>>>>>> How
>>>>>>> would I best go about it?
>>>>>>>
>>>>>>> thanks,
>>>>>>> Chuck
>>>>>>>
>>>>>>>
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> 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
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Disabling phases

Posted by Charles Williams <ch...@itadmins.net>.
am still learning atm. just started with maven 2 days ago. have not 
reached the book section that covers the test/compile phase. ;)

will try and see if I can figure out the test phase and just get rid of 
all tests.

thanks.

On 04/06/2011 12:19 PM, Anders Hammar wrote:
> So it whould be the "phpunit" maven plugin then.
> If it has a skip param and it doesn't work - file a bug ticket. If it
> doesn't have a skip param - file an enhancement ticket. In both cases a
> patch would increase the likelihood of this getting fixed quickly.
>
> However, why aren't you just removing the test cases? You're writing the
> archetype, so you should be in control of that.
>
> /Anders
>
> On Wed, Apr 6, 2011 at 12:12, Charles Williams<ch...@itadmins.net>  wrote:
>
>> Anders,
>>
>> Here is the info I posted to the phpmaven google group:
>>
>> am currently working on a new archetype for wordpress projects and am
>> wanting to disable phpunit tests. adding<skip>true</skip>  in the
>> configuration of the test phase doesn't seem to do the trick. I still
>> get the following error.
>>
>> chuck@Militia:~/test2/wordpress31$ mvn package
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Wordpress 3.1 project
>> [INFO]    task-segment: [package]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [plugin:descriptor {execution: default-descriptor}]
>> [INFO] [resources:resources {execution: default-resources}]
>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] skip non existing resourceDirectory /home/chuck/test2/
>> wordpress31/src/main/resources
>> [INFO] [php:php-validate {execution: default-php-validate}]
>> [INFO] [resources:testResources {execution: default-testResources}]
>> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
>> resources, i.e. build is platform dependent!
>> [INFO] skip non existing resourceDirectory /home/chuck/test2/
>> wordpress31/src/test/resources
>> [INFO] [php:phpunit {execution: default-phpunit}]
>> [INFO] Surefire report directory: /home/chuck/test2/wordpress31/target/
>> surefire-reports
>>
>> -------------------------------------------------------
>> T E S T S
>> -------------------------------------------------------
>> [ERROR] Testcase: apptest.php fails.
>> [ERROR] See log: /home/chuck/test2/wordpress31/target/surefire-reports/
>> apptest.txt
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO]
>> PHP Warning:  require_once(PHPUnit/TextUI/TestRunner.php): failed to
>> open stream: No such file or directory in /home/chuck/test2/
>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5PHP Fatal
>> error:  require_once(): Failed opening required 'PHPUnit/TextUI/
>> TestRunner.php' (include_path=':/home/chuck/test2/wordpress31/src/main/
>> php:/home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
>> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
>> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
>> chuck/test2/wordpress31/target/classes:') in /home/chuck/test2/
>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5 in
>> File:
>>   /home/chuck/test2/wordpress31/src/test/php/net/itadmins/apptest.php
>> Command:
>>   php -d include_path=":/home/chuck/test2/wordpress31/src/main/php:/
>> home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
>> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
>> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
>> chuck/test2/wordpress31/target/classes:" "/home/chuck/test2/
>> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php" "/home/chuck/test2/
>> wordpress31/src/test/php/net/itadmins/apptest.php" "/home/chuck/test2/
>> wordpress31/target/surefire-reports/apptest.xml"+
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 4 seconds
>> [INFO] Finished at: Wed Apr 06 11:53:28 CEST 2011
>> [INFO] Final Memory: 17M/189M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>> On 04/06/2011 11:08 AM, Anders Hammar wrote:
>>
>>> WHat plugin is that?
>>>
>>> /Anders
>>>
>>> On Wed, Apr 6, 2011 at 10:43, Charles Williams<ch...@itadmins.net>
>>>   wrote:
>>>
>>>   that's the problem. I have found a few examples but none of them work.
>>>> even
>>>> <skip>true</skip>   in the<configuration>   block for the plugin has no
>>>> effect.
>>>>
>>>>
>>>> On 04/06/2011 10:37 AM, Anders Hammar wrote:
>>>>
>>>>   Just remove the unit tests?
>>>>> And to clarify a maven topic wrt your subject, you cannot disable a
>>>>> phase.
>>>>> However, you can disable a plugin bound to a phase, which could also be
>>>>> the
>>>>> solution to your questions (although simply remove the tests would be
>>>>> better
>>>>> I think as it would then allow for the user to add tests should he/she
>>>>> like
>>>>> to).
>>>>>
>>>>> /Anders
>>>>> On Wed, Apr 6, 2011 at 09:28, Charles Williams<ch...@itadmins.net>
>>>>>   wrote:
>>>>>
>>>>>   hey all,
>>>>>
>>>>>> am currently working on a new archetype for wordpress projects in
>>>>>> phpmaven.
>>>>>> but am not in need of the PHPUnit tests and would like to disable them.
>>>>>> How
>>>>>> would I best go about it?
>>>>>>
>>>>>> thanks,
>>>>>> Chuck
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> 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: Disabling phases

Posted by Anders Hammar <an...@hammar.net>.
So it whould be the "phpunit" maven plugin then.
If it has a skip param and it doesn't work - file a bug ticket. If it
doesn't have a skip param - file an enhancement ticket. In both cases a
patch would increase the likelihood of this getting fixed quickly.

However, why aren't you just removing the test cases? You're writing the
archetype, so you should be in control of that.

/Anders

On Wed, Apr 6, 2011 at 12:12, Charles Williams <ch...@itadmins.net> wrote:

> Anders,
>
> Here is the info I posted to the phpmaven google group:
>
> am currently working on a new archetype for wordpress projects and am
> wanting to disable phpunit tests. adding <skip>true</skip> in the
> configuration of the test phase doesn't seem to do the trick. I still
> get the following error.
>
> chuck@Militia:~/test2/wordpress31$ mvn package
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Wordpress 3.1 project
> [INFO]    task-segment: [package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [plugin:descriptor {execution: default-descriptor}]
> [INFO] [resources:resources {execution: default-resources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/chuck/test2/
> wordpress31/src/main/resources
> [INFO] [php:php-validate {execution: default-php-validate}]
> [INFO] [resources:testResources {execution: default-testResources}]
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/chuck/test2/
> wordpress31/src/test/resources
> [INFO] [php:phpunit {execution: default-phpunit}]
> [INFO] Surefire report directory: /home/chuck/test2/wordpress31/target/
> surefire-reports
>
> -------------------------------------------------------
> T E S T S
> -------------------------------------------------------
> [ERROR] Testcase: apptest.php fails.
> [ERROR] See log: /home/chuck/test2/wordpress31/target/surefire-reports/
> apptest.txt
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> PHP Warning:  require_once(PHPUnit/TextUI/TestRunner.php): failed to
> open stream: No such file or directory in /home/chuck/test2/
> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5PHP Fatal
> error:  require_once(): Failed opening required 'PHPUnit/TextUI/
> TestRunner.php' (include_path=':/home/chuck/test2/wordpress31/src/main/
> php:/home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
> chuck/test2/wordpress31/target/classes:') in /home/chuck/test2/
> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5 in
> File:
>  /home/chuck/test2/wordpress31/src/test/php/net/itadmins/apptest.php
> Command:
>  php -d include_path=":/home/chuck/test2/wordpress31/src/main/php:/
> home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
> wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
> net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
> chuck/test2/wordpress31/target/classes:" "/home/chuck/test2/
> wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php" "/home/chuck/test2/
> wordpress31/src/test/php/net/itadmins/apptest.php" "/home/chuck/test2/
> wordpress31/target/surefire-reports/apptest.xml"+
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Wed Apr 06 11:53:28 CEST 2011
> [INFO] Final Memory: 17M/189M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
> On 04/06/2011 11:08 AM, Anders Hammar wrote:
>
>> WHat plugin is that?
>>
>> /Anders
>>
>> On Wed, Apr 6, 2011 at 10:43, Charles Williams<ch...@itadmins.net>
>>  wrote:
>>
>>  that's the problem. I have found a few examples but none of them work.
>>> even
>>> <skip>true</skip>  in the<configuration>  block for the plugin has no
>>> effect.
>>>
>>>
>>> On 04/06/2011 10:37 AM, Anders Hammar wrote:
>>>
>>>  Just remove the unit tests?
>>>>
>>>> And to clarify a maven topic wrt your subject, you cannot disable a
>>>> phase.
>>>> However, you can disable a plugin bound to a phase, which could also be
>>>> the
>>>> solution to your questions (although simply remove the tests would be
>>>> better
>>>> I think as it would then allow for the user to add tests should he/she
>>>> like
>>>> to).
>>>>
>>>> /Anders
>>>> On Wed, Apr 6, 2011 at 09:28, Charles Williams<ch...@itadmins.net>
>>>>  wrote:
>>>>
>>>>  hey all,
>>>>
>>>>> am currently working on a new archetype for wordpress projects in
>>>>> phpmaven.
>>>>> but am not in need of the PHPUnit tests and would like to disable them.
>>>>> How
>>>>> would I best go about it?
>>>>>
>>>>> thanks,
>>>>> Chuck
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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: Disabling phases

Posted by Charles Williams <ch...@itadmins.net>.
Anders,

Here is the info I posted to the phpmaven google group:

am currently working on a new archetype for wordpress projects and am
wanting to disable phpunit tests. adding <skip>true</skip> in the
configuration of the test phase doesn't seem to do the trick. I still
get the following error.

chuck@Militia:~/test2/wordpress31$ mvn package
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Wordpress 3.1 project
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [plugin:descriptor {execution: default-descriptor}]
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/chuck/test2/
wordpress31/src/main/resources
[INFO] [php:php-validate {execution: default-php-validate}]
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/chuck/test2/
wordpress31/src/test/resources
[INFO] [php:phpunit {execution: default-phpunit}]
[INFO] Surefire report directory: /home/chuck/test2/wordpress31/target/
surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
[ERROR] Testcase: apptest.php fails.
[ERROR] See log: /home/chuck/test2/wordpress31/target/surefire-reports/
apptest.txt
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO]
PHP Warning:  require_once(PHPUnit/TextUI/TestRunner.php): failed to
open stream: No such file or directory in /home/chuck/test2/
wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5PHP Fatal
error:  require_once(): Failed opening required 'PHPUnit/TextUI/
TestRunner.php' (include_path=':/home/chuck/test2/wordpress31/src/main/
php:/home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
chuck/test2/wordpress31/target/classes:') in /home/chuck/test2/
wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php on line 5 in
File:
  /home/chuck/test2/wordpress31/src/test/php/net/itadmins/apptest.php
Command:
  php -d include_path=":/home/chuck/test2/wordpress31/src/main/php:/
home/chuck/test2/wordpress31//src/test/php:/home/chuck/test2/
wordpress31/target/phpinc:/home/chuck/test2/wordpress31/src/test/php/
net/itadmins:/home/chuck/test2/wordpress31/target/test-classes:/home/
chuck/test2/wordpress31/target/classes:" "/home/chuck/test2/
wordpress31/target/phpinc/PHPUnit/TextUI/Maven.php" "/home/chuck/test2/
wordpress31/src/test/php/net/itadmins/apptest.php" "/home/chuck/test2/
wordpress31/target/surefire-reports/apptest.xml"+

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Apr 06 11:53:28 CEST 2011
[INFO] Final Memory: 17M/189M
[INFO]
------------------------------------------------------------------------



On 04/06/2011 11:08 AM, Anders Hammar wrote:
> WHat plugin is that?
>
> /Anders
>
> On Wed, Apr 6, 2011 at 10:43, Charles Williams<ch...@itadmins.net>  wrote:
>
>> that's the problem. I have found a few examples but none of them work. even
>> <skip>true</skip>  in the<configuration>  block for the plugin has no effect.
>>
>>
>> On 04/06/2011 10:37 AM, Anders Hammar wrote:
>>
>>> Just remove the unit tests?
>>>
>>> And to clarify a maven topic wrt your subject, you cannot disable a phase.
>>> However, you can disable a plugin bound to a phase, which could also be
>>> the
>>> solution to your questions (although simply remove the tests would be
>>> better
>>> I think as it would then allow for the user to add tests should he/she
>>> like
>>> to).
>>>
>>> /Anders
>>> On Wed, Apr 6, 2011 at 09:28, Charles Williams<ch...@itadmins.net>
>>>   wrote:
>>>
>>>   hey all,
>>>> am currently working on a new archetype for wordpress projects in
>>>> phpmaven.
>>>> but am not in need of the PHPUnit tests and would like to disable them.
>>>> How
>>>> would I best go about it?
>>>>
>>>> thanks,
>>>> Chuck
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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: Disabling phases

Posted by Anders Hammar <an...@hammar.net>.
WHat plugin is that?

/Anders

On Wed, Apr 6, 2011 at 10:43, Charles Williams <ch...@itadmins.net> wrote:

> that's the problem. I have found a few examples but none of them work. even
> <skip>true</skip> in the <configuration> block for the plugin has no effect.
>
>
> On 04/06/2011 10:37 AM, Anders Hammar wrote:
>
>> Just remove the unit tests?
>>
>> And to clarify a maven topic wrt your subject, you cannot disable a phase.
>> However, you can disable a plugin bound to a phase, which could also be
>> the
>> solution to your questions (although simply remove the tests would be
>> better
>> I think as it would then allow for the user to add tests should he/she
>> like
>> to).
>>
>> /Anders
>> On Wed, Apr 6, 2011 at 09:28, Charles Williams<ch...@itadmins.net>
>>  wrote:
>>
>>  hey all,
>>>
>>> am currently working on a new archetype for wordpress projects in
>>> phpmaven.
>>> but am not in need of the PHPUnit tests and would like to disable them.
>>> How
>>> would I best go about it?
>>>
>>> thanks,
>>> Chuck
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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: Disabling phases

Posted by Charles Williams <ch...@itadmins.net>.
that's the problem. I have found a few examples but none of them work. 
even <skip>true</skip> in the <configuration> block for the plugin has 
no effect.

On 04/06/2011 10:37 AM, Anders Hammar wrote:
> Just remove the unit tests?
>
> And to clarify a maven topic wrt your subject, you cannot disable a phase.
> However, you can disable a plugin bound to a phase, which could also be the
> solution to your questions (although simply remove the tests would be better
> I think as it would then allow for the user to add tests should he/she like
> to).
>
> /Anders
> On Wed, Apr 6, 2011 at 09:28, Charles Williams<ch...@itadmins.net>  wrote:
>
>> hey all,
>>
>> am currently working on a new archetype for wordpress projects in phpmaven.
>> but am not in need of the PHPUnit tests and would like to disable them. How
>> would I best go about it?
>>
>> thanks,
>> Chuck
>>
>>
>> ---------------------------------------------------------------------
>> 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: Disabling phases

Posted by Anders Hammar <an...@hammar.net>.
Just remove the unit tests?

And to clarify a maven topic wrt your subject, you cannot disable a phase.
However, you can disable a plugin bound to a phase, which could also be the
solution to your questions (although simply remove the tests would be better
I think as it would then allow for the user to add tests should he/she like
to).

/Anders
On Wed, Apr 6, 2011 at 09:28, Charles Williams <ch...@itadmins.net> wrote:

> hey all,
>
> am currently working on a new archetype for wordpress projects in phpmaven.
> but am not in need of the PHPUnit tests and would like to disable them. How
> would I best go about it?
>
> thanks,
> Chuck
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>