build hibernate engine
more/packages/java.scm
1478 | 1478 | (version "1.9.1") | |
1479 | 1479 | (source (origin | |
1480 | 1480 | (method url-fetch) | |
1481 | - | (uri (string-append "http://eclipsemirror.itemis.de/eclipse/tools" | |
1481 | + | (uri (string-append "https://eclipsemirror.itemis.de/eclipse/tools" | |
1482 | 1482 | "/aspectj/aspectj-" version "-src.jar")) | |
1483 | 1483 | (sha256 | |
1484 | 1484 | (base32 | |
… | |||
2353 | 2353 | (license (list license:epl2.0 license:gpl2+)))) | |
2354 | 2354 | ||
2355 | 2355 | ;; JSR380 jsr380 | |
2356 | - | (define-public java-javax-validation | |
2356 | + | (define-public java-javax-validation-1 | |
2357 | 2357 | (package | |
2358 | - | (name "java-javax-validation") | |
2359 | - | (version "2.0.1") | |
2358 | + | (name "java-javax-validation-1") | |
2359 | + | (version "1.0.0.GA") | |
2360 | 2360 | (source (origin | |
2361 | 2361 | (method url-fetch) | |
2362 | 2362 | (uri (string-append "https://github.com/beanvalidation/" | |
2363 | 2363 | "beanvalidation-api/archive/" version | |
2364 | - | ".Final.tar.gz")) | |
2364 | + | ".tar.gz")) | |
2365 | 2365 | (sha256 | |
2366 | 2366 | (base32 | |
2367 | - | "0mmzwrgwfvi68jfjh8ijy8za3wmp5rmwsplyghwyf9lwb9p5x5qz")))) | |
2367 | + | "03i6p5snm6chpsj62lrvnwq9qr120iv9a6bhkkbqr1j48d2bp8iv")))) | |
2368 | 2368 | (build-system ant-build-system) | |
2369 | 2369 | (arguments | |
2370 | 2370 | `(#:jar-name "javax-validation.jar" | |
2371 | 2371 | #:tests? #f; require an implementation like Hibernate Validator | |
2372 | - | #:source-dir "src/main/java" | |
2373 | - | #:phases | |
2374 | - | (modify-phases %standard-phases | |
2375 | - | (add-before 'build 'copy-resources | |
2376 | - | (lambda _ | |
2377 | - | (copy-recursively "src/main/resources" "build/classes") | |
2378 | - | #t))))) | |
2372 | + | #:source-dir "src/main/java")) | |
2379 | 2373 | (native-inputs | |
2380 | 2374 | `(("java-hamcrest-core" ,java-hamcrest-core) | |
2381 | 2375 | ("java-testng" ,java-testng))) | |
… | |||
2384 | 2378 | (description "") | |
2385 | 2379 | (license license:asl2.0))) | |
2386 | 2380 | ||
2381 | + | ;; JSR380 jsr380 | |
2382 | + | (define-public java-javax-validation | |
2383 | + | (package | |
2384 | + | (inherit java-javax-validation-1) | |
2385 | + | (name "java-javax-validation") | |
2386 | + | (version "2.0.1") | |
2387 | + | (source (origin | |
2388 | + | (method url-fetch) | |
2389 | + | (uri (string-append "https://github.com/beanvalidation/" | |
2390 | + | "beanvalidation-api/archive/" version | |
2391 | + | ".Final.tar.gz")) | |
2392 | + | (sha256 | |
2393 | + | (base32 | |
2394 | + | "0mmzwrgwfvi68jfjh8ijy8za3wmp5rmwsplyghwyf9lwb9p5x5qz")))) | |
2395 | + | (arguments | |
2396 | + | `(#:phases | |
2397 | + | (modify-phases %standard-phases | |
2398 | + | (add-before 'build 'copy-resources | |
2399 | + | (lambda _ | |
2400 | + | (copy-recursively "src/main/resources" "build/classes") | |
2401 | + | #t))) | |
2402 | + | ,@(package-arguments java-javax-validation-1))))) | |
2403 | + | ||
2387 | 2404 | (define-public java-fasterxml-classmate | |
2388 | 2405 | (package | |
2389 | 2406 | (name "java-fasterxml-classmate") | |
… | |||
2634 | 2651 | (sha256 | |
2635 | 2652 | (base32 | |
2636 | 2653 | "1ifyqgvlzv9fxgw9ssd6slpv0ky9cgxc1xg2rwqiw1nmwgndjnkb")))) | |
2654 | + | ;"107220ydll2fgvqzmzrby7b65vi4hsvrnmbb6idrxfmckm05grn4")))) | |
2637 | 2655 | (build-system ant-build-system) | |
2638 | 2656 | (arguments | |
2639 | 2657 | `(#:jar-name "hibernate-validator-engine.jar" | |
2640 | 2658 | #:source-dir "engine/src/main/java" | |
2659 | + | #:test-dir "engine/src/test" | |
2660 | + | #:tests? #f; Require more parts of hibernate? | |
2641 | 2661 | #:phases | |
2642 | 2662 | (modify-phases %standard-phases | |
2663 | + | (add-before 'build 'generate-sources | |
2664 | + | (lambda _ | |
2665 | + | (invoke "xjc" "-d" "engine/src/main/java" | |
2666 | + | "-p" "org.hibernate.validator.internal.xml" "-extension" | |
2667 | + | "engine/src/main/xsd/validation-configuration-1.0.xsd") | |
2668 | + | (invoke "xjc" "-d" "engine/src/main/java" | |
2669 | + | "-p" "org.hibernate.validator.internal.xml" "-extension" | |
2670 | + | "-b" "engine/src/main/xjb/binding-customization.xjb" | |
2671 | + | "engine/src/main/xsd/validation-mapping-1.0.xsd") | |
2672 | + | #t)) | |
2673 | + | (add-before 'build 'fix-getters | |
2674 | + | (lambda _ | |
2675 | + | (substitute* (find-files "." ".*.java") | |
2676 | + | (("getIgnoreAnnotations") "isIgnoreAnnotations") | |
2677 | + | (("getIncludeExistingValidators") "isIncludeExistingValidators")) | |
2678 | + | #t)) | |
2643 | 2679 | (add-before 'build 'copy-resources | |
2644 | 2680 | (lambda _ | |
2645 | 2681 | (copy-recursively "engine/src/main/resources" "build/classes") | |
… | |||
2647 | 2683 | (inputs | |
2648 | 2684 | `(("java-fasterxml-classmate" ,java-fasterxml-classmate) | |
2649 | 2685 | ("java-javax-persistence" ,java-javax-persistence) | |
2650 | - | ("java-javax-validation" ,java-javax-validation) | |
2686 | + | ("java-javax-validation-1" ,java-javax-validation-1) | |
2651 | 2687 | ("java-jboss-logging" ,java-jboss-logging) | |
2652 | 2688 | ("java-jboss-logging-annotations" ,java-jboss-logging-annotations) | |
2653 | 2689 | ("java-joda-time" ,java-joda-time) | |
2654 | 2690 | ("java-jsoup" ,java-jsoup) | |
2655 | 2691 | ;; For javax-el (el-api) | |
2656 | 2692 | ("java-tomcat" ,java-tomcat))) | |
2693 | + | (native-inputs | |
2694 | + | `(("java-easymock" ,java-easymock) | |
2695 | + | ("java-testng" ,java-testng))) | |
2657 | 2696 | (home-page "https://hibernate.org/validator/") | |
2658 | 2697 | (synopsis "") | |
2659 | 2698 | (description "") |