diff options
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/maven.scm | 60 |
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 |
| 2837 | artifacts in Maven 3.") | 2837 | artifacts 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 | ||
| 2890 | artifact(s) to the local repository. The Install Plugin uses the information | ||
| 2891 | in the POM (groupId, artifactId, version) to determine the proper location for | ||
| 2892 | the artifact within the local repository. | ||
| 2893 | |||
| 2894 | The local repository is the local cache where all artifacts needed for the | ||
| 2895 | build 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))) | ||
