gnu: maven: Update to 3.8.5.
* gnu/packages/maven.scm (maven-pom): Update to 3.8.5. (maven-model-builder)[arguments]: Build from the subdirectory to work around a test issue. (maven-3.0-model-builder)[arguments]: Fix accordingly.
This commit is contained in:
parent
6dbce7d815
commit
7bdead3fce
1 changed files with 17 additions and 17 deletions
|
@ -1117,13 +1117,13 @@ (define-public maven-wagon-http
|
|||
(define maven-pom
|
||||
(package
|
||||
(name "maven-pom")
|
||||
(version "3.8.4")
|
||||
(version "3.8.5")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "mirror://apache/maven/"
|
||||
"maven-3/" version "/source/"
|
||||
"apache-maven-" version "-src.tar.gz"))
|
||||
(sha256 (base32 "16xbhkhhp05gskgbhrf1ia8riivvkhpk822n9xgnad61f9hzp2r9"))
|
||||
(sha256 (base32 "01y0fjvlvgy1bl3mdhbjll2xhzpli6aklqb3w29xpbgk6frxn3d6"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
'(begin
|
||||
|
@ -1197,7 +1197,7 @@ (define maven-pom
|
|||
(replace 'install
|
||||
(install-pom-file "pom.xml")))))
|
||||
(propagated-inputs
|
||||
`(("maven-parent-pom-34" ,maven-parent-pom-34)))
|
||||
(list maven-parent-pom-35))
|
||||
(home-page "https://maven.apache.org/")
|
||||
(synopsis "Build system")
|
||||
(description "Apache Maven is a software project management and comprehension
|
||||
|
@ -1389,29 +1389,29 @@ (define-public maven-model-builder
|
|||
(name "maven-model-builder")
|
||||
(arguments
|
||||
`(#:jar-name "maven-model-builder.jar"
|
||||
#:source-dir "maven-model-builder/src/main/java"
|
||||
#:source-dir "src/main/java"
|
||||
#:jdk ,icedtea-8
|
||||
#:test-dir "maven-model-builder/src/test"
|
||||
#:test-dir "src/test"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'configure 'chdir
|
||||
(lambda _
|
||||
;; Required for tests that rely on the package's default
|
||||
;; locations, that reference ${basedir}/src/test.
|
||||
(chdir "maven-model-builder")))
|
||||
(add-before 'build 'copy-resources
|
||||
(lambda _
|
||||
(copy-recursively "maven-model-builder/src/main/resources"
|
||||
(copy-recursively "src/main/resources"
|
||||
"build/classes")
|
||||
#t))
|
||||
(add-before 'build 'generate-sisu-named
|
||||
(lambda _
|
||||
(mkdir-p "build/classes/META-INF/sisu")
|
||||
(chmod "sisu.sh" #o755)
|
||||
(invoke "./sisu.sh" "maven-model-builder/src/main/java"
|
||||
(chmod "../sisu.sh" #o755)
|
||||
(invoke "../sisu.sh" "src/main/java"
|
||||
"build/classes/META-INF/sisu/javax.inject.Named")))
|
||||
(add-before 'check 'fix-paths
|
||||
(lambda _
|
||||
(substitute* (find-files "maven-model-builder/src/test/java" ".*.java")
|
||||
(("src/test") "maven-model-builder/src/test"))
|
||||
#t))
|
||||
(replace 'install
|
||||
(install-from-pom "maven-model-builder/pom.xml")))))
|
||||
(install-from-pom "pom.xml")))))
|
||||
(propagated-inputs
|
||||
(list java-plexus-interpolation
|
||||
java-plexus-utils
|
||||
|
@ -2403,12 +2403,12 @@ (define-public maven-3.0-model-builder
|
|||
(add-before 'build 'generate-components.xml
|
||||
(lambda _
|
||||
(mkdir-p "build/classes/META-INF/plexus")
|
||||
(chmod "components.sh" #o755)
|
||||
(invoke "./components.sh" "maven-model-builder/src/main/java"
|
||||
(chmod "../components.sh" #o755)
|
||||
(invoke "../components.sh" "src/main/java"
|
||||
"build/classes/META-INF/plexus/components.xml")))
|
||||
(add-before 'check 'remove-failing-test
|
||||
(lambda _
|
||||
(delete-file "maven-model-builder/src/test/java/org/apache/maven/model/interpolation/StringSearchModelInterpolatorTest.java")))))))
|
||||
(delete-file "src/test/java/org/apache/maven/model/interpolation/StringSearchModelInterpolatorTest.java")))))))
|
||||
(propagated-inputs
|
||||
`(("java-plexus-component-annotations" ,java-plexus-component-annotations)
|
||||
,@(filter
|
||||
|
|
Loading…
Reference in a new issue