summary refs log tree commit diff
path: root/modules/past/java2.scm
blob: 41c1a1c12aa7086948c2deb2b0cda6ec759e8a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(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)))