Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32105 > unrolled thread
| Started by | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| First post | 2015-07-22 14:40 +0200 |
| Last post | 2015-07-24 16:34 +0200 |
| Articles | 3 on this page of 23 — 8 participants |
Back to article view | Back to comp.lang.java.programmer
Working with maven Cecil Westerhof <Cecil@decebal.nl> - 2015-07-22 14:40 +0200
Re: Working with maven e.d.programmer@gmail.com - 2015-07-22 10:08 -0700
Re: Working with maven Jeff Higgins <jeff@invalid.invalid> - 2015-07-22 17:10 -0400
Re: Working with maven e.d.programmer@gmail.com - 2015-07-23 04:48 -0700
Re: Working with maven Joerg Meier <joergmmeier@arcor.de> - 2015-07-23 19:24 +0200
Re: Working with maven e.d.programmer@gmail.com - 2015-07-23 13:28 -0700
Re: Working with maven lipska the kat <dont@email.me> - 2015-07-24 11:22 +0100
Re: Working with maven Cecil Westerhof <Cecil@decebal.nl> - 2015-07-24 16:19 +0200
Re: Working with maven lipska the kat <dont@email.me> - 2015-07-24 18:03 +0100
Re: Working with maven Joerg Meier <joergmmeier@arcor.de> - 2015-07-24 20:36 +0200
Re: Working with maven lipska the kat <dont@email.me> - 2015-07-26 05:49 +0100
Re: Working with maven Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2015-07-26 13:56 +0000
Re: Working with maven lipska the kat <dont@email.me> - 2015-07-26 15:38 +0100
Re: Working with maven Gordon Levi <gordon@address.invalid> - 2015-07-27 01:18 +1000
Re: Working with maven lipska the kat <dont@email.me> - 2015-07-26 17:02 +0100
Re: Working with maven Arne Vajhøj <arne@vajhoej.dk> - 2015-07-26 21:16 -0400
Re: Working with maven e.d.programmer@gmail.com - 2015-07-27 05:41 -0700
Re: Working with maven Arne Vajhøj <arne@vajhoej.dk> - 2015-07-26 21:09 -0400
Re: Working with maven Arne Vajhøj <arne@vajhoej.dk> - 2015-07-26 21:06 -0400
Re: Working with maven Arne Vajhøj <arne@vajhoej.dk> - 2015-07-26 20:40 -0400
Re: Working with maven Arne Vajhøj <arne@vajhoej.dk> - 2015-07-26 20:39 -0400
Re: Working with maven Joerg Meier <joergmmeier@arcor.de> - 2015-07-23 19:17 +0200
Re: Working with maven Cecil Westerhof <Cecil@decebal.nl> - 2015-07-24 16:34 +0200
Page 2 of 2 — ← Prev page 1 [2]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2015-07-26 20:39 -0400 |
| Message-ID | <mp3ujl$odj$1@speranza.aioe.org> |
| In reply to | #32108 |
On 7/23/2015 7:48 AM, e.d.programmer@gmail.com wrote: > On Wednesday, July 22, 2015 at 5:14:52 PM UTC-4, Jeff Higgins wrote: > >> Did you not understand the questions asked by Cecil Westerhof? > > I think that's the point. I don't know the answers because it's old > command line stuff. So far no one else knows either. I suggest > using the GUI Eclipse plugin. So how does he solve his very specific problems using Eclipse and its maven plugin? Arne
[toc] | [prev] | [next] | [standalone]
| From | Joerg Meier <joergmmeier@arcor.de> |
|---|---|
| Date | 2015-07-23 19:17 +0200 |
| Message-ID | <zefte8effn02$.1vm9ffdvc6ezq.dlg@40tude.net> |
| In reply to | #32105 |
On Wed, 22 Jul 2015 14:40:13 +0200, 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? That indicates an error in your main pom.xml, but without the complete error log and/or the pom.xml, that's going to be pretty impossible to debug. For what it is worth, you understood correctly - 'mvn test' should indeed run just the tests. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen.
[toc] | [prev] | [next] | [standalone]
| From | Cecil Westerhof <Cecil@decebal.nl> |
|---|---|
| Date | 2015-07-24 16:34 +0200 |
| Message-ID | <877fppoc92.fsf@Equus.decebal.nl> |
| In reply to | #32105 |
On Wednesday 22 Jul 2015 14:40 CEST, 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?
As I understood it, it is because the pom uses an old structure with
several projects in it. This is still with Maven 2.2.1. (A company
decision, not my decision.)
But we found a way around it. When using:
mvn surefire:test
everything is tested.
The pom-file is going to be reorganised and until then I can live with
this.
> 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?
I can use:
mvn -pl project test
to test a complete project from the root directory.
And when I use:
mvn -pl project test -Dtest=SoloTest
only this test set is run.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.java.programmer
csiph-web