Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Working with maven Date: Wed, 22 Jul 2015 17:10:17 -0400 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <87mvyonz6a.fsf@Equus.decebal.nl> <6d93ec51-ea9c-4777-a785-b00de815a1d9@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 22 Jul 2015 21:12:57 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="8e164d158183579609bf09837dee5210"; logging-data="30059"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/66erqUDS4BorVmfsLwIVcq1Jve3OSmUo=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 In-Reply-To: <6d93ec51-ea9c-4777-a785-b00de815a1d9@googlegroups.com> Cancel-Lock: sha1:HkxYGyO1+FUqzoTybD/86e4z2zg= Xref: csiph.com comp.lang.java.programmer:32107 On 07/22/2015 01:08 PM, e.d.programmer@gmail.com wrote: > On Wednesday, July 22, 2015 at 8:44:47 AM UTC-4, Cecil Westerhof wrote: >> I started working on a project where maven is used. >> >> It is a project with several sub-directories. >> In the root I can just run: mvn install. >> A side effect is that the tests are run. >> To run only the tests, I would expect I just need to run: mvn test. >> But then no tests are run and I get: BUILD ERROR. >> When going to a sub-directory 'mvn test' does work. (For that >> directory.) >> What could be the problem? >> >> Also when I only want to run a certain test set, I go to the directory >> 'firstSet' and run: mvn test -Dtest=SoloTest. >> I would like tor run only this test set without the need to go into >> the directory, but stay in the projects root directory. is this >> possible? >> >> -- >> Cecil Westerhof >> Senior Software Engineer >> LinkedIn: http://www.linkedin.com/in/cecilwesterhof > > I've seen a lot of maven projects give the instructions to run mvn install to get the source. Why are they running dos commands, is this 1985? > There is an eclipse plugin that should allow maven to import project source with a GUI. > Did you not understand the questions asked by Cecil Westerhof?