(define-module (gn past java) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system ant)) (define-public maven (package (name "maven") (version "3.3.9") (source (origin (method url-fetch) (uri (string-append "http://apache.proserve.nl/maven/maven-3/" version "/source/apache-maven-" version "-src.tar.gz")) (sha256 (base32 "1g0iavyb34kvs3jfrx2hfnr8lr11m39sj852cy7528wva1glfl4i")))) (build-system ant-build-system) (arguments `(#:make-flags "-Dmaven.home=build/" #:phases (modify-phases %standard-phases (add-before 'build 'set-m2-variable (lambda _ (setenv "M2_HOME" (string-append (assoc-ref %outputs "out") "/maven-3.3.9"))))))) (home-page "https://maven.apache.org/") (synopsis "") (description "Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.") (license license:asl2.0)))