summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-06-27 19:25:27 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-07-17 04:18:49 +0200
commitebe6e6f5d273277c59cbdea145c839d17aec6fe4 (patch)
tree2356148ab39b7218f9bc3f37c50f53c1be8d253d /gnu
parentf738576086fbe474477c06fd6be8ac73f3148336 (diff)
gnu: Add maven-install-plugin.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/maven.scm60
1 files changed, 60 insertions, 0 deletions
diff --git a/gnu/packages/maven.scm b/gnu/packages/maven.scm
index 126e077208b..de74cbc8dda 100644
--- a/gnu/packages/maven.scm
+++ b/gnu/packages/maven.scm
@@ -2836,3 +2836,63 @@ Maven project dependencies.")
2836 (description "This package contains an API to install, deploy and resolve 2836 (description "This package contains an API to install, deploy and resolve
2837artifacts in Maven 3.") 2837artifacts in Maven 3.")
2838 (license license:asl2.0))) 2838 (license license:asl2.0)))
2839
2840(define-public maven-install-plugin
2841 (package
2842 (name "maven-install-plugin")
2843 (version "3.0.0-M1")
2844 (source (origin
2845 (method url-fetch)
2846 (uri (string-append "mirror://apache/maven/plugins/"
2847 "maven-install-plugin-" version
2848 "-source-release.zip"))
2849 (sha256
2850 (base32
2851 "1l9iydxririrair0i5sk2iypn9wspzbb666lc0ddg20yyr8w39dm"))))
2852 (build-system ant-build-system)
2853 (arguments
2854 `(#:tests? #f; require maven-plugin-testing-harness
2855 #:jar-name "maven-install-plugin.jar"
2856 #:source-dir "src/main/java"
2857 #:phases
2858 (modify-phases %standard-phases
2859 (add-before 'build 'fix-pom
2860 (lambda _
2861 (substitute* "pom.xml"
2862 (("maven-project") "maven-core")
2863 (("maven-artifact-manager") "maven-artifact")
2864 (("2.0.6") "3.0"))
2865 #t))
2866 (add-before 'build 'generate-plugin.xml
2867 (generate-plugin.xml "pom.xml"
2868 "install"
2869 "src/main/java/org/apache/maven/plugins/install"
2870 (list
2871 (list "AbstractInstallMojo.java" "InstallFileMojo.java")
2872 (list "AbstractInstallMojo.java" "InstallMojo.java"))))
2873 (replace 'install
2874 (install-from-pom "pom.xml")))))
2875 (propagated-inputs
2876 `(("maven-artifact" ,maven-artifact)
2877 ("maven-plugin-api" ,maven-plugin-api)
2878 ("maven-compat" ,maven-compat)
2879 ("maven-artifact-transfer" ,maven-artifact-transfer)
2880 ("maven-plugins-pom-23" ,maven-plugins-pom-23)
2881 ("java-plexus-digest" ,java-plexus-digest)))
2882 (inputs
2883 `(("maven-plugin-annotations" ,maven-plugin-annotations)
2884 ("java-slf4j-api" ,java-slf4j-api)))
2885 (native-inputs
2886 `(("unzip" ,unzip)))
2887 (home-page "https://maven.apache.org/plugin/maven-install-plugin")
2888 (synopsis "Maven's install plugin")
2889 (description "The Install Plugin is used during the install phase to add
2890artifact(s) to the local repository. The Install Plugin uses the information
2891in the POM (groupId, artifactId, version) to determine the proper location for
2892the artifact within the local repository.
2893
2894The local repository is the local cache where all artifacts needed for the
2895build are stored. By default, it is located within the user's home directory
2896(@file{~/.m2/repository}) but the location can be configured in
2897@file{~/.m2/settings.xml} using the @code{<localRepository>} element.")
2898 (license license:asl2.0)))