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

Re: Class loading issues while running tests

2010-09-14 Thread Anders Hammar
This problem comes from the fact that you have a test scope dependency. The dependencies of that dependency that are in test scope will not be transitive dependencies. Thus, no class def found. The basic issue here is that you have more than one artifact of a Maven project (the primary artifact and

Re: Class loading issues while running tests

2010-09-14 Thread per-henrik hedman
If you run: mvn -X test you should be able to decipher your classpath during the test-phase and see whats missing. Cheers, Per-Henrik On Tue, Sep 14, 2010 at 4:00 PM, nitingupta183 wrote: > > Hi All, > > I have got a multi-project setup in which one project is acting as a parent > project. Test c

Re: package question

2010-09-14 Thread per-henrik hedman
I think you need to clarify. Do you mean the jar, when you are talking about package? If I understand you correctly you are meaning a jar, if so you should declare a dependency to that jar. Probably you need to find it's pom in some repository so that you can declare it correctly. {group id fo

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2010-09-14 Thread Wim Deblauwe
If you use IntelliJ IDEA, you can press ALT-INSERT in a dependencies section and it will allow you to choose from all the dependencies that are in your local repo. Very neat. Not sure why you would want this in a plugin? 2010/9/14 Wayne Fay > > Is there any maven plugin to add/update in & >

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2010-09-14 Thread Wayne Fay
> Is there any maven plugin to add/update  in & > section to existing pom.xml via command line? What is the use case for this feature/function? Why do you need to do this? Wayne - To unsubscribe, e-mail: users-unsubscr...@mav

Re: scope of transitive deps

2010-09-14 Thread Baptiste MATHUS
Hi, Please read http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope Cheers 2010/9/14 > hi, > > I have a project A which defines a dependen

Re: scope of transitive deps

2010-09-14 Thread Antonio Petrelli
2010/9/14 : > hi, > > I have a project A which defines a dependency to project B in scope test. > project B itself has several dependencies in scope compile. > > Surprinsingly these dependencies are also included in Project A in compile > scope. ?! This is not possible (at least theoretical

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2010-09-14 Thread Baptiste MATHUS
Or either, I guess a patch could be proposed to add the feature to http://mojo.codehaus.org/versions-maven-plugin/. Cheers 2010/9/14 Baptiste MATHUS > I don't think so. There was previously an idea about initiating a maven > plugin to manipulate pom, but hasn't been done yet. > > Cheers > > 201

Re: Is there any maven plugin to add dependency to existing pom.xml ?

2010-09-14 Thread Baptiste MATHUS
I don't think so. There was previously an idea about initiating a maven plugin to manipulate pom, but hasn't been done yet. Cheers 2010/9/14 Prashant Bhate > Hi, > > Is there any maven plugin to add/update in & > section to existing pom.xml via command line? > > Regards, > Prashant Bhate >

scope of transitive deps

2010-09-14 Thread mremersoncod
hi, I have a project A which defines a dependency to project B in scope test. project B itself has several dependencies in scope compile. Surprinsingly these dependencies are also included in Project A in compile scope. ?! E.g. project A requires a dependency to project C in productive cod

Re: Mojo Mailing lists

2010-09-14 Thread Greg Akins
On Tue, Sep 14, 2010 at 9:03 AM, Jörg Schaible wrote: > when you go to xircles.codehaus.org and log in (for managing email) you > should see a list of your subscriptions and be able to manage them. Mojo > should be in this list. > Thanks. It looks like that works. I've yet to get a failed respon

Class loading issues while running tests

2010-09-14 Thread nitingupta183
Hi All, I have got a multi-project setup in which one project is acting as a parent project. Test classes in few of my projects are dependent upon test classes on other projects. I have resolved the test classes dependency with the help of maven-jar-plugin ( goal test-jar) & by importing the tes

Re: run command remotely on Unix using Maven

2010-09-14 Thread Justin Edelson
On 9/14/10 4:18 AM, Stephen Connolly wrote: > I think you'd want to write a maven plugin (not that difficult) that uses > either apache mina's ssh support, or jsch's ssh support or one of the other > ssh java libraries to login to the remote host and run the commands you are > after. Better yet IMH

Re: run command remotely on Unix using Maven

2010-09-14 Thread Stephen Connolly
Yeah the fun is usually if you are doing interactive password auth On 14 September 2010 14:48, fhomasp wrote: > > Thanks for the advice, I tried the first option. After a bit of sweat I > got > it working okay. > > > stephenconnolly wrote: > > > > I think you'd want to write a maven plugin (not

Re: run command remotely on Unix using Maven

2010-09-14 Thread fhomasp
Thanks for the advice, I tried the first option. After a bit of sweat I got it working okay. stephenconnolly wrote: > > I think you'd want to write a maven plugin (not that difficult) that uses > either apache mina's ssh support, or jsch's ssh support or one of the > other > ssh java libraries

Re: Mojo Mailing lists

2010-09-14 Thread Jörg Schaible
Hi Greg, Greg Akins wrote: > On Tue, Sep 14, 2010 at 8:11 AM, Jörg Schaible > wrote: >> >> How did you do this? This is normally a completely automated process at >> Codehaus. >> >> - Jörg >> > > Yes, I completed the normal automated process, replying the the conf > emails as usual. But I neve

Is there any maven plugin to add dependency to existing pom.xml ?

2010-09-14 Thread Prashant Bhate
Hi, Is there any maven plugin to add/update in & section to existing pom.xml via command line? Regards, Prashant Bhate

package question

2010-09-14 Thread Daniel Rindt
Hello, my Tomcat 5.5 is comming with the classpathx-mail package. I can use this package without mention it in the pom.xml. But when i want packaging it the compiler complains because it can't find the dependent classes. I guess i have to add the classpathx-mail package to my local m2 repository a

Re: Mojo Mailing lists

2010-09-14 Thread Greg Akins
On Tue, Sep 14, 2010 at 8:11 AM, Jörg Schaible wrote: > > How did you do this? This is normally a completely automated process at > Codehaus. > > - Jörg > Yes, I completed the normal automated process, replying the the conf emails as usual. But I never received a final "Welcome to the List" emai

Re: No such command 'status' when running mvn release:prepare

2010-09-14 Thread Stephen Connolly
Or it could be that you are using AccuCrap source uncontrol system... We gave up on that particular source uncontrol system and moved to Subversion life is good ;-) On a serious note, did you checkout the source code or export it... you would need to be in an accurev workspace AFAIK for this t

Re: Exec-maven plugin invoked twice during release process

2010-09-14 Thread Stephen Connolly
are you sure it only needs to run once? remember that prepare runs from $(pwd) while perform runs from $(pwd)/target/checkout so if it is doing things like generating source code, or such, you might actually need to run it twice. otherwise put it it a profile that is only activated for release:pr

Re: Mojo Mailing lists

2010-09-14 Thread Jörg Schaible
Greg Akins wrote: > I tried to join the mojo mailing lists last week and never got a > response from the moderator. > > Does anyone know if those lists are active? > > My reason for joining was to get help with the xmlbean mojo. Does > anyone know where would be the most appropriate place to as

Re: add dynamically artifact into nexus

2010-09-14 Thread Xavier D.
Tip: specify the when referring to your artifact as a dependency in future and always when using the attach-artifact plugin as the default for the file type is 'jar'. If you are attaching a war, specify war. Personally, I would have implemented a multi-module build with dependencies between them

RE: add dynamically artifact into nexus

2010-09-14 Thread V, Akshatha
Hi, You could have a look at this.. http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo.html Best regards, Akshatha -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: Tuesday, September 14, 2010 2:1

Re: No such command 'status' when running mvn release:prepare

2010-09-14 Thread eyal edri
I did actually, that's how i got the trace. here's a line i noticed: [DEBUG] Repository created: host:ctcm, port:5050, depot:CT_Dev_2.1.0, streamName:/CT_Dev_2.1.0_eyale/Server/WebSec/ct-AutoFp, workspaceName:null, checkoutMethod:pop, params:{} i see the workspaceName = null, maybe there is a pr

Re: Exec-maven plugin invoked twice during release process

2010-09-14 Thread Prashant Bhate
Hi, It depends if you want to run exec during prepare or during release. If you want to run it only during prepare phase put it in a profile and pass that profile as argument to release:prepare goal If you want to run it during release:perform put it in release profile and enable release profile

Re: No such command 'status' when running mvn release:prepare

2010-09-14 Thread Prashant Bhate
Try running command again with verbosity mvn -X -e release:prepare you might see some clue. Prashant Bhate On Tue, Sep 14, 2010 at 11:52 AM, eyal edri wrote: > Hi, > > i configured an scm in my pom.xml file: > > >scm:accurev:@ctcm > :5050:CT_Dev_2.1.0:/Server/WebSec/ct-AutoFp > >scm

Exec-maven plugin invoked twice during release process

2010-09-14 Thread C. Benson Manica
(Asking this question again in a different form, since I feel like there *has* to be an answer...) I have a Maven project that invokes exec-maven in the prepare-package phase, as below, so that its work is done for package creation. That all works fine, deployment also works fine, but my issue is

Re: Snapshot to Release without re-build

2010-09-14 Thread Prashant Bhate
Hi, thanks for the suggestion. Yes we initially thought first option [ 2nd ( though was what we really wanted ) has been ruled out by business for obvious reasons ;) ] , but number of builds was a overhead on build team, and there are hundreds of interlinked modules and bumping up version of eac

