Maven2 version 2.2.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 2.2.0

      View the most recent changes for the maven2 port at: maven2.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for maven2.
      The raw portfile for maven2 2.2.0 is located here:
      http://maven2.darwinports.com/dports/java/maven2/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/maven2


      # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The maven2 Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: maven2
      Version: 2.2.0

      Category: java devel
      Maintainers: kickstyle.net:gk5885
      Platform: darwin

      Description: A java-based build and project management environment.
      Long Description: Maven is a Java project management and project comprehension tool. Maven is based on the concept of a project object model (POM) in that all the artifacts produced by Maven are a result of consulting a well defined model for your project. Builds, documentation, source metrics, and source cross-references are all controlled by your POM. Maven 2.0 is a complete rewrite of Maven 1.0 and as such is better organized, faster and easier to use.
      Homepage: http://maven.apache.org/

      Master Sites: apache:maven/binaries
      distname apache-maven-${version}-bin
      worksrcdir apache-maven-${version}
      use_bzip2 yes
      Checksums: md5 3cfb024af32c61410531c54b8364a8c4 sha1 c301aefcd7dd9a6fb605937e1e049ed485f75188 rmd160 96b0c1afe229bb047f3bd4045390b8f6a54a86a0


      depends_build bin:java:kaffe

      use_configure no
      universal_variant no
      use_bzip2 yes

      # Source builds of maven are not possible. So, the default build is a binary
      # install of the jars.
      build.cmd true

      destroot {
      # Create the target java directory exists
      xinstall -m 755 -d ${destroot}${prefix}/share/java/${name}

      # Copy over the needed elements of our directory tree
      file copy ${worksrcpath}/bin ${worksrcpath}/boot ${worksrcpath}/conf ${worksrcpath}/lib ${destroot}${prefix}/share/java/${name}

      # Remove extraneous bat files
      foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/bin *.bat] {
      file delete $f
      }

      # Fix permissions on shell scripts
      foreach f { maven install_repo.sh } {
      if [file exists ${destroot}${prefix}/share/java/${name}/bin/$f] {
      file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
      }
      }

      # Symlink maven into the bin directory
      system "cd ${destroot}${prefix}/bin && ln -s ${prefix}/share/java/${name}/bin/mvn"
      }

      livecheck.type regex
      livecheck.url ${homepage}download.html
      livecheck.regex apache-maven-(\[0-9.\]+)-bin\\.tar

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/maven2
      % sudo port install maven2
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching maven2
      ---> Verifying checksum for maven2
      ---> Extracting maven2
      ---> Configuring maven2
      ---> Building maven2 with target all
      ---> Staging maven2 into destroot
      ---> Installing maven2
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using maven2 with these commands:
      %  man maven2
      % apropos maven2
      % which maven2
      % locate maven2

     Where to find more information:

    Darwin Ports



    Lightbox this page.