You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nathan Coast <na...@db.com> on 2007/08/03 18:15:23 UTC
RE: problem setting windows path for surefire tests
Hi Dave,
Thanks for your reply. Unfortunately, we seem to be hitting some other
problem. The mere presence of the <PATH> seems to break the surefire
plugin. Not only does it overwrite the system PATH but it ignores
whatever value we set.
thanks,
Nathan
"Dave Hoffer" <DH...@xrite.com>
30/07/2007 03:15
Please respond to
"Maven Users List" <us...@maven.apache.org>
To
"Maven Users List" <us...@maven.apache.org>
cc
Subject
RE: problem setting windows path for surefire tests
I don't claim to have the best answer but what we have done to run
surefire tests that require native code to be loaded on Windows is:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
<PATH>${basedir}\..;${java.library.path}</PATH>
</environmentVariables>
</configuration>
</plugin>
This was from a child module where the DLL was located at its parent's
folder.
-Dave
-----Original Message-----
From: Nathan Coast [mailto:nathan.coast@db.com]
Sent: Friday, July 27, 2007 12:15 PM
To: users@maven.apache.org
Subject: problem setting windows path for surefire tests
Hi all,
I'm trying to set the windows PATH variable for my test execution. It
seems that including <ENVIRONMENT><PATH> nodes doesn't work correctly.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<environmentVariables>
<PATH>${env.Path}</PATH>
<HOME>${env.HOME}</HOME>
</environmentVariables>
</configuration>
</plugin>
Why not just exclude it then? I currently have to add a value to the
windows path variable to execute certain tests. I would like to avoid
this by modifying the PATH variable at runtime e.g.
<PATH>${env.Path};new_path_var</PATH> thus reducing the amount of
environment setup.
There seems to be a related JIRA:
http://jira.codehaus.org/browse/SUREFIRE-308
Thanks,
Nathan
---
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and delete this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
Please refer to http://www.db.com/en/content/eu_disclosures.htm for
additional EU corporate and regulatory disclosures.
---------------------------------------------------------------------
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
---
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: problem setting windows path for surefire tests
Posted by Wayne Fay <wa...@gmail.com>.
You aren't specifying the surefire version in your <plugin>
declaration. Make sure you specify this somewhere (plugin declaration,
pluginManagement, etc).
Wayne
On 8/3/07, Nathan Coast <na...@db.com> wrote:
> Hi Dave,
>
> Thanks for your reply. Unfortunately, we seem to be hitting some other
> problem. The mere presence of the <PATH> seems to break the surefire
> plugin. Not only does it overwrite the system PATH but it ignores
> whatever value we set.
>
> thanks,
> Nathan
>
>
>
>
> "Dave Hoffer" <DH...@xrite.com>
> 30/07/2007 03:15
> Please respond to
> "Maven Users List" <us...@maven.apache.org>
>
>
> To
> "Maven Users List" <us...@maven.apache.org>
> cc
>
> Subject
> RE: problem setting windows path for surefire tests
>
>
>
>
>
>
> I don't claim to have the best answer but what we have done to run
> surefire tests that require native code to be loaded on Windows is:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <environmentVariables>
> <PATH>${basedir}\..;${java.library.path}</PATH>
> </environmentVariables>
> </configuration>
> </plugin>
>
> This was from a child module where the DLL was located at its parent's
> folder.
>
> -Dave
>
>
>
> -----Original Message-----
> From: Nathan Coast [mailto:nathan.coast@db.com]
> Sent: Friday, July 27, 2007 12:15 PM
> To: users@maven.apache.org
> Subject: problem setting windows path for surefire tests
>
> Hi all,
>
> I'm trying to set the windows PATH variable for my test execution. It
> seems that including <ENVIRONMENT><PATH> nodes doesn't work correctly.
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <environmentVariables>
> <PATH>${env.Path}</PATH>
> <HOME>${env.HOME}</HOME>
> </environmentVariables>
> </configuration>
> </plugin>
>
> Why not just exclude it then? I currently have to add a value to the
> windows path variable to execute certain tests. I would like to avoid
> this by modifying the PATH variable at runtime e.g.
> <PATH>${env.Path};new_path_var</PATH> thus reducing the amount of
> environment setup.
>
> There seems to be a related JIRA:
> http://jira.codehaus.org/browse/SUREFIRE-308
>
> Thanks,
> Nathan
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If
> you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
> additional EU corporate and regulatory disclosures.
>
> ---------------------------------------------------------------------
> 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
>
>
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional EU corporate and regulatory disclosures.
>
> ---------------------------------------------------------------------
> 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: problem setting windows path for surefire tests
Posted by Dan Tran <da...@gmail.com>.
The overwrite system path problem is plexus-utils.
Perhaps you can build the surefire with latest plexus-utils ( 1.4.5) and
verify?
-D
On 8/3/07, Nathan Coast <na...@db.com> wrote:
>
> Hi Dave,
>
> Thanks for your reply. Unfortunately, we seem to be hitting some other
> problem. The mere presence of the <PATH> seems to break the surefire
> plugin. Not only does it overwrite the system PATH but it ignores
> whatever value we set.
>
> thanks,
> Nathan
>
>
>
>
> "Dave Hoffer" <DH...@xrite.com>
> 30/07/2007 03:15
> Please respond to
> "Maven Users List" <us...@maven.apache.org>
>
>
> To
> "Maven Users List" <us...@maven.apache.org>
> cc
>
> Subject
> RE: problem setting windows path for surefire tests
>
>
>
>
>
>
> I don't claim to have the best answer but what we have done to run
> surefire tests that require native code to be loaded on Windows is:
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <environmentVariables>
> <PATH>${basedir}\..;${java.library.path}</PATH>
> </environmentVariables>
> </configuration>
> </plugin>
>
> This was from a child module where the DLL was located at its parent's
> folder.
>
> -Dave
>
>
>
> -----Original Message-----
> From: Nathan Coast [mailto:nathan.coast@db.com]
> Sent: Friday, July 27, 2007 12:15 PM
> To: users@maven.apache.org
> Subject: problem setting windows path for surefire tests
>
> Hi all,
>
> I'm trying to set the windows PATH variable for my test execution. It
> seems that including <ENVIRONMENT><PATH> nodes doesn't work correctly.
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-surefire-plugin</artifactId>
> <configuration>
> <environmentVariables>
> <PATH>${env.Path}</PATH>
> <HOME>${env.HOME}</HOME>
> </environmentVariables>
> </configuration>
> </plugin>
>
> Why not just exclude it then? I currently have to add a value to the
> windows path variable to execute certain tests. I would like to avoid
> this by modifying the PATH variable at runtime e.g.
> <PATH>${env.Path};new_path_var</PATH> thus reducing the amount of
> environment setup.
>
> There seems to be a related JIRA:
> http://jira.codehaus.org/browse/SUREFIRE-308
>
> Thanks,
> Nathan
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If
> you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
> additional EU corporate and regulatory disclosures.
>
> ---------------------------------------------------------------------
> 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
>
>
>
>
> ---
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and delete this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> Please refer to http://www.db.com/en/content/eu_disclosures.htm for
> additional EU corporate and regulatory disclosures.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>