On Monday November 13 2006 1:53 pm, Rafael Schloming wrote:
> The maven build seems to be working for me now, but I've run into a few
> questions:
>
> Is there an equivalent of ant -projecthelp? How do I find out what
> goals are available for the Qpid project?

Maven doesn't really have the "named goals" thing that ant has.   
Developers usually interact with it via a lifecycle.   ALL maven projects 
have the same lifecycles.   That's what makes maven nice.   All projects 
are pretty much the same for the normal usage. 

The normal ones that most developers use are:

mvn process-sources
mvn compile
mvn process-test-sources
mvn test-compile
mvn test
mvn install

If a project follows the "standards" for layouts and stuff, the above just 
works with pretty much no configuration needed in the poms.    However, 
you normally would bind additional plugins into the lifecycle.   For 
example, for javadoc, you would bind the javadoc plugin into the package 
phase (or other phase).    Alternatively, you can invoke plugins 
directly:
mvn javadoc:javadoc  
(That's plugin:goal)

The most popular usage of something like that would be:
mvn cobertura:cobertura
or 
mvn clover:clover
which would normally run the code coverage on your tests. (see below for 
discussion on that issue)
   
> Are there equivalents for all the ant targets? For example how do I
> build without running all the tests?

With a NORMAL maven build, you can run "mvn -Dmaven.test.skip=true".  
There is actually a profile setup in your pom where you could 
do "mvn -Pfastinstall" which would skip the checkstyle/pmd things, tests, 
etc...

That said, because you aren't using surefire to run the tests (it's using 
antrun), that doesn't work.    Also, by not using surefire, a ton of 
other things won't work correctly (like code coverage metrics).  My 
STRONG suggestion is to go to JUnit 3 and just use surefire.   It 
simplifies things greatly and is "plug and play" with the other maven 
plugins.

> Are there any good maven background docs I should read?

Start with "Better Builds with Maven":
http://www.mergere.com/m2book_download.jsp


-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194   F:781-902-8001
[EMAIL PROTECTED]

Reply via email to