summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 20:58:23 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:20:25 +0200
commitc45e7ee688cb48d7742b5093745a9cf811d110bf (patch)
treea96f2057cf03cd2280b408456f17a6515950dc14 /gnu
parent90a1d04cc12e58af8c4b933490dd3587771f0e0e (diff)
gnu: Add maven-shared-incremental.
* gnu/packages/maven.scm (maven-shared-incremental): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maven.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index dced82977dc..f00e29e0e2f 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2979,3 +2979,58 @@ associated to the test source code.
2979Thus, this allows the separation of resources for the main source code and its 2979Thus, this allows the separation of resources for the main source code and its
2980unit tests.") 2980unit tests.")
2981 (license license:asl2.0))) 2981 (license license:asl2.0)))
2982
2983(define-public maven-shared-incremental
2984 (package
2985 (name "maven-shared-incremental")
2986 (version "1.1")
2987 (source (origin
2988 (method url-fetch)
2989 (uri (string-append "https://archive.apache.org/dist/maven/shared/"
2990 "maven-shared-incremental-" version
2991 "-source-release.zip"))
2992 (sha256
2993 (base32
2994 "03n4nfswyg9ahkz2zx4skcr3ghs01zh95g9js51hc75mfqx9b976"))))
2995 (build-system ant-build-system)
2996 (arguments
2997 `(#:jar-name "shared-incremental.java"
2998 #:source-dir "src/main/java"
2999 #:test-dir "src/test"
3000 #:phases
3001 (modify-phases %standard-phases
3002 (add-before 'build 'change-parent
3003 (lambda _
3004 (substitute* "pom.xml"
3005 (("19") "30"))
3006 #t))
3007 (add-before 'build 'fix-pom
3008 (lambda _
3009 (substitute* "pom.xml"
3010 (("plexus-component-api") "plexus-component-annotations"))
3011 #t))
3012 (add-after 'build 'generate-metadata
3013 (lambda _
3014 (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes")
3015 "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
3016 "--source" "src/main/java"
3017 "--output" "build/classes/META-INF/plexus/components.xml"
3018 "--classes" "build/classes"
3019 "--descriptors" "build/classes/META-INF")
3020 #t))
3021 (replace 'install
3022 (install-from-pom "pom.xml")))))
3023 (propagated-inputs
3024 `(("maven-plugin-api" ,maven-plugin-api)
3025 ("maven-core" ,maven-core)
3026 ("maven-shared-utils" ,maven-shared-utils)
3027 ("java-plexus-component-annotations" ,java-plexus-component-annotations)
3028 ("maven-parent-pom" ,maven-parent-pom-30)))
3029 (native-inputs
3030 `(("unzip" ,unzip)
3031 ("java-plexus-component-metadata" ,java-plexus-component-metadata)))
3032 (home-page "https://maven.apache.org/shared/maven-shared-incremental")
3033 (synopsis "Maven Incremental Build support utilities")
3034 (description "This package contains various utility classes and plexus
3035components for supporting incremental build functionality in maven plugins.")
3036 (license license:asl2.0)))