No such command 'status' when running mvn release:prepare

2010-09-14 Thread eyal edri
Hi, i configured an scm in my pom.xml file: scm:accurev:@ctcm:5050:CT_Dev_2.1.0:/Server/WebSec/ct-AutoFp scm:accurev:@ctcm:5050:CT_Dev:/CT_Dev_2.1.0/Server/WebSec/ct-AutoFp http://ctcm:5050 when i run mvn scm:list it works fine, but mvn release:prepare fails: [ERROR] BUILD

Re: Snapshot to Release without re-build

2010-09-14 Thread Anders Hammar
No, you must not do that. One way to handle this is to do real releases that you hand over to testing/QA. So when they say ok to a build, that's the build you give to operations (or rather, they should pull it from the repo). If you don't mind spending money, there is staging support in Nexus Pro

Re: maven-site-plugin and custom skin

2010-09-14 Thread Thomas Scheffler
Am 13.09.2010 18:03, schrieb Dennis Lundberg: Hi I'm not that I understand what it is you want to do. When you say you don't want to specify a version, do you mean for the Site Plugin or for the skin? The skin is not configured in the pom.xml file, but rather in a site.xml file. The site.xml f

Snapshot to Release without re-build

2010-09-14 Thread Prashant Bhate
Hi, Is there any way in maven to deploy Artifact that is build with SNAPSHOT version to Release version ( = remove '-SNAPSHOT' ) without any rebuild ? There is argument between operations and testing team. where in Testing team tests with SNAPSHOT version, and after several bugfixes and SNAPSHO

Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Aleksey Didik
Sure Simon, thanks a lot for previous answers. I'll investigate this problem more and send the necessary stacktrace. Aleksey. 4.09.2010 13:19, Simon Brandhof пишет: Could you send the whole stacktrace to the sonar user list please ? On Tue, Sep 14, 2010 at 11:16 AM, Aleksey Didik wrote: Al

Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Simon Brandhof
Could you send the whole stacktrace to the sonar user list please ? On Tue, Sep 14, 2010 at 11:16 AM, Aleksey Didik wrote: > Also I have error when trying to use 1.0-beta-2 plugin in combination with > sonar 2.2. > > [INFO] org.sonar.api.resources.Languages has unsatisfied dependency: class >

Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Aleksey Didik
Also I have error when trying to use 1.0-beta-2 plugin in combination with sonar 2.2. [INFO] org.sonar.api.resources.Languages has unsatisfied dependency: class [Lorg.sonar.api.resources.Language; among unsatisfiable dependencies: [[class [Lorg.sonar.api.resources.Language;]] where org.picoc

Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Simon Brandhof
Hi Aleksey, The mojo is a simple bootstrap over the org.codehaus.sonar maven plugin. End users should execute the first one. The latter is for internal use. The goal is to simplify the maven command, indeed the mojo version does not change when sonar is upgraded. To sum up : you just have to focu

Re: [ANN] Sonar mojo 1.0-beta-2

2010-09-14 Thread Aleksey Didik
Hello. Could anyone tell me the difference between org.codehaus.*mojo*::sonar-maven-plugin and org.codehaus.*sonar*::sonar-maven-plugin? Looks like I have lost a little. Thanks, Aleksey. 13.09.2010 19:24, Simon Brandhof пишет: The Mojo team is pleased to announce the release of Sonar Mav

Re: add dynamically artifact into nexus

2010-09-14 Thread Anders Hammar
mvn deploy? /Anders On Tue, Sep 14, 2010 at 10:27, DONIAT, Christophe < christophe.don...@capgemini.com> wrote: > Hello, > > I have a multi-project with several produced jars in sequence. Then, I > package all in the same war. > > But, for example I build the first jar named A, then I build a se

add dynamically artifact into nexus

2010-09-14 Thread DONIAT, Christophe
Hello, I have a multi-project with several produced jars in sequence. Then, I package all in the same war. But, for example I build the first jar named A, then I build a second one, named B, which holds a dependency with the first one A, and so forth. I'd like to be able to add dynamically A i

Re: run command remotely on Unix using Maven

2010-09-14 Thread Stephen Connolly
I think you'd want to write a maven plugin (not that difficult) that uses either apache mina's ssh support, or jsch's ssh support or one of the other ssh java libraries to login to the remote host and run the commands you are after. It would not be too hard. Otherwise you could use "expect" to r

Re: Welcome Stephen Connolly to the Maven PMC

2010-09-14 Thread Emmanuel Venisse
Welcome Stephen. Emmanuel On Tue, Sep 14, 2010 at 4:03 AM, Brian Fox wrote: > Stephen has just joined us on the Maven PMC. He is the author of the > very popular versions-maven-plugin at Codehaus and has recently been > doing maintenance of the Surefire plugin at the Maven project. > > Welcome

run command remotely on Unix using Maven

2010-09-14 Thread fhomasp
Hey, In order to deploy an ear to a severely secured OC4J server I need to use a script file provided by the system admins. This is the only way that they'll allow deployment. I'd like to automate the process. So far I've managed to access the servers with the Wagon plugin using SFTP to copy th

Re: compile failure warning and build succesfull?

2010-09-14 Thread Baptiste MATHUS
Well, Maven does no specific things here. It depends on javac behaviour. What's your m-compiler-plugin config? Didn't you set a property like http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#failOnError to false? Cheers 2010/9/13 Daniele Dellafiore > yes it is, but the cl