Download and Install maven version 1.0.2 on Mac OS X
Friday the 25th of July, 2008

    maven  most recent diff


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



      # $Id: Portfile 37140 2008-05-27 16:42:56Z simon macports.org $

      PortSystem 1.0

      Name: maven
      Version: 1.0.2

      Category: java devel
      Maintainers: jberry openmaintainer
      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.
      Homepage: http://maven.apache.org/

      # FIXME: archive.apache.org can be removed when macports greater 1.6.0 is released
      master_sites apache:maven/binaries http://archive.apache.org/dist/maven/binaries
      checksums md5 81a6b4393e550635efe19e95cea38718

      depends_build bin:java:kaffe bin:ant:apache-ant

      patchfiles patch-maven

      use_configure no
      use_bzip2 yes

      # Source builds of maven are not possible, except using the cvs head as in the
      # devel variant below, because there is no available source archive or correctly
      # tagged source for the project. 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}/lib ${worksrcpath}/plugins ${worksrcpath}/maven-navigation-1.0.xsd ${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 ../share/java/${name}/bin/${name}"
      }

      # The devel variant builds from source using cvs head
      Variant: devel {
      worksrcdir ${name}

      fetch.type cvs
      cvs.root :pserver:anoncvs cvs.apache.org:/home/cvspublic
      cvs.module maven maven-plugins

      build.env MAVEN_HOME=${worksrcpath}
      build.cmd ant
      build.pre_args -f build-bootstrap.xml
      }


    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/maven
      % sudo port install maven
      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 maven
      ---> Verifying checksum for maven
      ---> Extracting maven
      ---> Configuring maven
      ---> Building maven with target all
      ---> Staging maven into destroot
      ---> Installing maven
    - 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 maven with these commands:
      %  man maven
      % apropos maven
      % which maven
      % locate maven

     Where to find more information:

    Darwin Ports



    image test