Passing "testnames" to testng using the maven surefire plugin

2010-09-14 Thread Balasubramanian, Ravi Shankar
Hi all, TestNG accepts a command line argument called "testnames" that specifies the name of the tests from the testing.xml to be executed. (http://testng.org/doc/documentation-main.html) Currently, I have a requirement to control which tests are to be executed from a testing.xml file when e

Which phase does a plugin's goal execute ?

2009-03-11 Thread Balasubramanian, Ravi Shankar
Hi all, I am executing a plugin's goal directly through the maven command. It is executed as follows: mvn clover2:setup ( which executes the setup goal of the clover2 plugin) However, I want another plugin's goal to be executed before the clover2:setup goal is executed which I have to men

Default versions of the plugins downloaded

2008-08-04 Thread Balasubramanian, Ravi Shankar
Hi all, When we dont specify the version of a plugin to be downloaded in our pom, does maven default to the latest version of the plugin that is available ? Precisely, i am using the maven surefire plugin in my projects and want to know if the latest will be downloaded if i dont specify the versio

Eclipse:eclipse additional configs

2008-07-18 Thread Balasubramanian, Ravi Shankar
Hi all, I am creating eclipse projects using the maven eclipse plugin. However, i need to add an additional linked resource to the project that the plugin creates. Is there a way to do this ? To be specific, i want the following to be added to all the eclipse projects that the plugin creates: (und

RE: Iterating through the build based on activated profiles

2008-07-17 Thread Balasubramanian, Ravi Shankar
execution-level configuration blocks that pass in system properties via surefire. There may be a more elegant solution out there, but this should work relatively well... HTH, -john Balasubramanian, Ravi Shankar wrote: > Hi all, > I sent this earlier and can someone please tell me if there is a

Iterating through the build based on activated profiles

2008-07-15 Thread Balasubramanian, Ravi Shankar
Hi all, I sent this earlier and can someone please tell me if there is any way to do this ? Thanks, Ravi Hi all, I am facing a situation where i need to iterate through (or build ) the same maven projects depending upon the list of active profiles. To be precise, we run some tests (testNG thro

Iterating a build based on activated profiles

2008-07-10 Thread Balasubramanian, Ravi Shankar
Hi all, I am facing a situation where i need to iterate through (or build ) the same maven projects depending upon the list of active profiles. To be precise, we run some tests (testNG through the maven surefire plugin) against a database and i need a way to run the tests against different databas

Different versions of dependencies

2008-07-03 Thread Balasubramanian, Ravi Shankar
Hi all, My projects are organized in a standard way with a top level pom that lists out the general dependencies and versions to be used for all the child projects that would inherit from it. However, i am facing a situation where i need a different version of a particular dependency in a particul

Running all tests ignoring failures

2008-06-18 Thread Balasubramanian, Ravi Shankar
Hi all, I need a way in maven (using the surefire-plugin) to run all tests in a project ignoring any test failures that might occur. All my tests are independent of each other and i want all the tests to be run ignoring any failures that might happen in the middle. Note: 1. I tried using

RE: Multi-module passing properties to children

2007-05-02 Thread Balasubramanian, Ravi Shankar
Hi, The master pom in this case need not be installed in the repository. You can use the relativePath element under the parent tag to point to your master pom. Something like as follows: ... .. ../(CORRECT_RELATIVE_PATH_TO_WHERE_YOUR_MASTER_POM_EXISTS< /relativePath> This does not require that y

RE: Excluding a test source file

2007-05-02 Thread Balasubramanian, Ravi Shankar
/testCompile-mojo.h tml Balasubramanian, Ravi Shankar schrieb: > Hi all, > > I am working with maven 2.0.4 and my requirement is as follows: > > I have all my test source files in the same directory and all my maven > projects' points to this directory where all the > source

Excluding a test source file

2007-05-02 Thread Balasubramanian, Ravi Shankar
Hi all, I am working with maven 2.0.4 and my requirement is as follows: I have all my test source files in the same directory and all my maven projects' points to this directory where all the source files are available. For a particular maven project, I want to be excluding a specific source fil

RE: Loading property from specific file

2007-04-23 Thread Balasubramanian, Ravi Shankar
Try using this plugin: http://individual.utoronto.ca/zarar/properties-maven-plugin/site/introdu ction.html Regards, Ravi -Original Message- From: Depthblue [mailto:[EMAIL PROTECTED] Sent: Monday, April 23, 2007 4:13 PM To: users@maven.apache.org Subject: Loading property from specific fil

RE: Starting a new java process from within a test case is hanging the maven JVM

2007-04-19 Thread Balasubramanian, Ravi Shankar
il 19, 2007 9:37 PM To: Maven Users List Subject: Re: Starting a new java process from within a test case is hanging the maven JVM On 4/19/07, Balasubramanian, Ravi Shankar <[EMAIL PROTECTED]> wrote: > Hi all, > I did work on this and found that maven's java process is not waitin

RE: Starting a new java process from within a test case is hanging the maven JVM

2007-04-19 Thread Balasubramanian, Ravi Shankar
s in it's main method and verified if the main class exits. It does exit and only when I run it through a test case in maven, the maven's java process is not exiting. Regards, Ravi -Original Message- From: Balasubramanian, Ravi Shankar Sent: Tuesday, April 17, 2007 5:29 PM To: Maven

RE: Starting a new java process from within a test case is hanging the maven JVM

2007-04-17 Thread Balasubramanian, Ravi Shankar
ards, Ravi -Original Message----- From: Balasubramanian, Ravi Shankar Sent: Tuesday, April 17, 2007 5:29 PM To: Maven Users List Subject: Starting a new java process from within a test case is hanging the maven JVM Hi all, We use maven-surefire-plugin to run our testng test cases. I encountered a pro

Starting a new java process from within a test case is hanging the maven JVM

2007-04-17 Thread Balasubramanian, Ravi Shankar
Hi all, We use maven-surefire-plugin to run our testng test cases. I encountered a problem where in the maven VM is hanging when one of the test cases start a separate java process from within it using the java ProcessBuilder class(which I think is inconsequential here). What I am doing in the tes

RE: Include source files in jar

2007-03-23 Thread Balasubramanian, Ravi Shankar
You can add the corresponding directory as a resource in your pom as follows: " src/main/resources src/main/java whatever/d

Using properties from external file in pom.xml

2007-03-21 Thread Balasubramanian, Ravi Shankar
Hi all, I have posted this before and have not got a solution for this. My requirement is to have some name,value pairs defined in external properties file like "username.properies" in the local drive and my pom.xml would be wanting the values for those parameters substituted in them. Something li

Downloading of artifacts from the maven repository

2007-03-21 Thread Balasubramanian, Ravi Shankar
Hi all, I have been hitting this issue for quite sometime and have no idea why this is happening. Whenever I do a maven build, after cleaning up my local repository, maven is not able to download certain artifacts on which I am indirectly/transitively/directly dependent on. This only happens with

Excluding certain modules in a profile

2007-02-06 Thread Balasubramanian, Ravi Shankar
Hi, I am using maven 2.0.4 and I want to be excluding certain modules while building my project in a certain profile. Following is the scenarion: This is how my main pom looks like: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schema

RE: Using of properties from settings.xml

2007-01-22 Thread Balasubramanian, Ravi Shankar
. Just curious, why do you want to do that? If you do that, how do you reproduce your deployed artifact? since your settings.xml change over time. -D On 1/21/07, Balasubramanian, Ravi Shankar <[EMAIL PROTECTED]> wrote: > > Hi, > I just want to be running "mvn install&qu

RE: Using of properties from settings.xml

2007-01-21 Thread Balasubramanian, Ravi Shankar
: Saturday, January 20, 2007 3:31 PM To: Maven Users List Subject: Re: Using of properties from settings.xml I think you need go thru release process to deploy ( ie maven-release-plugin) so that the expression can be replaced. It does not do so in deploy-plugin -D On 1/20/07, Balasubrama

Using of properties from settings.xml

2007-01-20 Thread Balasubramanian, Ravi Shankar
Hi all, I am using values of properties defined in my settings.xml file into my pom.xml. For instance, I have parameterized the version for m project dependencies in the settings.xml with a property called "project.version". I am using this property in my pom.xml as follows:

RE: How package a file into *.jar/META-INF /

2007-01-08 Thread Balasubramanian, Ravi Shankar
Add the required directory as a resource in your pom.xml file. Eg: src/main/config : : : -Original Message- From: fy [mailto:[EMAIL PROTECTED] Sent: Monday, January 08, 2007 3:20 PM To: users@maven.apache.org Subject: How package a file int

Using Custom Class Loader to load test classes

2007-01-05 Thread Balasubramanian, Ravi Shankar
Hi all, I am using the maven-surefire-plugin to run the testNG cases for my project. The test case calls an API internally that expects the current class loader to be a custom class loader. It does something like the following: " CustomClassLoader customClassLoader = (CustomClassLoader) Thread.cu

Injecting properties into the pom from an external properties file

2006-12-27 Thread Balasubramanian, Ravi Shankar
Hi, I am a relatively new user of maven and I want to be injecting properties into the pom from an external properties file. For eg, I will have a property "outDir=C:/Output" defined in an external properties file and I want to be using this in my pom.xml file. Something like ${outDir}. Can anyo