Remove duplicate maven packages
more/packages/maven.scm
204 | 204 | (description "") | |
205 | 205 | (license license:asl2.0))) | |
206 | 206 | ||
207 | - | (define-public maven-filtering | |
208 | - | (package | |
209 | - | (name "maven-filtering") | |
210 | - | (version "3.1.1") | |
211 | - | (source (origin | |
212 | - | (method url-fetch) | |
213 | - | (uri (string-append "https://archive.apache.org/dist/maven/" | |
214 | - | "shared/maven-filtering-" version | |
215 | - | "-source-release.zip")) | |
216 | - | (sha256 | |
217 | - | (base32 | |
218 | - | "09wrdhchnszd2l6h4z30ra0bv1a19qyjgac9z8zf1pn0m4nw05yz")))) | |
219 | - | (build-system ant-build-system) | |
220 | - | (arguments | |
221 | - | `(#:jar-name "maven-filtering.jar" | |
222 | - | #:source-dir "src/main/java" | |
223 | - | #:test-dir "src/test" | |
224 | - | #:tests? #f; tests fail for now... | |
225 | - | #:phases | |
226 | - | (modify-phases %standard-phases | |
227 | - | (add-before 'build 'remove-failing-test | |
228 | - | (lambda _ | |
229 | - | (delete-file "src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java") | |
230 | - | (substitute* "src/test/java/org/apache/maven/shared/filtering/StubMavenSession.java" | |
231 | - | (("org.sonatype.aether.RepositorySystemSession") | |
232 | - | "org.eclipse.aether.RepositorySystemSession")) | |
233 | - | #t))))) | |
234 | - | (inputs | |
235 | - | `(("java-jsr305" ,java-jsr305) | |
236 | - | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
237 | - | ("java-plexus-container-default" ,java-plexus-container-default) | |
238 | - | ("java-plexus-interpolation" ,java-plexus-interpolation) | |
239 | - | ("java-plexus-utils" ,java-plexus-utils) | |
240 | - | ("java-sisu-build-api" ,java-sisu-build-api) | |
241 | - | ("maven-core" ,maven-core) | |
242 | - | ("maven-model" ,maven-model) | |
243 | - | ("maven-settings" ,maven-settings) | |
244 | - | ("maven-shared-utils" ,maven-shared-utils))) | |
245 | - | (native-inputs | |
246 | - | `(("java-assertj" ,java-assertj) | |
247 | - | ("java-guava" ,java-guava) | |
248 | - | ("java-hamcrest-core" ,java-hamcrest-core) | |
249 | - | ("java-junit" ,java-junit) | |
250 | - | ("java-mockito-1" ,java-mockito-1) | |
251 | - | ("java-plexus-classworlds" ,java-plexus-classworlds) | |
252 | - | ("maven-resolver-api" ,maven-resolver-api) | |
253 | - | ("unzip" ,unzip))) | |
254 | - | (home-page "") | |
255 | - | (synopsis "") | |
256 | - | (description "") | |
257 | - | (license license:asl2.0))) | |
258 | - | ||
259 | 207 | (define-public maven-plugin-testing | |
260 | 208 | (package | |
261 | 209 | (name "maven-plugin-testing") | |
… | |||
823 | 771 | ;; modello plugins: | |
824 | 772 | ("java-modello-plugins-java" ,java-modello-plugins-java))) | |
825 | 773 | (description ""))) | |
826 | - | ||
827 | - | (define-public maven-resources-plugin | |
828 | - | (package | |
829 | - | (name "maven-resources-plugin") | |
830 | - | (version "3.1.0") | |
831 | - | (source (origin | |
832 | - | (method url-fetch) | |
833 | - | (uri (string-append "https://github.com/apache/" | |
834 | - | "maven-resources-plugin/archive/" | |
835 | - | "maven-resources-plugin-" version ".tar.gz")) | |
836 | - | (sha256 | |
837 | - | (base32 | |
838 | - | "1f5gnjg2xmqfxml6k0ydyd1sxxwzgnb24qn6avcc4mijwd8a84pl")))) | |
839 | - | (build-system ant-build-system) | |
840 | - | (arguments | |
841 | - | `(#:jar-name "maven-resources-plugin.jar" | |
842 | - | #:source-dir "src/main/java" | |
843 | - | #:test-dir "src/test" | |
844 | - | #:tests? #f; test depends on maven-plugin-test-harness | |
845 | - | #:imported-modules | |
846 | - | ((more build maven pom) | |
847 | - | (more build maven java) | |
848 | - | (more build maven plugin) | |
849 | - | ,@%ant-build-system-modules) | |
850 | - | #:modules | |
851 | - | ((more build maven pom) | |
852 | - | (more build maven java) | |
853 | - | (more build maven plugin) | |
854 | - | (sxml simple) | |
855 | - | (guix build ant-build-system) | |
856 | - | (guix build java-utils) | |
857 | - | (guix build utils)) | |
858 | - | ;; Need maven-plugin-tools and a corresponding phase | |
859 | - | #:phases | |
860 | - | (modify-phases %standard-phases | |
861 | - | (add-before 'build 'copy-pom | |
862 | - | (lambda _ | |
863 | - | (mkdir-p "build/classes/META-INF/maven") | |
864 | - | (copy-file "pom.xml" "build/classes/META-INF/pom.xml") | |
865 | - | #t)) | |
866 | - | (add-before 'build 'generate-plugin.xml | |
867 | - | (lambda _ | |
868 | - | (let* ((pom-content (get-pom "pom.xml")) | |
869 | - | (name (pom-name pom-content)) | |
870 | - | (description (pom-description pom-content)) | |
871 | - | (dependencies (pom-dependencies pom-content)) | |
872 | - | (mojos | |
873 | - | (with-directory-excursion "src/main/java/org/apache/maven/plugins/resources/" | |
874 | - | `(mojos | |
875 | - | ,(generate-mojo-from-files maven-convert-type | |
876 | - | "ResourcesMojo.java" | |
877 | - | "CopyResourcesMojo.java") | |
878 | - | ,(generate-mojo-from-files maven-convert-type | |
879 | - | "ResourcesMojo.java") | |
880 | - | ,(generate-mojo-from-files maven-convert-type | |
881 | - | "ResourcesMojo.java" | |
882 | - | "TestResourcesMojo.java"))))) | |
883 | - | (mkdir-p "build/classes/META-INF/maven") | |
884 | - | (with-output-to-file "build/classes/META-INF/maven/plugin.xml" | |
885 | - | (lambda _ | |
886 | - | (sxml->xml | |
887 | - | `(plugin | |
888 | - | (name ,name) | |
889 | - | (description ,description) | |
890 | - | (groupId "org.apache.maven.plugins") | |
891 | - | (artifactId "maven-resources-plugin") | |
892 | - | (version ,,version) | |
893 | - | (goalPrefix "resources") | |
894 | - | (isolatedRealm "false") | |
895 | - | (inheritedByDefault "true") | |
896 | - | ,mojos | |
897 | - | (dependencies | |
898 | - | ,@dependencies)))))))) | |
899 | - | (add-after 'install 'install-pom | |
900 | - | (lambda* (#:key outputs #:allow-other-keys) | |
901 | - | (install-file "pom.xml" (string-append (assoc-ref outputs "out") | |
902 | - | "/share/pom.xml"))))))) | |
903 | - | (inputs | |
904 | - | `(("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
905 | - | ("java-plexus-container-default" ,java-plexus-container-default) | |
906 | - | ("java-plexus-utils" ,java-plexus-utils) | |
907 | - | ("maven-core" ,maven-core) | |
908 | - | ("maven-filtering" ,maven-filtering) | |
909 | - | ("maven-model" ,maven-model) | |
910 | - | ("maven-plugin-annotations" ,maven-plugin-annotations) | |
911 | - | ("maven-plugin-api" ,maven-plugin-api))) | |
912 | - | (native-inputs | |
913 | - | `(("java-junit" ,java-junit))) | |
914 | - | (home-page "") | |
915 | - | (synopsis "") | |
916 | - | (description "") | |
917 | - | (license license:asl2.0))) |