me
/
guix
Archived
1
0
Fork 0

gnu: maven-3.0-artifact: New variable.

* gnu/packages/maven.scm (maven-3.0-artifact): New variable.
master
Julien Lepiller 2020-06-27 15:55:05 +02:00
parent b277bd37ba
commit 756e976e56
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82
1 changed files with 40 additions and 0 deletions

View File

@ -2058,3 +2058,43 @@ management, documentation creation, site publication, and distribution
publication are all controlled from the @file{pom.xml} declarative file. Maven
can be extended by plugins to utilise a number of other development tools for
reporting or the build process.")))
;; Many plugins require maven 3.0 as a dependency.
(define maven-3.0-pom
(package
(inherit maven-pom)
(version "3.0")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/apache/maven")
(commit (string-append "maven-" version))))
(file-name (git-file-name "maven" version))
(sha256
(base32
"06jdwxx9w24shhv3kca80rlrikynn7kdqcrwg59lv2b7adpllwnh"))
(modules '((guix build utils)))
(snippet
'(begin
(for-each delete-file (find-files "." "\\.jar$"))
(for-each (lambda (file) (chmod file #o644))
(find-files "." "."))
#t))
(patches
(search-patches "maven-generate-component-xml.patch"
"maven-generate-javax-inject-named.patch"))))
(propagated-inputs
`(("maven-parent-pom-15" ,maven-parent-pom-15)))))
(define-public maven-3.0-artifact
(package
(inherit maven-artifact)
(version (package-version maven-3.0-pom))
(source (package-source maven-3.0-pom))
(propagated-inputs
(map
(lambda (input)
(if (equal? (car input) "maven-pom")
`("maven-pom" ,maven-3.0-pom)
input))
(package-propagated-inputs maven-artifact)))))