More java packages for the maven-build-system
more/packages/java.scm
2173 | 2173 | (description "") | |
2174 | 2174 | (license (list license:cddl1.1)))) | |
2175 | 2175 | ||
2176 | + | ;; also called jaxb-api | |
2177 | + | (define-public java-javax-xml-bind | |
2178 | + | (package | |
2179 | + | (name "java-javax-xml-bind") | |
2180 | + | (version "2.4.0") | |
2181 | + | (source (origin | |
2182 | + | (method url-fetch) | |
2183 | + | (uri (string-append "https://github.com/javaee/jaxb-spec/archive/" | |
2184 | + | version ".tar.gz")) | |
2185 | + | (sha256 | |
2186 | + | (base32 | |
2187 | + | "0qd352ph8zfqiy7lzp6cczznz6j6vpd2877kqp72wi4w3zz88ydw")))) | |
2188 | + | (build-system ant-build-system) | |
2189 | + | (arguments | |
2190 | + | `(#:jar-name "javax-xml-bind.jar" | |
2191 | + | #:tests? #f; no tests | |
2192 | + | #:source-dir "jaxb-api/src/main/java" | |
2193 | + | #:phases | |
2194 | + | (modify-phases %standard-phases | |
2195 | + | (add-before 'build 'fix-java8 | |
2196 | + | (lambda _ | |
2197 | + | ;; This file is for java9+ | |
2198 | + | (for-each delete-file (find-files "." "module-info.java")) | |
2199 | + | #t)) | |
2200 | + | (add-before 'build 'copy-resources | |
2201 | + | (lambda _ | |
2202 | + | (copy-recursively "jaxb-api/src/main/resources" "build/classes") | |
2203 | + | #t))))) | |
2204 | + | (home-page "https://github.com/javaee/jaxb-spec") | |
2205 | + | (synopsis "") | |
2206 | + | (description "") | |
2207 | + | (license license:cddl1.1))) | |
2208 | + | ||
2209 | + | (define-public java-jaxb-txw-runtime | |
2210 | + | (package | |
2211 | + | (name "java-jaxb-txw-runtime") | |
2212 | + | (version "2.3.1") | |
2213 | + | (source (origin | |
2214 | + | (method url-fetch) | |
2215 | + | (uri (string-append "https://github.com/javaee/jaxb-v2/archive/" | |
2216 | + | version ".tar.gz")) | |
2217 | + | (sha256 | |
2218 | + | (base32 | |
2219 | + | "10jp3fcdib34i31ykd8xjp6i6lf7rylj0w0n2xkqs1rzirs1sjr2")))) | |
2220 | + | (build-system ant-build-system) | |
2221 | + | (arguments | |
2222 | + | `(#:jar-name "jaxb-txw-runtime.jar" | |
2223 | + | #:source-dir "jaxb-ri/txw/runtime/src/main/java" | |
2224 | + | #:test-dir "jaxb-ri/txw/runtime/src/test" | |
2225 | + | #:tests? #f; no runnable test | |
2226 | + | #:phases | |
2227 | + | (modify-phases %standard-phases | |
2228 | + | (add-before 'build 'fix-java8 | |
2229 | + | (lambda _ | |
2230 | + | ;; This file is for java9+ | |
2231 | + | (for-each delete-file (find-files "." "module-info.java")) | |
2232 | + | #t))))) | |
2233 | + | (home-page "https://github.com/javaee/jaxb-spec") | |
2234 | + | (synopsis "") | |
2235 | + | (description "") | |
2236 | + | (license license:cddl1.1))) | |
2237 | + | ||
2238 | + | (define-public java-jaxb-runtime | |
2239 | + | (package | |
2240 | + | (inherit java-jaxb-txw-runtime) | |
2241 | + | (name "java-jaxb-runtime") | |
2242 | + | (arguments | |
2243 | + | `(#:jar-name "jaxb-runtime.jar" | |
2244 | + | #:tests? #f; no tests | |
2245 | + | #:source-dir "jaxb-ri/runtime/impl/src/main/java" | |
2246 | + | #:phases | |
2247 | + | (modify-phases %standard-phases | |
2248 | + | (add-before 'build 'fix-java8 | |
2249 | + | (lambda _ | |
2250 | + | ;; This file is for java9+ | |
2251 | + | (for-each delete-file (find-files "." "module-info.java")) | |
2252 | + | #t)) | |
2253 | + | (add-before 'build 'copy-resources | |
2254 | + | (lambda _ | |
2255 | + | (copy-recursively "jaxb-ri/jxc/src/main/resources" "build/classes") | |
2256 | + | #t))))) | |
2257 | + | (inputs | |
2258 | + | `(("java-jaxb-txw-runtime" ,java-jaxb-txw-runtime) | |
2259 | + | ("java-javax-xml-bind" ,java-javax-xml-bind))) | |
2260 | + | (synopsis "") | |
2261 | + | (description ""))) | |
2262 | + | ||
2263 | + | (define-public java-jaxb-xjc | |
2264 | + | (package | |
2265 | + | (name "java-jaxb-xjc") | |
2266 | + | (version "2.3.1") | |
2267 | + | (source (origin | |
2268 | + | (method url-fetch) | |
2269 | + | (uri (string-append "https://github.com/javaee/jaxb-v2/archive/" | |
2270 | + | version ".tar.gz")) | |
2271 | + | (sha256 | |
2272 | + | (base32 | |
2273 | + | "10jp3fcdib34i31ykd8xjp6i6lf7rylj0w0n2xkqs1rzirs1sjr2")))) | |
2274 | + | (build-system ant-build-system) | |
2275 | + | (arguments | |
2276 | + | `(#:jar-name "jaxb-ri.jar" | |
2277 | + | #:tests? #f; no tests | |
2278 | + | #:source-dir "jaxb-ri/xjc/src/main/java" | |
2279 | + | #:phases | |
2280 | + | (modify-phases %standard-phases | |
2281 | + | (add-before 'build 'fix-java8 | |
2282 | + | (lambda _ | |
2283 | + | ;; This file is for java9+ | |
2284 | + | (for-each delete-file (find-files "." "module-info.java")) | |
2285 | + | #t)) | |
2286 | + | (add-before 'build 'copy-resources | |
2287 | + | (lambda _ | |
2288 | + | (copy-recursively "jaxb-ri/jxc/src/main/resources" "build/classes") | |
2289 | + | #t))))) | |
2290 | + | (home-page "https://github.com/javaee/jaxb-spec") | |
2291 | + | (synopsis "") | |
2292 | + | (description "") | |
2293 | + | (license license:cddl1.1))) | |
2294 | + | ||
2295 | + | ;; also called jpa-api | |
2296 | + | (define-public java-javax-persistence | |
2297 | + | (package | |
2298 | + | (name "java-javax-persistence") | |
2299 | + | (version "2.2") | |
2300 | + | (source (origin | |
2301 | + | (method url-fetch) | |
2302 | + | (uri (string-append "https://github.com/javaee/jpa-spec/archive/" | |
2303 | + | "javax.persistence-api-" version ".tar.gz")) | |
2304 | + | (sha256 | |
2305 | + | (base32 | |
2306 | + | "14kn70i1g0ij14gm6qbhgmfqprp6qvw3nkw8yd6a09806c70x576")))) | |
2307 | + | (build-system ant-build-system) | |
2308 | + | (arguments | |
2309 | + | `(#:jar-name "javax-persistence.jar" | |
2310 | + | #:tests? #f; no tests | |
2311 | + | #:source-dir "javax.persistence-api/src/main/java" | |
2312 | + | #:phases | |
2313 | + | (modify-phases %standard-phases | |
2314 | + | (add-before 'build 'copy-resources | |
2315 | + | (lambda _ | |
2316 | + | (copy-recursively "javax.persistence-api/src/main/resources" | |
2317 | + | "build/classes") | |
2318 | + | #t))))) | |
2319 | + | (home-page "https://github.com/eclipse-ee4j/jpa-api") | |
2320 | + | (synopsis "") | |
2321 | + | (description "") | |
2322 | + | (license (list license:epl1.0 license:edl1.0)))) | |
2323 | + | ||
2176 | 2324 | (define-public java-javax-ejb | |
2177 | 2325 | (package | |
2178 | 2326 | (name "java-javax-ejb") | |
… | |||
2315 | 2463 | (build-system ant-build-system) | |
2316 | 2464 | (arguments | |
2317 | 2465 | `(#:jar-name "wildfly-common.jar" | |
2466 | + | ;; Most tests fail because of Invalid bundle interface org.wildfly.common._private.CommonMessages (implementation not found) | |
2467 | + | #:tests? #f | |
2318 | 2468 | #:source-dir "src/main/java")) | |
2319 | 2469 | (inputs | |
2320 | - | `(("java-jboss-logging-bootstrap" ,java-jboss-logging-bootstrap))) | |
2470 | + | `(("java-jboss-logging" ,java-jboss-logging) | |
2471 | + | ("java-jboss-logging-annotations" ,java-jboss-logging-annotations))) | |
2472 | + | (native-inputs | |
2473 | + | `(("java-hamcrest-core" ,java-hamcrest-core) | |
2474 | + | ("java-junit" ,java-junit))) | |
2321 | 2475 | (home-page "") | |
2322 | 2476 | (synopsis "") | |
2323 | 2477 | (description "") | |
2324 | 2478 | (license license:lgpl2.1))) | |
2325 | 2479 | ||
2326 | - | (define-public java-jboss-logging-annotations | |
2480 | + | (define java-jboss-logmanager-bootstrap | |
2327 | 2481 | (package | |
2328 | - | (name "java-jboss-logging-annotations") | |
2329 | - | (version "2.1.0") | |
2482 | + | (name "java-jboss-logmanager") | |
2483 | + | (version "2.1.4") | |
2330 | 2484 | (source (origin | |
2331 | 2485 | (method url-fetch) | |
2332 | 2486 | (uri (string-append "https://github.com/jboss-logging/" | |
2333 | - | "jboss-logging-tools/archive/" version ".Final.tar.gz")) | |
2487 | + | "jboss-logmanager/archive/" version ".Final.tar.gz")) | |
2334 | 2488 | (file-name (string-append name "-" version ".tar.gz")) | |
2335 | 2489 | (sha256 | |
2336 | 2490 | (base32 | |
2337 | - | "1azi76q31qhmyq3v9cx0aq1gvddymj080bpc3lvacg45kh7vx9zm")))) | |
2491 | + | "09qj82wa612bfmwdpgpskg7qvi3n7q6v1arbhs7zbbrzlfgb7wnx")))) | |
2338 | 2492 | (build-system ant-build-system) | |
2339 | 2493 | (arguments | |
2340 | - | `(#:jar-name "jboss-logging-annotations.jar" | |
2341 | - | #:source-dir "annotations/src/main/java" | |
2494 | + | `(#:jar-name "jboss-logmanager.jar" | |
2495 | + | #:source-dir "src/main/java" | |
2342 | 2496 | #:tests? #f; no tests | |
2343 | 2497 | #:phases | |
2344 | 2498 | (modify-phases %standard-phases | |
2499 | + | (add-before 'build 'stub-wildfly | |
2500 | + | (lambda _ | |
2501 | + | ;; Wildfly is a cyclic dependency. By stubbing it out, we break | |
2502 | + | ;; two cycles at once! | |
2503 | + | (substitute* "src/main/java/org/jboss/logmanager/ExtLogRecord.java" | |
2504 | + | (("import org.wildfly.common.*") "") | |
2505 | + | (("HostName.getQualifiedHostName\\(\\)") "\"example.com\"") | |
2506 | + | (("Process.getProcessId\\(\\)") "1515") | |
2507 | + | (("Process.getProcessName\\(\\)") "\"java\"")) | |
2508 | + | (substitute* "src/main/java/org/jboss/logmanager/handlers/SyslogHandler.java" | |
2509 | + | (("import org.wildfly.common.*") "") | |
2510 | + | (("Process.getProcessName\\(\\)") "\"java\"") | |
2511 | + | (("Process.getProcessId\\(\\)") "1515")) | |
2512 | + | #t)) | |
2345 | 2513 | (add-before 'build 'copy-resources | |
2346 | 2514 | (lambda _ | |
2347 | - | (copy-recursively "annotations/src/main/resources" "build/classes") | |
2515 | + | (copy-recursively "src/main/resources" "build/classes") | |
2348 | 2516 | #t))))) | |
2517 | + | (inputs | |
2518 | + | `(("java-jboss-modules" ,java-jboss-modules) | |
2519 | + | ("java-jsonp" ,java-jsonp))) | |
2520 | + | ;("java-wildfly-common" ,java-wildfly-common))) | |
2349 | 2521 | (home-page "") | |
2350 | 2522 | (synopsis "") | |
2351 | 2523 | (description "") | |
2352 | - | (license license:lgpl2.1+))) | |
2524 | + | (license license:asl2.0))) | |
2353 | 2525 | ||
2354 | 2526 | (define-public java-jboss-logmanager | |
2355 | 2527 | (package | |
2356 | - | (name "java-jboss-logmanager") | |
2357 | - | (version "2.1.4") | |
2358 | - | (source (origin | |
2359 | - | (method url-fetch) | |
2360 | - | (uri (string-append "https://github.com/jboss-logging/" | |
2361 | - | "jboss-logmanager/archive/" version ".Final.tar.gz")) | |
2362 | - | (file-name (string-append name "-" version ".tar.gz")) | |
2363 | - | (sha256 | |
2364 | - | (base32 | |
2365 | - | "09qj82wa612bfmwdpgpskg7qvi3n7q6v1arbhs7zbbrzlfgb7wnx")))) | |
2366 | - | (build-system ant-build-system) | |
2528 | + | (inherit java-jboss-logmanager-bootstrap) | |
2367 | 2529 | (arguments | |
2368 | 2530 | `(#:jar-name "jboss-logmanager.jar" | |
2369 | 2531 | #:source-dir "src/main/java" | |
… | |||
2377 | 2539 | (inputs | |
2378 | 2540 | `(("java-jboss-modules" ,java-jboss-modules) | |
2379 | 2541 | ("java-jsonp" ,java-jsonp) | |
2380 | - | ("java-wildfly-common" ,java-wildfly-common))) | |
2381 | - | (home-page "") | |
2382 | - | (synopsis "") | |
2383 | - | (description "") | |
2384 | - | (license license:asl2.0))) | |
2542 | + | ("java-wildfly-common" ,java-wildfly-common))))) | |
2385 | 2543 | ||
2386 | 2544 | (define-public java-jboss-logging | |
2387 | 2545 | (package | |
… | |||
2402 | 2560 | #:tests? #f; no tests | |
2403 | 2561 | #:phases | |
2404 | 2562 | (modify-phases %standard-phases | |
2563 | + | (add-before 'build 'fix-conversion-error | |
2564 | + | (lambda _ | |
2565 | + | ;; Prevent an error that "cannot convert Map<String, String> to | |
2566 | + | ;; Map<String, Object>. | |
2567 | + | (substitute* "src/main/java/org/jboss/logging/Slf4jLoggerProvider.java" | |
2568 | + | (("import java.util.Map") | |
2569 | + | "import java.util.HashMap; | |
2570 | + | import java.util.Map") | |
2571 | + | (("Map<String, Object> map = MDC.getCopyOfContextMap\\(\\);") | |
2572 | + | "Map<String, String> map_mdc = MDC.getCopyOfContextMap(); | |
2573 | + | Map<String, Object> map2 = new HashMap<String, Object>(); | |
2574 | + | for (Map.Entry<String, String> entry : map_mdc.entrySet()) { | |
2575 | + | map2.put(entry.getKey(), entry.getValue()); | |
2576 | + | } | |
2577 | + | if (map_mdc == null) map2 = null; | |
2578 | + | final Map<String, Object> map = map2;")) | |
2579 | + | #t)) | |
2405 | 2580 | (add-before 'build 'copy-resources | |
2406 | 2581 | (lambda _ | |
2407 | 2582 | (copy-recursively "src/main/resources" "build/classes") | |
2408 | 2583 | #t))))) | |
2409 | 2584 | (inputs | |
2410 | - | `(("java-jboss-logmanager" ,java-jboss-logmanager) | |
2411 | - | ("java-log4j-api" ,java-log4j-api))) | |
2585 | + | `(("java-jboss-logmanager-bootstrap" ,java-jboss-logmanager-bootstrap) | |
2586 | + | ("java-log4j-1.2-api" ,java-log4j-1.2-api) | |
2587 | + | ("java-log4j-api" ,java-log4j-api) | |
2588 | + | ("java-slf4j-api" ,java-slf4j-api))) | |
2412 | 2589 | (home-page "") | |
2413 | 2590 | (synopsis "") | |
2414 | 2591 | (description "") | |
2415 | 2592 | (license license:asl2.0))) | |
2416 | 2593 | ||
2417 | - | (define-public java-jboss-logging-bootstrap | |
2594 | + | (define-public java-jboss-logging-annotations | |
2418 | 2595 | (package | |
2419 | - | (inherit java-jboss-logging) | |
2420 | - | (name "java-jboss-logging-bootstrap") | |
2596 | + | (name "java-jboss-logging-annotations") | |
2597 | + | (version "2.1.0") | |
2598 | + | (source (origin | |
2599 | + | (method url-fetch) | |
2600 | + | (uri (string-append "https://github.com/jboss-logging/" | |
2601 | + | "jboss-logging-tools/archive/" version ".Final.tar.gz")) | |
2602 | + | (file-name (string-append name "-" version ".tar.gz")) | |
2603 | + | (sha256 | |
2604 | + | (base32 | |
2605 | + | "1azi76q31qhmyq3v9cx0aq1gvddymj080bpc3lvacg45kh7vx9zm")))) | |
2606 | + | (build-system ant-build-system) | |
2421 | 2607 | (arguments | |
2422 | - | `(#:jar-name "jboss-logging-bootstrap.jar" | |
2608 | + | `(#:jar-name "jboss-logging-annotations.jar" | |
2609 | + | #:source-dir "annotations/src/main/java" | |
2423 | 2610 | #:tests? #f; no tests | |
2424 | 2611 | #:phases | |
2425 | 2612 | (modify-phases %standard-phases | |
2426 | - | (replace 'build | |
2613 | + | (add-before 'build 'copy-resources | |
2427 | 2614 | (lambda _ | |
2428 | - | (mkdir-p "build/classes") | |
2429 | - | (mkdir-p "build/jar") | |
2430 | - | (apply invoke "javac" "-d" "build/classes" | |
2431 | - | (map (lambda (file) (string-append | |
2432 | - | "src/main/java/org/jboss/logging/" | |
2433 | - | file)) | |
2434 | - | '("Messages.java" "LoggingLocale.java"))) | |
2435 | - | (invoke "jar" "cf" "build/jar/jboss-logging-bootstrap.jar" | |
2436 | - | "-C" "build/classes" ".") | |
2615 | + | (copy-recursively "annotations/src/main/resources" "build/classes") | |
2437 | 2616 | #t))))) | |
2438 | 2617 | (inputs | |
2439 | - | `(("java-log4j-api" ,java-log4j-api))))) | |
2618 | + | `(("java-jboss-logging" ,java-jboss-logging))) | |
2619 | + | (home-page "") | |
2620 | + | (synopsis "") | |
2621 | + | (description "") | |
2622 | + | (license license:lgpl2.1+))) | |
2440 | 2623 | ||
2441 | 2624 | (define-public java-hibernate-validator-engine | |
2442 | 2625 | (package | |
2443 | 2626 | (name "java-hibernate-validator-engine") | |
2444 | - | (version "6.0.13") | |
2627 | + | ;(version "6.0.13") | |
2628 | + | (version "4.3.3") | |
2445 | 2629 | (source (origin | |
2446 | 2630 | (method url-fetch) | |
2447 | 2631 | (uri (string-append "https://github.com/hibernate/" | |
… | |||
2449 | 2633 | ".Final.tar.gz")) | |
2450 | 2634 | (sha256 | |
2451 | 2635 | (base32 | |
2452 | - | "107220ydll2fgvqzmzrby7b65vi4hsvrnmbb6idrxfmckm05grn4")))) | |
2636 | + | "1ifyqgvlzv9fxgw9ssd6slpv0ky9cgxc1xg2rwqiw1nmwgndjnkb")))) | |
2453 | 2637 | (build-system ant-build-system) | |
2454 | 2638 | (arguments | |
2455 | 2639 | `(#:jar-name "hibernate-validator-engine.jar" | |
… | |||
2462 | 2646 | #t))))) | |
2463 | 2647 | (inputs | |
2464 | 2648 | `(("java-fasterxml-classmate" ,java-fasterxml-classmate) | |
2649 | + | ("java-javax-persistence" ,java-javax-persistence) | |
2465 | 2650 | ("java-javax-validation" ,java-javax-validation) | |
2466 | 2651 | ("java-jboss-logging" ,java-jboss-logging) | |
2652 | + | ("java-jboss-logging-annotations" ,java-jboss-logging-annotations) | |
2467 | 2653 | ("java-joda-time" ,java-joda-time) | |
2468 | 2654 | ("java-jsoup" ,java-jsoup) | |
2469 | 2655 | ;; For javax-el (el-api) |