Results 1 to 3 of 3

Thread: Maven 'targets'?

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Location
    u.s.a
    Posts
    399

    Default Maven 'targets'?

    With ant we can do: ant -p

    and get a nice list of applicable targets for the project. I've looked but don't see anything similar with Maven. There are -h and -g, but these don't help or are targeted as well as the ant projecthelp task.

    If there really isn't something similar, perhaps its just a simple matter of adding one to the maven.xml file. Something like:

    Code:
      <goal name="projecthelp" description="show the project specific goals">
           <echo>
            maven goals&#58;
                preparedocs ................. o Extra preparation for the documentation
                docclean ...................... o Delete temporary and distribution directories for docs
                docpdf ......................... o Compile reference documentation to pdf
                dochtml ....................... o Compile reference documentation to chunked html
                dochtmlsingle ............... o Compile reference documentation to single html
                refdoc .......................... o Generate and copy reference documentation
           </echo>
      </goal>
    The use would be: maven projecthelp

    ----
    Josef Betancourt

  2. #2
    Join Date
    Aug 2004
    Location
    New York, NY
    Posts
    46

    Default

    That's essentially what we do. We make it the default goal as well. So just running "maven" prints out our usage.

  3. #3
    Join Date
    Aug 2004
    Location
    u.s.a
    Posts
    399

    Default

    Thats a great idea. We do that with our ant script; the default is the project help.

    BTW, with Ant, I tried to code a call to Ant's internal method that does the -projecthelp, so that we could decorate it with our custom needs, but all that is private, could not even subclass and use easily, so gave up.

Similar Threads

  1. Getting started with Spring + Maven
    By ejeklint in forum Architecture
    Replies: 3
    Last Post: Dec 27th, 2006, 10:25 AM
  2. Managing components / projects / dev cycle: Maven or ant?
    By rebornspirit in forum Architecture
    Replies: 9
    Last Post: Oct 6th, 2006, 09:34 AM
  3. Propblem checking out of cvs with maven
    By dmfrey in forum Security
    Replies: 2
    Last Post: Jan 22nd, 2005, 09:19 AM
  4. Nightly Snapshot / Maven Problems
    By bendg25 in forum Security
    Replies: 3
    Last Post: Dec 20th, 2004, 05:07 PM
  5. Hibernate - Maven schema generation
    By vmpn in forum Data
    Replies: 3
    Last Post: Dec 15th, 2004, 03:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •