Re: how to run compile and packaging before test?

2013-12-13 Thread Malte Skoruppa
Just scanning http://maven.apache.org and its not obvious by the content on the page where the books are. Its over in the menu on the left under Documentation Books and Resources I wonder if we should add a section under Learning about Maven. When you might have gone looking, where would you

Re: how to run compile and packaging before test?

2013-12-13 Thread Barrie Treloar
On 13 December 2013 19:48, Malte Skoruppa skoru...@cs.uni-saarland.de wrote: Just scanning http://maven.apache.org and its not obvious by the content on the page where the books are. Its over in the menu on the left under Documentation Books and Resources I wonder if we should add a section

Re: how to run compile and packaging before test?

2013-12-13 Thread Malte Skoruppa
Meanwhile, one doesn't necessarily have to buy a book to learn about the Maven lifecycle. This is also explained on the website: http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html Yes, but it doesn't go into enough details. The *free* books do. This actually

Re: how to run compile and packaging before test?

2013-12-13 Thread Malte Skoruppa
Oh, and I forgot to mention that Maven: The Definitive Guide book which apparently is also free, although you can also buy a printed version. However, the http link to the book on sonatype.com is dead. It should be updated. It would also be helpful for users who scan that page if the free

Re: how to run compile and packaging before test?

2013-12-13 Thread Anders Hammar
However, the http link to the book on sonatype.com is dead. It should be updated. Hm, ok. I asked Sonatype some time ago to fix that. I'll remind them. /Anders It would also be helpful for users who scan that page if the free books were somehow better visually highlighted. Like a big

Re: how to run compile and packaging before test?

2013-12-13 Thread Ron Wheeler
Malte, Great points. File a few JIRA issues describing the problems that you are finding. That way they will get on the list of things to do. I think that you might find some of the books are free in their electronic formats but are not free if you want paper. Ron On 13/12/2013 5:34 AM,

Re: how to run compile and packaging before test?

2013-12-13 Thread Manfred Moser
The link to the free html and pdf books is now http://books.sonatype.com These books are cc licensed and we do take pull requests of enhancements. The source is at https://github.com/sonatype/maven-reference-en https://github.com/sonatype/maven-example-en I have created a patch for the Maven

Re: how to run compile and packaging before test?

2013-12-12 Thread Andrew E. Davidson
many thanks I did not know about the book Andy On Dec 11, 2013, at 3:58 PM, Barrie Treloar baerr...@gmail.com wrote: Please have a look at the freely available books at http://maven.apache.org/articles.html These will help you understand the Maven lifecycle and what you should be doing

Re: how to run compile and packaging before test?

2013-12-12 Thread Barrie Treloar
On 13 December 2013 07:57, Andrew E. Davidson andy_david...@apple.com wrote: many thanks I did not know about the book Just scanning http://maven.apache.org and its not obvious by the content on the page where the books are. Its over in the menu on the left under Documentation Books and

how to run compile and packaging before test?

2013-12-11 Thread Andrew E. Davidson
Hi my unit test require I a *.tar.gz. The *.tar.gz needs to include the 3rd party dependencies and the projects jar file artifact. I tried using an assembly and setting the phase, so it will run before the unit tests run, how ever my project artifact has not been packaged yet Any comments

Re: how to run compile and packaging before test?

2013-12-11 Thread Lyons, Roy
I have a feeling that you aren't running unit tests, but instead integration tests... http://maven.apache.org/surefire/maven-failsafe-plugin/ is what you want! that happens after the package phase. On 12/11/13 4:57 PM, Andrew E. Davidson andy_david...@apple.com wrote: Hi my unit test require

Re: how to run compile and packaging before test?

2013-12-11 Thread Andrew E. Davidson
Hi Roy we use plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId /plugin is this a problem? Andy On Dec 11, 2013, at 3:19 PM, Lyons, Roy

Re: how to run compile and packaging before test?

2013-12-11 Thread Barrie Treloar
Please have a look at the freely available books at http://maven.apache.org/articles.html These will help you understand the Maven lifecycle and what you should be doing in each phase. As Roy points out, you are doing integration tests. You can also pull these out into their own module so they