Add packages for maven plugins
more/packages/java.scm
26 | 26 | #:use-module (guix cvs-download) | |
27 | 27 | #:use-module (guix hg-download) | |
28 | 28 | #:use-module (guix utils) | |
29 | + | #:use-module (guix gexp) | |
29 | 30 | #:use-module (guix build syscalls) | |
30 | 31 | #:use-module (guix build-system ant) | |
31 | 32 | #:use-module (guix build-system gnu) | |
… | |||
47 | 48 | #:use-module (gnu packages web) | |
48 | 49 | #:use-module (gnu packages xml) | |
49 | 50 | #:use-module (gnu packages xorg) | |
51 | + | #:use-module (more packages maven) | |
50 | 52 | #:use-module (more packages python)) | |
51 | 53 | ||
52 | 54 | (define-public java-fastutil | |
… | |||
1151 | 1153 | (snippet | |
1152 | 1154 | `(begin | |
1153 | 1155 | (for-each delete-file (find-files "." ".*.jar")) | |
1154 | - | (with-directory-excursion (string-append "java-josm-" ,version "/core") | |
1156 | + | (with-directory-excursion "core" | |
1155 | 1157 | (delete-file-recursively "test/lib") | |
1156 | - | (delete-file-recursively "windows")))))) | |
1158 | + | (delete-file-recursively "windows")) | |
1159 | + | #t)))) | |
1157 | 1160 | (build-system ant-build-system) | |
1158 | 1161 | (native-inputs | |
1159 | 1162 | `(("java-javacc" ,java-javacc))) | |
… | |||
1181 | 1184 | #:jar-name "josm.jar" | |
1182 | 1185 | #:phases | |
1183 | 1186 | (modify-phases %standard-phases | |
1184 | - | (add-after 'unpack 'rm-build.xml | |
1187 | + | (add-after 'unpack 'chdir | |
1188 | + | (lambda _ | |
1189 | + | (chdir "core") | |
1190 | + | #t)) | |
1191 | + | (add-after 'chdir 'rm-build.xml | |
1185 | 1192 | (lambda* _ | |
1186 | 1193 | (delete-file "build.xml") | |
1187 | 1194 | #t)) | |
… | |||
1312 | 1319 | "_spec-1.0.1.Final.tar.gz")) | |
1313 | 1320 | (sha256 | |
1314 | 1321 | (base32 | |
1315 | - | "0zvglvscq177lahvp8n9nlm0vkdxlf6db0fs8jcy8zf82z6k4d2n")))) | |
1322 | + | "0qmczwma8wiyqvs95yy6dibjhkzqyhfvik1qk01bxp9kzah9k882")))) | |
1316 | 1323 | (build-system ant-build-system) | |
1317 | 1324 | (arguments | |
1318 | 1325 | `(#:jar-name "java-jboss-annotations-api_spec.jar" | |
… | |||
1406 | 1413 | ".RELEASE.tar.gz")) | |
1407 | 1414 | (sha256 | |
1408 | 1415 | (base32 | |
1409 | - | "13vbshq61cb6r37yb87rky1q16dzh5l76l9iiskgbzqpzp4igjk5")))) | |
1416 | + | "036jcwh2g3qlv14lalhkpkjnwc1hjn4zdqf251231vywxyd838zm")))) | |
1410 | 1417 | (arguments | |
1411 | 1418 | `(#:jar-name "java-spring-framework-core.jar" | |
1412 | 1419 | #:jdk ,icedtea-8 | |
… | |||
1430 | 1437 | (add-before 'configure 'chdir | |
1431 | 1438 | (lambda _ | |
1432 | 1439 | ;; Needed because tests look for data in src/... directly. | |
1433 | - | (chdir "spring-core"))) | |
1440 | + | (chdir "spring-core") | |
1441 | + | #t)) | |
1434 | 1442 | (add-before 'configure 'rename-dep | |
1435 | 1443 | (lambda _ | |
1436 | 1444 | (substitute* "src/main/java/org/springframework/objenesis/SpringObjenesis.java" | |
1437 | - | (("org.springframework.objenesis") "org.objenesis")))) | |
1445 | + | (("org.springframework.objenesis") "org.objenesis")) | |
1446 | + | #t)) | |
1438 | 1447 | (add-before 'configure 'add-import | |
1439 | 1448 | (lambda _ | |
1440 | 1449 | (substitute* "src/main/java/org/springframework/cglib/core/SpringNamingPolicy.java" | |
1441 | 1450 | (("public class") | |
1442 | - | "import net.sf.cglib.core.DefaultNamingPolicy;\npublic class")))) | |
1451 | + | "import net.sf.cglib.core.DefaultNamingPolicy;\npublic class")) | |
1452 | + | #t)) | |
1443 | 1453 | (add-before 'check 'remove-log4j-1-dep | |
1444 | 1454 | (lambda _ | |
1445 | 1455 | ;; These tests require log4j-1 (log4j-1.2-api doesn't work) | |
1446 | 1456 | (delete-file "src/test/java/org/springframework/util/MockLog4jAppender.java") | |
1447 | - | (delete-file "src/test/java/org/springframework/util/Log4jConfigurerTests.java"))) | |
1457 | + | (delete-file "src/test/java/org/springframework/util/Log4jConfigurerTests.java") | |
1458 | + | #t)) | |
1448 | 1459 | (add-before 'check 'copy-test-resources | |
1449 | 1460 | (lambda* (#:key inputs #:allow-other-keys) | |
1450 | 1461 | (let ((dir (string-append (getcwd) "/build/test-classes/"))) | |
… | |||
1452 | 1463 | (for-each (lambda (file) | |
1453 | 1464 | (mkdir-p (dirname (string-append dir file))) | |
1454 | 1465 | (copy-file file (string-append dir file))) | |
1455 | - | (find-files "." ".*"))))))))) | |
1466 | + | (find-files "." ".*")))) | |
1467 | + | #t))))) | |
1456 | 1468 | (inputs | |
1457 | 1469 | `(("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
1458 | 1470 | ("java-jopt-simple" ,java-jopt-simple) | |
… | |||
1475 | 1487 | (description "") | |
1476 | 1488 | (license license:asl2.0))) | |
1477 | 1489 | ||
1490 | + | (define-public java-spring-framework-beans | |
1491 | + | (package | |
1492 | + | (inherit java-spring-framework-core) | |
1493 | + | (name "java-spring-framework-beans") | |
1494 | + | (arguments | |
1495 | + | `(#:jar-name "java-spring-framework-core.jar" | |
1496 | + | #:jdk ,icedtea-8 | |
1497 | + | #:source-dir "src/main/java" | |
1498 | + | #:test-dir "src/test" | |
1499 | + | #:phases | |
1500 | + | (modify-phases %standard-phases | |
1501 | + | (add-before 'configure 'chdir | |
1502 | + | (lambda _ | |
1503 | + | ;; Needed because tests look for data in src/... directly. | |
1504 | + | (chdir "spring-beans") | |
1505 | + | #t)) | |
1506 | + | (add-before 'build 'copy-resources | |
1507 | + | (lambda _ | |
1508 | + | (copy-recursively "src/main/resources" "build/classes") | |
1509 | + | #t)) | |
1510 | + | (add-before 'configure 'rename-dep | |
1511 | + | (lambda _ | |
1512 | + | (substitute* "src/main/java/org/springframework/beans/factory/support/CglibSubclassingInstantiationStrategy.java" | |
1513 | + | (("org.springframework.cglib") "net.sf.cglib") | |
1514 | + | (("net.sf.cglib.core.SpringNamingPolicy") "org.springframework.cglib.core.SpringNamingPolicy")) | |
1515 | + | #t)) | |
1516 | + | (add-before 'check 'copy-test-classes | |
1517 | + | (lambda _ | |
1518 | + | (copy-file "../spring-core/src/test/java/org/springframework/tests/Assume.java" | |
1519 | + | "src/test/java/org/springframework/tests/Assume.java") | |
1520 | + | (copy-file "../spring-core/src/test/java/org/springframework/tests/TestGroup.java" | |
1521 | + | "src/test/java/org/springframework/tests/TestGroup.java") | |
1522 | + | (copy-file "../spring-core/src/test/java/org/springframework/tests/TestResourceUtils.java" | |
1523 | + | "src/test/java/org/springframework/tests/TestResourceUtils.java") | |
1524 | + | (mkdir-p "src/test/java/org/springframework/stereotype") | |
1525 | + | (mkdir-p "src/test/java/org/springframework/util") | |
1526 | + | (copy-file "../spring-core/src/test/java/org/springframework/stereotype/Component.java" | |
1527 | + | "src/test/java/org/springframework/stereotype/Component.java") | |
1528 | + | (copy-file "../spring-core/src/test/java/org/springframework/util/SerializationTestUtils.java" | |
1529 | + | "src/test/java/org/springframework/util/SerializationTestUtils.java") | |
1530 | + | (substitute* "src/test/java/org/springframework/beans/factory/BeanFactoryUtilsTests.java" | |
1531 | + | (("org.springframework.cglib") "net.sf.cglib")) | |
1532 | + | #t)) | |
1533 | + | ;(add-before 'configure 'add-import | |
1534 | + | ; (lambda _ | |
1535 | + | ; (substitute* "src/main/java/org/springframework/cglib/core/SpringNamingPolicy.java" | |
1536 | + | ; (("public class") | |
1537 | + | ; "import net.sf.cglib.core.DefaultNamingPolicy;\npublic class")) | |
1538 | + | ; #t)) | |
1539 | + | ;(add-before 'check 'remove-log4j-1-dep | |
1540 | + | ; (lambda _ | |
1541 | + | ; ;; These tests require log4j-1 (log4j-1.2-api doesn't work) | |
1542 | + | ; (delete-file "src/test/java/org/springframework/util/MockLog4jAppender.java") | |
1543 | + | ; (delete-file "src/test/java/org/springframework/util/Log4jConfigurerTests.java") | |
1544 | + | ; #t)) | |
1545 | + | (add-before 'check 'copy-test-resources | |
1546 | + | (lambda* (#:key inputs #:allow-other-keys) | |
1547 | + | (copy-recursively "src/test/resources" | |
1548 | + | "build/test-classes") | |
1549 | + | #t))))) | |
1550 | + | (inputs | |
1551 | + | `(("java-cglib" ,java-cglib) | |
1552 | + | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
1553 | + | ("java-javax-inject" ,java-javax-inject) | |
1554 | + | ("java-snakeyaml" ,java-snakeyaml) | |
1555 | + | ("java-spring-framework-core" ,java-spring-framework-core) | |
1556 | + | ;; Note: for javax-el (el-api) | |
1557 | + | ("java-tomcat" ,java-tomcat))) | |
1558 | + | (description ""))) | |
1559 | + | ||
1478 | 1560 | (define-public java-lucene-core | |
1479 | 1561 | (package | |
1480 | 1562 | (name "java-lucene-core") | |
… | |||
1969 | 2051 | ((".*clover-setup.*") "") | |
1970 | 2052 | ((".*src/test/\\*\\*/\\*.java.*") "") | |
1971 | 2053 | (("<files>") "") | |
1972 | - | (("</files>") "")))) | |
2054 | + | (("</files>") "")) | |
2055 | + | #t)) | |
1973 | 2056 | (replace 'install | |
1974 | - | (lambda* (#:key outputs inputs #:allow-other-keys) | |
1975 | - | (install-file "build/ognl-2.7.2.jar" (string-append (assoc-ref outputs "out") "/share/java"))))))) | |
1976 | - | ;(zero? (system* "ant" "dist" "-Dcompile.version=7" | |
1977 | - | ; (string-append "-Ddist=" | |
1978 | - | ; (assoc-ref outputs "out") | |
1979 | - | ; "/share/java") | |
1980 | - | ; (string-append "-Ddocbook.xsl.path=" | |
1981 | - | ; (assoc-ref inputs "docbook-xsl")) | |
1982 | - | ; (string-append "-Ddocbook.xml.path=" | |
1983 | - | ; (assoc-ref inputs "docbook-xml")) | |
1984 | - | ; ))))))) | |
2057 | + | (install-jars "."))))) | |
1985 | 2058 | (inputs | |
1986 | 2059 | `(("java-jboss-javassist" ,java-jboss-javassist))) | |
1987 | 2060 | (native-inputs | |
… | |||
1998 | 2071 | (define-public java-apache-struts | |
1999 | 2072 | (package | |
2000 | 2073 | (name "java-apache-struts") | |
2001 | - | (version "2.5.13") | |
2074 | + | (version "2.5.16") | |
2002 | 2075 | (source (origin | |
2003 | 2076 | (method url-fetch) | |
2004 | 2077 | (uri (string-append "mirror://apache/struts/" version "/struts-" | |
2005 | 2078 | version "-src.zip")) | |
2006 | 2079 | (sha256 | |
2007 | 2080 | (base32 | |
2008 | - | "1pi3ymql7d9axxzi6pd8iqap1d3s2pij88mc7zywbw7mva61y8qy")))) | |
2081 | + | "14by1nsz7ky7zdw7ikmki1w9xznnvbyrjj9lbplk7wxsyhqak270")))) | |
2009 | 2082 | (build-system ant-build-system) | |
2010 | 2083 | (arguments | |
2011 | 2084 | `(#:jar-name "apache-struts.jar" | |
2012 | 2085 | #:source-dir "src/core/src/main/java" | |
2013 | - | #:test-dir "src/core/src/test")) | |
2086 | + | #:test-dir "src/core/src/test" | |
2087 | + | #:jdk ,icedtea-8)) | |
2014 | 2088 | (inputs | |
2015 | 2089 | `(("java-log4j-api" ,java-log4j-api) | |
2016 | 2090 | ("java-commons-lang3" ,java-commons-lang3) | |
… | |||
2018 | 2092 | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
2019 | 2093 | ("java-classpathx-servletapi" ,java-classpathx-servletapi) | |
2020 | 2094 | ("java-ognl" ,java-ognl) | |
2095 | + | ("java-spring-framework-beans" ,java-spring-framework-beans) | |
2096 | + | ("java-spring-framework-core" ,java-spring-framework-core) | |
2021 | 2097 | ("java-velocity" ,java-velocity) | |
2022 | 2098 | ("java-testng" ,java-testng))) | |
2023 | 2099 | (native-inputs | |
… | |||
2055 | 2131 | ;; Don't download anything | |
2056 | 2132 | (substitute* "build/build.xml" | |
2057 | 2133 | ((".*download.xml.*") "")) | |
2058 | - | (chdir "build"))) | |
2134 | + | (chdir "build") | |
2135 | + | #t)) | |
2059 | 2136 | (replace 'install | |
2060 | 2137 | (lambda* (#:key outputs #:allow-other-keys) | |
2061 | 2138 | (let* ((out (assoc-ref outputs "out")) | |
2062 | 2139 | (dir (string-append out "/share/java"))) | |
2063 | 2140 | (mkdir-p dir) | |
2064 | 2141 | (copy-file "../bin/velocity-1.7.jar" | |
2065 | - | (string-append dir "/velocity-1.7.jar")))))))) | |
2142 | + | (string-append dir "/velocity-1.7.jar"))) | |
2143 | + | #t))))) | |
2066 | 2144 | (native-inputs | |
2067 | 2145 | `(("javacc" ,java-javacc) | |
2068 | 2146 | ("antlr" ,antlr2))) | |
… | |||
2104 | 2182 | (add-before 'build 'copy-resources | |
2105 | 2183 | (lambda _ | |
2106 | 2184 | (copy-recursively "velocity-engine-core/src/main/resources" | |
2107 | - | "build/classes"))) | |
2185 | + | "build/classes") | |
2186 | + | #t)) | |
2108 | 2187 | (add-before 'build 'generate-parser | |
2109 | 2188 | (lambda _ | |
2110 | - | (and | |
2111 | - | (zero? | |
2112 | - | (system* | |
2113 | - | "jjtree" "-STATIC=false" "-MULTI=true" | |
2114 | - | "-NODE_PACKAGE=org.apache.velocity.runtime.parser.node" | |
2115 | - | "-BUILD_NODE_FILES=false" "-NODE_USES_PARSER=true" | |
2116 | - | ;(string-append "-OUTPUT_DIRECTORY=velocity-engine-core/src" | |
2117 | - | ; "/main/java/org/apache/velocity/runtime/parser") | |
2118 | - | "velocity-engine-core/src/main/parser/Parser.jjt")) | |
2119 | - | (begin | |
2120 | - | (rename-file "Parser.jj" | |
2121 | - | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/Parser.jj") | |
2122 | - | (rename-file "ParserTreeConstants.java" | |
2123 | - | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ParserTreeConstants.java") | |
2124 | - | (rename-file "JJTParserState.java" | |
2125 | - | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/JJTParserState.java") | |
2126 | - | #t) | |
2127 | - | (zero? | |
2128 | - | (system* | |
2129 | - | "javacc" "-STATIC=false" "-JDK_VERSION=1.8" | |
2130 | - | (string-append "-OUTPUT_DIRECTORY=velocity-engine-core/src" | |
2131 | - | "/main/java/org/apache/velocity/runtime/parser") | |
2132 | - | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/Parser.jj")))))))) | |
2189 | + | (invoke "jjtree" "-STATIC=false" "-MULTI=true" | |
2190 | + | "-NODE_PACKAGE=org.apache.velocity.runtime.parser.node" | |
2191 | + | "-BUILD_NODE_FILES=false" "-NODE_USES_PARSER=true" | |
2192 | + | "velocity-engine-core/src/main/parser/Parser.jjt") | |
2193 | + | (rename-file "Parser.jj" | |
2194 | + | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/Parser.jj") | |
2195 | + | (rename-file "ParserTreeConstants.java" | |
2196 | + | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ParserTreeConstants.java") | |
2197 | + | (rename-file "JJTParserState.java" | |
2198 | + | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/JJTParserState.java") | |
2199 | + | (invoke "javacc" "-STATIC=false" "-JDK_VERSION=1.8" | |
2200 | + | (string-append "-OUTPUT_DIRECTORY=velocity-engine-core/src" | |
2201 | + | "/main/java/org/apache/velocity/runtime/parser") | |
2202 | + | "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/Parser.jj") | |
2203 | + | #t))))) | |
2133 | 2204 | (native-inputs | |
2134 | 2205 | `(("java-javacc-5" ,java-javacc-5))) | |
2135 | 2206 | (propagated-inputs '()) | |
… | |||
2175 | 2246 | (dir (string-append out "/share/java"))) | |
2176 | 2247 | (mkdir-p dir) | |
2177 | 2248 | (copy-file "../bin/velocity-tools-2.0.jar" | |
2178 | - | (string-append dir "/velocity-tools-2.0.jar")))))))) | |
2249 | + | (string-append dir "/velocity-tools-2.0.jar"))) | |
2250 | + | #t))))) | |
2179 | 2251 | (inputs | |
2180 | 2252 | `(("java-dom4j" ,java-dom4j) | |
2181 | 2253 | ("java-velocity" ,java-velocity) | |
2182 | 2254 | ("java-commons-digester" ,java-commons-digester) | |
2183 | 2255 | ("java-commons-validator" ,java-commons-validator) | |
2184 | - | ("java-commons-beanutils", java-commons-beanutils))) | |
2256 | + | ("java-commons-beanutils", java-commons-beanutils) | |
2257 | + | ("java-apache-struts" ,java-apache-struts))) | |
2185 | 2258 | ;; apache struts | |
2186 | 2259 | (home-page "https://velocity.apache.org/tools/devel") | |
2187 | 2260 | (synopsis "") | |
2188 | 2261 | (description "") | |
2189 | 2262 | (license license:asl2.0))) | |
2190 | 2263 | ||
2264 | + | (define-public java-plexus-velocity-component | |
2265 | + | (package | |
2266 | + | (name "java-plexus-velocity-component") | |
2267 | + | (version "1.2") | |
2268 | + | (source (origin | |
2269 | + | (method url-fetch) | |
2270 | + | (uri (string-append "https://github.com/codehaus-plexus/" | |
2271 | + | "plexus-velocity/archive/plexus-velocity-" | |
2272 | + | version ".tar.gz")) | |
2273 | + | (sha256 | |
2274 | + | (base32 | |
2275 | + | "04d34iny6364zcr1xy1xmg4grp6av8pcw3gsb1abrpxz4qhm84a6")))) | |
2276 | + | (build-system ant-build-system) | |
2277 | + | (arguments | |
2278 | + | `(#:jar-name "java-plexus-velocity-component.jar" | |
2279 | + | #:source-dir "src/main/java" | |
2280 | + | #:jdk ,icedtea-8)) | |
2281 | + | (inputs | |
2282 | + | `(("java-commons-collections" ,java-commons-collections) | |
2283 | + | ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect) | |
2284 | + | ("java-guava" ,java-guava) | |
2285 | + | ("java-plexus-classworlds" ,java-plexus-classworlds) | |
2286 | + | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
2287 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
2288 | + | ("java-plexus-utils" ,java-plexus-utils) | |
2289 | + | ("java-velocity" ,java-velocity))) | |
2290 | + | (native-inputs | |
2291 | + | `(("java-junit" ,java-junit))) | |
2292 | + | (home-page "https://codehaus-plexus.github.io/plexus-velocity/") | |
2293 | + | (synopsis "") | |
2294 | + | (description "") | |
2295 | + | (license license:asl2.0))) | |
2296 | + | ||
2191 | 2297 | (define-public java-commons-pool | |
2192 | 2298 | (package | |
2193 | 2299 | (name "java-commons-pool") | |
… | |||
3116 | 3222 | (license (list license:gpl2 | |
3117 | 3223 | license:cddl1.1)))) | |
3118 | 3224 | ||
3119 | - | (define-public java-apache-ivy-bootstrap | |
3120 | - | (package | |
3121 | - | (name "java-apache-ivy-bootstrap") | |
3122 | - | (version "2.4.0") | |
3123 | - | (source (origin | |
3124 | - | (method url-fetch) | |
3125 | - | (uri (string-append "mirror://apache//ant/ivy/" version | |
3126 | - | "/apache-ivy-" version "-src.tar.gz")) | |
3127 | - | (sha256 | |
3128 | - | (base32 | |
3129 | - | "1xkfn57g2m7l6y0xdq75x5rnrgk52m9jx2xah70g3ggl8750hbr0")))) | |
3130 | - | (build-system ant-build-system) | |
3131 | - | (arguments | |
3132 | - | `(#:build-target "compile-core" | |
3133 | - | #:tests? #f | |
3134 | - | #:phases | |
3135 | - | (modify-phases %standard-phases | |
3136 | - | (replace 'install | |
3137 | - | (lambda* (#:key outputs #:allow-other-keys) | |
3138 | - | (system* "jar" "cf" "ivy.jar" "-C" "build/classes/core" ".") | |
3139 | - | (install-file "ivy.jar" (string-append (assoc-ref outputs "out") | |
3140 | - | "/share/java"))))))) | |
3141 | - | (home-page "https://ant.apache.org/ivy") | |
3142 | - | (synopsis "") | |
3143 | - | (description "") | |
3144 | - | (license license:asl2.0))) | |
3145 | - | ||
3146 | 3225 | (define-public ant-junit | |
3147 | 3226 | (package | |
3148 | 3227 | (inherit ant) | |
… | |||
4101 | 4180 | (synopsis "") | |
4102 | 4181 | (description "") | |
4103 | 4182 | (license license:expat))) | |
4183 | + | ||
4184 | + | (define-public java-modello-plugins-xsd | |
4185 | + | (package | |
4186 | + | (inherit java-modello-core) | |
4187 | + | (name "java-modello-plugins-xsd") | |
4188 | + | (arguments | |
4189 | + | `(#:jar-name "modello-plugins-xsd.jar" | |
4190 | + | #:source-dir "modello-plugins/modello-plugin-xsd/src/main/java" | |
4191 | + | #:test-dir "modello-plugins/modello-plugin-xsd/src/test" | |
4192 | + | #:tests? #f; Require some test classes from java-modello | |
4193 | + | #:jdk ,icedtea-8 | |
4194 | + | #:phases | |
4195 | + | (modify-phases %standard-phases | |
4196 | + | (add-before 'build 'copy-resources | |
4197 | + | (lambda _ | |
4198 | + | (mkdir-p "build/classes") | |
4199 | + | (copy-recursively | |
4200 | + | "modello-plugins/modello-plugin-xsd/src/main/resources" | |
4201 | + | "build/classes") | |
4202 | + | #t))))) | |
4203 | + | (inputs | |
4204 | + | `(("java-modello-core" ,java-modello-core) | |
4205 | + | ("java-modello-plugins-xml" ,java-modello-plugins-xml) | |
4206 | + | ,@(package-inputs java-modello-core))) | |
4207 | + | (native-inputs | |
4208 | + | `(("java-modello-test" ,java-modello-test) | |
4209 | + | ,@(package-native-inputs java-modello-core))) | |
4210 | + | (synopsis "Modello XSD Plugin") | |
4211 | + | (description "Modello XSD Plugin generates an XML Schema from the model to | |
4212 | + | be able to validate XML content."))) | |
4213 | + | ||
4214 | + | (define-public java-xmlunit-matchers | |
4215 | + | (package | |
4216 | + | (inherit java-xmlunit) | |
4217 | + | (name "java-xmlunit-matchers") | |
4218 | + | (arguments | |
4219 | + | `(#:jar-name "java-xmlunit-matchers.jar" | |
4220 | + | #:source-dir "xmlunit-matchers/src/main/java" | |
4221 | + | #:test-dir "xmlunit-matchers/src/test" | |
4222 | + | #:test-exclude | |
4223 | + | ;; Cannot open xsd for http://www.xmlunit.org/test-support/Book.xsd | |
4224 | + | (list "**/ValidationMatcherTest.java") | |
4225 | + | #:phases | |
4226 | + | (modify-phases %standard-phases | |
4227 | + | (add-before 'build 'copy-test-class | |
4228 | + | (lambda _ | |
4229 | + | (copy-file "xmlunit-core/src/test/java/org/xmlunit/TestResources.java" | |
4230 | + | "xmlunit-matchers/src/test/java/org/xmlunit/TestResources.java") | |
4231 | + | #t)) | |
4232 | + | (add-before 'build 'fix-test-resources-path | |
4233 | + | (lambda _ | |
4234 | + | (substitute* (find-files "xmlunit-matchers/src/test" ".*.java") | |
4235 | + | (("../test-resources") "test-resources")) | |
4236 | + | #t)) | |
4237 | + | (add-before 'check 'copy-test-resources | |
4238 | + | (lambda* (#:key inputs #:allow-other-keys) | |
4239 | + | (copy-recursively (assoc-ref inputs "resources") "test-resources") | |
4240 | + | #t))))) | |
4241 | + | (inputs | |
4242 | + | `(("java-xmlunit" ,java-xmlunit) | |
4243 | + | ("java-junit" ,java-junit))))) | |
4244 | + | ||
4245 | + | (define-public java-jtidy | |
4246 | + | (package | |
4247 | + | (name "java-jtidy") | |
4248 | + | (version "r938") | |
4249 | + | (source (origin | |
4250 | + | (method url-fetch) | |
4251 | + | (uri (string-append "mirror://sourceforge/jtidy/JTidy/r938/jtidy-r938-sources.zip")) | |
4252 | + | (sha256 | |
4253 | + | (base32 | |
4254 | + | "19kszpqjihdfacxwk0bzv8ajwbs86k1qb9j67vzg8lwvxcxdkmsh")))) | |
4255 | + | (build-system ant-build-system) | |
4256 | + | (arguments | |
4257 | + | `(#:tests? #f; no tests | |
4258 | + | #:phases | |
4259 | + | (modify-phases %standard-phases | |
4260 | + | (add-before 'build 'chdir | |
4261 | + | (lambda _ | |
4262 | + | (chdir "..") | |
4263 | + | #t)) | |
4264 | + | (replace 'install | |
4265 | + | (install-jars "."))))) | |
4266 | + | (native-inputs | |
4267 | + | `(("unzip" ,unzip))) | |
4268 | + | (home-page "") | |
4269 | + | (synopsis "") | |
4270 | + | (description "") | |
4271 | + | (license license:asl2.0))) |
more/packages/maven.scm
25 | 25 | #:use-module (guix build-system ant) | |
26 | 26 | #:use-module (guix build-system trivial) | |
27 | 27 | #:use-module (gnu packages bash) | |
28 | + | #:use-module (gnu packages compression) | |
28 | 29 | #:use-module (gnu packages groovy) | |
29 | 30 | #:use-module (gnu packages java) | |
30 | 31 | #:use-module (gnu packages maven) | |
… | |||
188 | 189 | ("groovy" ,groovy) | |
189 | 190 | ("java-slf4j-api" ,java-slf4j-api) | |
190 | 191 | ,@(package-inputs maven-polyglot-common))))) | |
192 | + | ||
193 | + | (define-public maven-slf4j-provider | |
194 | + | (package | |
195 | + | (inherit maven-artifact) | |
196 | + | (name "maven-slf4j-provider") | |
197 | + | (arguments | |
198 | + | `(#:jar-name "maven-slf4j-provider.jar" | |
199 | + | #:source-dir "maven-slf4j-provider/src/main/java" | |
200 | + | #:tests? #f; no tests | |
201 | + | #:jdk ,icedtea-8)) | |
202 | + | (inputs | |
203 | + | `(("maven-shared-utils" ,maven-shared-utils) | |
204 | + | ("java-slf4j-api" ,java-slf4j-api) | |
205 | + | ("java-slf4j-simple" ,java-slf4j-simple))) | |
206 | + | (synopsis "") | |
207 | + | (description "") | |
208 | + | (license license:asl2.0))) | |
209 | + | ||
210 | + | (define-public maven-filtering | |
211 | + | (package | |
212 | + | (name "maven-filtering") | |
213 | + | (version "3.1.1") | |
214 | + | (source (origin | |
215 | + | (method url-fetch) | |
216 | + | (uri (string-append "https://archive.apache.org/dist/maven/" | |
217 | + | "shared/maven-filtering-" version | |
218 | + | "-source-release.zip")) | |
219 | + | (sha256 | |
220 | + | (base32 | |
221 | + | "09wrdhchnszd2l6h4z30ra0bv1a19qyjgac9z8zf1pn0m4nw05yz")))) | |
222 | + | (build-system ant-build-system) | |
223 | + | (arguments | |
224 | + | `(#:jar-name "maven-filtering.jar" | |
225 | + | #:source-dir "src/main/java" | |
226 | + | #:test-dir "src/test" | |
227 | + | #:tests? #f; tests fail for now... | |
228 | + | #:jdk ,icedtea-8 | |
229 | + | #:phases | |
230 | + | (modify-phases %standard-phases | |
231 | + | (add-before 'build 'remove-failing-test | |
232 | + | (lambda _ | |
233 | + | (delete-file "src/test/java/org/apache/maven/shared/filtering/IncrementalResourceFilteringTest.java") | |
234 | + | (substitute* "src/test/java/org/apache/maven/shared/filtering/StubMavenSession.java" | |
235 | + | (("org.sonatype.aether.RepositorySystemSession") | |
236 | + | "org.eclipse.aether.RepositorySystemSession")) | |
237 | + | #t))))) | |
238 | + | (inputs | |
239 | + | `(("java-jsr305" ,java-jsr305) | |
240 | + | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
241 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
242 | + | ("java-plexus-interpolation" ,java-plexus-interpolation) | |
243 | + | ("java-plexus-utils" ,java-plexus-utils) | |
244 | + | ("java-sisu-build-api" ,java-sisu-build-api) | |
245 | + | ("maven-core" ,maven-core) | |
246 | + | ("maven-model" ,maven-model) | |
247 | + | ("maven-settings" ,maven-settings) | |
248 | + | ("maven-shared-utils" ,maven-shared-utils))) | |
249 | + | (native-inputs | |
250 | + | `(("java-assertj" ,java-assertj) | |
251 | + | ("java-guava" ,java-guava) | |
252 | + | ("java-hamcrest-core" ,java-hamcrest-core) | |
253 | + | ("java-junit" ,java-junit) | |
254 | + | ("java-mockito-1" ,java-mockito-1) | |
255 | + | ("java-plexus-classworlds" ,java-plexus-classworlds) | |
256 | + | ("maven-resolver-api" ,maven-resolver-api) | |
257 | + | ("unzip" ,unzip))) | |
258 | + | (home-page "") | |
259 | + | (synopsis "") | |
260 | + | (description "") | |
261 | + | (license license:asl2.0))) | |
262 | + | ||
263 | + | (define-public maven-plugin-testing | |
264 | + | (package | |
265 | + | (name "maven-plugin-testing") | |
266 | + | (version "3.3.0") | |
267 | + | (source (origin | |
268 | + | (method url-fetch) | |
269 | + | (uri (string-append "https://github.com/apache/maven-plugin-testing/" | |
270 | + | "archive/maven-plugin-testing-" version ".tar.gz")) | |
271 | + | (sha256 | |
272 | + | (base32 | |
273 | + | "010jp44vq75fk6260zvqz41ai3l1sqrjz56yyzv9pgshx27vpshy")))) | |
274 | + | (build-system ant-build-system) | |
275 | + | (arguments | |
276 | + | `(#:jar-name "maven-plugin-testing.jar" | |
277 | + | #:source-dir "maven-plugin-testing-harness/src/main/java" | |
278 | + | #:test-dir "maven-plugin-testing-harness/src/test" | |
279 | + | #:jdk ,icedtea-8)) | |
280 | + | (inputs | |
281 | + | `(("java-commons-io" ,java-commons-io) | |
282 | + | ("java-guice" ,java-guice) | |
283 | + | ("java-junit" ,java-junit) | |
284 | + | ("java-plexus-archiver" ,java-plexus-archiver) | |
285 | + | ("java-plexus-classworlds" ,java-plexus-classworlds) | |
286 | + | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
287 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
288 | + | ("java-plexus-utils" ,java-plexus-utils) | |
289 | + | ("maven-artifact" ,maven-artifact) | |
290 | + | ("maven-compat" ,maven-compat) | |
291 | + | ("maven-core" ,maven-core) | |
292 | + | ("maven-model" ,maven-model) | |
293 | + | ("maven-model-builder" ,maven-model-builder) | |
294 | + | ("maven-plugin-api" ,maven-plugin-api) | |
295 | + | ("maven-resolver-api" ,maven-resolver-api) | |
296 | + | ("maven-resolver-provider" ,maven-resolver-provider) | |
297 | + | ("maven-wagon-provider-api" ,maven-wagon-provider-api))) | |
298 | + | (home-page "") | |
299 | + | (synopsis "") | |
300 | + | (description "") | |
301 | + | (license license:asl2.0))) | |
302 | + | ||
303 | + | (define-public maven-doxia-logging-api | |
304 | + | (package | |
305 | + | (name "maven-doxia-logging-api") | |
306 | + | (version "1.8") | |
307 | + | (source (origin | |
308 | + | (method url-fetch) | |
309 | + | (uri (string-append "https://github.com/apache/maven-doxia/" | |
310 | + | "archive/doxia-" version ".tar.gz")) | |
311 | + | (sha256 | |
312 | + | (base32 | |
313 | + | "07qckb1fsycnz5b08xbm8b1hjz8295ri6xi47s47rlwxg53hvf4s")))) | |
314 | + | (build-system ant-build-system) | |
315 | + | (arguments | |
316 | + | `(#:jar-name "maven-doxia-logging-api.jar" | |
317 | + | #:source-dir "doxia-logging-api/src/main/java" | |
318 | + | #:tests? #f; No tests | |
319 | + | #:jdk ,icedtea-8)) | |
320 | + | (inputs | |
321 | + | `(("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
322 | + | ("java-plexus-container-default" ,java-plexus-container-default))) | |
323 | + | (home-page "https://maven.apache.org/doxia") | |
324 | + | (synopsis "Content generation framework") | |
325 | + | (description "Doxia is a content generation framework for generating static | |
326 | + | and dynamic content, that supports a variety of markup languages.") | |
327 | + | (license license:asl2.0))) | |
328 | + | ||
329 | + | (define-public maven-doxia-sink-api | |
330 | + | (package | |
331 | + | (inherit maven-doxia-logging-api) | |
332 | + | (name "maven-doxia-sink-api") | |
333 | + | (arguments | |
334 | + | `(#:jar-name "maven-doxia-sink-api.jar" | |
335 | + | #:source-dir "doxia-sink-api/src/main/java" | |
336 | + | #:tests? #f; No tests | |
337 | + | #:jdk ,icedtea-8)) | |
338 | + | (inputs | |
339 | + | `(("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
340 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
341 | + | ("maven-doxia-logging-api" ,maven-doxia-logging-api))))) | |
342 | + | ||
343 | + | (define-public maven-doxia-core | |
344 | + | (package | |
345 | + | (inherit maven-doxia-logging-api) | |
346 | + | (name "maven-doxia-core") | |
347 | + | (arguments | |
348 | + | `(#:jar-name "maven-doxia-core.jar" | |
349 | + | #:source-dir "doxia-core/src/main/java" | |
350 | + | #:test-dir "doxia-core/src/test" | |
351 | + | #:test-exclude | |
352 | + | ;; test fails for unknown reason | |
353 | + | (list "**/SnippetMacroTest.java" | |
354 | + | ;; requires network | |
355 | + | "**/XmlValidatorTest.java" | |
356 | + | "**/Abstract*Test.java") | |
357 | + | #:jdk ,icedtea-8 | |
358 | + | #:phases | |
359 | + | (modify-phases %standard-phases | |
360 | + | (add-before 'build 'copy-resources | |
361 | + | (lambda _ | |
362 | + | (copy-recursively "doxia-core/src/main/resources" | |
363 | + | "build/classes") | |
364 | + | #t)) | |
365 | + | (add-before 'build 'generate-models | |
366 | + | (lambda* (#:key inputs #:allow-other-keys) | |
367 | + | (define (modello-single-mode file version mode) | |
368 | + | (invoke "java" "org.codehaus.modello.ModelloCli" | |
369 | + | file mode "doxia-core/src/main/java" version | |
370 | + | "false" "true")) | |
371 | + | (let ((file "doxia-core/src/main/mdo/document.mdo")) | |
372 | + | (modello-single-mode file "4.0.0" "java") | |
373 | + | (modello-single-mode file "4.0.0" "xpp3-reader") | |
374 | + | (modello-single-mode file "4.0.0" "xpp3-writer") | |
375 | + | (modello-single-mode file "4.0.0" "xsd")) | |
376 | + | #t)) | |
377 | + | (add-after 'build 'generate-metadata | |
378 | + | (lambda _ | |
379 | + | (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes") | |
380 | + | "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli" | |
381 | + | "--source" "doxia-core/src/main/java" | |
382 | + | "--output" "build/classes/META-INF/plexus/components.xml" | |
383 | + | "--classes" "build/classes" | |
384 | + | "--descriptors" "build/classes/META-INF") | |
385 | + | #t)) | |
386 | + | (add-after 'generate-metadata 'rebuild | |
387 | + | (lambda _ | |
388 | + | (invoke "ant" "jar") | |
389 | + | #t))))) | |
390 | + | (inputs | |
391 | + | `(("java-commons-lang3" ,java-commons-lang3) | |
392 | + | ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient) | |
393 | + | ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore) | |
394 | + | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
395 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
396 | + | ("maven-doxia-logging-api" ,maven-doxia-logging-api) | |
397 | + | ("maven-doxia-sink-api" ,maven-doxia-sink-api))) | |
398 | + | (native-inputs | |
399 | + | `(("java-modello-core" ,java-modello-core) | |
400 | + | ;; for modello: | |
401 | + | ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus) | |
402 | + | ("java-plexus-utils" ,java-plexus-utils) | |
403 | + | ("java-guice" ,java-guice) | |
404 | + | ("java-cglib" ,java-cglib) | |
405 | + | ("java-asm" ,java-asm) | |
406 | + | ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject) | |
407 | + | ("java-javax-inject" ,java-javax-inject) | |
408 | + | ("java-plexus-classworlds" ,java-plexus-classworlds) | |
409 | + | ("java-guava" ,java-guava) | |
410 | + | ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect) | |
411 | + | ("java-sisu-build-api" ,java-sisu-build-api) | |
412 | + | ;; modello plugins: | |
413 | + | ("java-modello-plugins-java" ,java-modello-plugins-java) | |
414 | + | ("java-modello-plugins-xml" ,java-modello-plugins-xml) | |
415 | + | ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3) | |
416 | + | ("java-modello-plugins-xsd" ,java-modello-plugins-xsd) | |
417 | + | ;; for tests | |
418 | + | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
419 | + | ("java-hamcrest-core" ,java-hamcrest-core) | |
420 | + | ("java-junit" ,java-junit) | |
421 | + | ("java-xmlunit" ,java-xmlunit) | |
422 | + | ("java-xmlunit-matchers" ,java-xmlunit-matchers) | |
423 | + | ;; for generating metadata | |
424 | + | ("java-commons-cli" ,java-commons-cli) | |
425 | + | ("java-jdom2" ,java-jdom2) | |
426 | + | ("java-plexus-cli" ,java-plexus-cli) | |
427 | + | ("java-plexus-component-metadata" ,java-plexus-component-metadata) | |
428 | + | ("java-qdox" ,java-qdox) | |
429 | + | ("maven-plugin-api" ,maven-plugin-api))))) | |
430 | + | ||
431 | + | (define-public maven-doxia-module-xhtml | |
432 | + | (package | |
433 | + | (inherit maven-doxia-logging-api) | |
434 | + | (name "maven-doxia-module-xhtml") | |
435 | + | (arguments | |
436 | + | `(#:jar-name "maven-doxia-module-xhtml.jar" | |
437 | + | #:source-dir "doxia-modules/doxia-module-xhtml/src/main/java" | |
438 | + | #:test-dir "doxia-modules/doxia-module-xhtml/src/test" | |
439 | + | #:test-exclude | |
440 | + | ;; test fails for unknown reason | |
441 | + | (list "**/SnippetMacroTest.java" | |
442 | + | ;; requires network | |
443 | + | "**/XmlValidatorTest.java" | |
444 | + | "**/Abstract*Test.java") | |
445 | + | #:jdk ,icedtea-8 | |
446 | + | #:phases | |
447 | + | (modify-phases %standard-phases | |
448 | + | (add-before 'build 'copy-test-classes | |
449 | + | (lambda _ | |
450 | + | (copy-recursively "doxia-core/src/test/java" "doxia-modules/doxia-module-xhtml/src/test/java") | |
451 | + | (copy-file "doxia-core/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java" | |
452 | + | "doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/module/AbstractIdentityTest.java") | |
453 | + | (copy-file "doxia-core/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java" | |
454 | + | "doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/AbstractModuleTest.java") | |
455 | + | (mkdir-p "doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/sink/impl") | |
456 | + | (copy-file "doxia-core/src/test/java/org/apache/maven/doxia/sink/impl/SinkTestDocument.java" | |
457 | + | "doxia-modules/doxia-module-xhtml/src/test/java/org/apache/maven/doxia/sink/impl/SinkTestDocument.java") | |
458 | + | #t)) | |
459 | + | (add-after 'build 'generate-metadata | |
460 | + | (lambda _ | |
461 | + | (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes") | |
462 | + | "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli" | |
463 | + | "--source" "doxia-modules/doxia-module-xhtml/src/main/java" | |
464 | + | "--output" "build/classes/META-INF/plexus/components.xml" | |
465 | + | "--classes" "build/classes" | |
466 | + | "--descriptors" "build/classes/META-INF") | |
467 | + | #t)) | |
468 | + | (add-after 'generate-metadata 'rebuild | |
469 | + | (lambda _ | |
470 | + | (invoke "ant" "jar") | |
471 | + | #t))))) | |
472 | + | (inputs | |
473 | + | `(("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
474 | + | ("java-plexus-utils" ,java-plexus-utils) | |
475 | + | ("maven-doxia-core" ,maven-doxia-core) | |
476 | + | ("maven-doxia-logging-api" ,maven-doxia-logging-api) | |
477 | + | ("maven-doxia-sink-api" ,maven-doxia-sink-api))) | |
478 | + | (native-inputs | |
479 | + | `(("java-commons-lang3" ,java-commons-lang3) | |
480 | + | ("java-commons-logging-minimal" ,java-commons-logging-minimal) | |
481 | + | ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect) | |
482 | + | ("java-guava" ,java-guava) | |
483 | + | ("java-hamcrest-core" ,java-hamcrest-core) | |
484 | + | ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient) | |
485 | + | ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore) | |
486 | + | ("java-junit" ,java-junit) | |
487 | + | ("java-plexus-classworlds" ,java-plexus-classworlds) | |
488 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
489 | + | ("java-xmlunit" ,java-xmlunit) | |
490 | + | ("java-xmlunit-matchers" ,java-xmlunit-matchers) | |
491 | + | ;; for generating metadata | |
492 | + | ("java-asm" ,java-asm) | |
493 | + | ("java-commons-cli" ,java-commons-cli) | |
494 | + | ("java-jdom2" ,java-jdom2) | |
495 | + | ("java-plexus-cli" ,java-plexus-cli) | |
496 | + | ("java-plexus-component-metadata" ,java-plexus-component-metadata) | |
497 | + | ("java-qdox" ,java-qdox) | |
498 | + | ("maven-plugin-api" ,maven-plugin-api))))) | |
499 | + | ||
500 | + | (define-public maven-doxia-skin-model | |
501 | + | (package | |
502 | + | (name "maven-doxia-skin-model") | |
503 | + | (version "1.8.1") | |
504 | + | (source (origin | |
505 | + | (method url-fetch) | |
506 | + | (uri (string-append "https://github.com/apache/maven-doxia-sitetools/" | |
507 | + | "archive/doxia-sitetools-" version ".tar.gz")) | |
508 | + | (sha256 | |
509 | + | (base32 | |
510 | + | "02dgblm6n07jwr7r90wzc8ax9vz3ax7rh5w12wmvfyd5aybh691w")))) | |
511 | + | (build-system ant-build-system) | |
512 | + | (arguments | |
513 | + | `(#:jar-name "maven-doxia-skin-model.jar" | |
514 | + | #:source-dir "doxia-skin-model/src/main/java" | |
515 | + | #:tests? #f; no tests | |
516 | + | #:jdk ,icedtea-8 | |
517 | + | #:phases | |
518 | + | (modify-phases %standard-phases | |
519 | + | (add-before 'build 'generate-models | |
520 | + | (lambda* (#:key inputs #:allow-other-keys) | |
521 | + | (define (modello-single-mode file version mode) | |
522 | + | (invoke "java" "org.codehaus.modello.ModelloCli" | |
523 | + | file mode "doxia-skin-model/src/main/java" version | |
524 | + | "false" "true")) | |
525 | + | (let ((file "doxia-skin-model/src/main/mdo/skin.mdo")) | |
526 | + | (modello-single-mode file "4.0.0" "java") | |
527 | + | (modello-single-mode file "4.0.0" "xpp3-reader") | |
528 | + | (modello-single-mode file "4.0.0" "xsd")) | |
529 | + | #t))))) | |
530 | + | (inputs | |
531 | + | `(("maven-doxia-sink-api" ,maven-doxia-sink-api))) | |
532 | + | (native-inputs | |
533 | + | `(("unzip" ,unzip) | |
534 | + | ("java-modello-core" ,java-modello-core) | |
535 | + | ;; for modello: | |
536 | + | ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus) | |
537 | + | ("java-plexus-utils" ,java-plexus-utils) | |
538 | + | ("java-guice" ,java-guice) | |
539 | + | ("java-cglib" ,java-cglib) | |
540 | + | ("java-asm" ,java-asm) | |
541 | + | ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject) | |
542 | + | ("java-javax-inject" ,java-javax-inject) | |
543 | + | ("java-plexus-classworlds" ,java-plexus-classworlds) | |
544 | + | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
545 | + | ("java-guava" ,java-guava) | |
546 | + | ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect) | |
547 | + | ("java-sisu-build-api" ,java-sisu-build-api) | |
548 | + | ;; modello plugins: | |
549 | + | ("java-modello-plugins-java" ,java-modello-plugins-java) | |
550 | + | ("java-modello-plugins-xml" ,java-modello-plugins-xml) | |
551 | + | ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3) | |
552 | + | ("java-modello-plugins-xsd" ,java-modello-plugins-xsd))) | |
553 | + | (home-page "") | |
554 | + | (synopsis "") | |
555 | + | (description "") | |
556 | + | (license license:asl2.0))) | |
557 | + | ||
558 | + | (define-public maven-doxia-decoration-model | |
559 | + | (package | |
560 | + | (inherit maven-doxia-skin-model) | |
561 | + | (name "maven-doxia-decoration-model") | |
562 | + | (arguments | |
563 | + | `(#:jar-name "maven-doxia-decoration-model.jar" | |
564 | + | #:source-dir "doxia-decoration-model/src/main/java" | |
565 | + | #:test-dir "doxia-decoration-model/src/test" | |
566 | + | #:jdk ,icedtea-8 | |
567 | + | #:phases | |
568 | + | (modify-phases %standard-phases | |
569 | + | (add-before 'build 'generate-models | |
570 | + | (lambda* (#:key inputs #:allow-other-keys) | |
571 | + | (define (modello-single-mode file version mode) | |
572 | + | (invoke "java" "org.codehaus.modello.ModelloCli" | |
573 | + | file mode "doxia-decoration-model/src/main/java" version | |
574 | + | "false" "true")) | |
575 | + | (let ((file "doxia-decoration-model/src/main/mdo/decoration.mdo")) | |
576 | + | (modello-single-mode file "4.0.0" "xpp3-writer") | |
577 | + | (modello-single-mode file "4.0.0" "java") | |
578 | + | (modello-single-mode file "4.0.0" "xpp3-reader") | |
579 | + | (modello-single-mode file "4.0.0" "xsd")) | |
580 | + | #t))))) | |
581 | + | (native-inputs | |
582 | + | `(("java-junit" ,java-junit) | |
583 | + | ,@(package-native-inputs maven-doxia-skin-model))) | |
584 | + | (description ""))) | |
585 | + | ||
586 | + | (define-public maven-doxia-site-renderer | |
587 | + | (package | |
588 | + | (inherit maven-doxia-skin-model) | |
589 | + | (name "maven-doxia-site-renderer") | |
590 | + | (arguments | |
591 | + | `(#:jar-name "maven-doxia-site-renderer.jar" | |
592 | + | #:source-dir "doxia-site-renderer/src/main/java" | |
593 | + | #:test-dir "doxia-site-renderer/src/test" | |
594 | + | #:jdk ,icedtea-8 | |
595 | + | #:phases | |
596 | + | (modify-phases %standard-phases | |
597 | + | (add-before 'build 'copy-resources | |
598 | + | (lambda _ | |
599 | + | (copy-recursively "doxia-site-renderer/src/main/resources" | |
600 | + | "build/classes") | |
601 | + | #t))))) | |
602 | + | (inputs | |
603 | + | `(("java-commons-lang3" ,java-commons-lang3) | |
604 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
605 | + | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
606 | + | ("java-plexus-utils" ,java-plexus-utils) | |
607 | + | ("java-plexus-velocity-component" ,java-plexus-velocity-component) | |
608 | + | ("java-velocity" ,java-velocity) | |
609 | + | ("maven-artifact" ,maven-artifact) | |
610 | + | ("maven-doxia-core" ,maven-doxia-core) | |
611 | + | ("maven-doxia-decoration-model" ,maven-doxia-decoration-model) | |
612 | + | ("maven-doxia-logging-api" ,maven-doxia-logging-api) | |
613 | + | ("maven-doxia-skin-model" ,maven-doxia-skin-model) | |
614 | + | ("maven-doxia-sink-api" ,maven-doxia-sink-api))) | |
615 | + | (native-inputs | |
616 | + | `(("java-junit" ,java-junit))) | |
617 | + | (description ""))) | |
618 | + | ||
619 | + | (define-public maven-reporting-api | |
620 | + | (package | |
621 | + | (name "maven-reporting-api") | |
622 | + | (version "3.0") | |
623 | + | (source (origin | |
624 | + | (method url-fetch) | |
625 | + | (uri (string-append "https://github.com/apache/maven-reporting-api/" | |
626 | + | "archive/maven-reporting-api-" version ".tar.gz")) | |
627 | + | (sha256 | |
628 | + | (base32 | |
629 | + | "1dc94n7czax7vrniv4xyqlza2mjqdlzzvq6wh6cmcqnnmgggya91")))) | |
630 | + | (build-system ant-build-system) | |
631 | + | (arguments | |
632 | + | `(#:jar-name "maven-reporting-api.jar" | |
633 | + | #:source-dir "src/main/java" | |
634 | + | #:tests? #f; no tests | |
635 | + | #:jdk ,icedtea-8)) | |
636 | + | (inputs | |
637 | + | `(("maven-doxia-sink-api" ,maven-doxia-sink-api))) | |
638 | + | (native-inputs | |
639 | + | `(("unzip" ,unzip))) | |
640 | + | (home-page "") | |
641 | + | (synopsis "") | |
642 | + | (description "") | |
643 | + | (license license:asl2.0))) | |
644 | + | ||
645 | + | (define-public maven-plugin-tools-api | |
646 | + | (package | |
647 | + | (name "maven-plugin-tools-api") | |
648 | + | (version "3.5.2") | |
649 | + | (source (origin | |
650 | + | (method url-fetch) | |
651 | + | (uri (string-append "https://github.com/apache/maven-plugin-tools/" | |
652 | + | "archive/maven-plugin-tools-" version ".tar.gz")) | |
653 | + | (sha256 | |
654 | + | (base32 | |
655 | + | "12va9d3zf5va1a4nvcij49k4h4z36s3mlj1fx500i5qxsjpwsydi")))) | |
656 | + | (build-system ant-build-system) | |
657 | + | (arguments | |
658 | + | `(#:jar-name "maven-plugin-tools-api.jar" | |
659 | + | #:source-dir "maven-plugin-tools-api/src/main/java" | |
660 | + | #:test-dir "maven-plugin-tools-api/src/test" | |
661 | + | #:tests? #f; disabled for now. Require maven-plugin-testing that doesn't build yet | |
662 | + | #:jdk ,icedtea-8)) | |
663 | + | (inputs | |
664 | + | `(("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
665 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
666 | + | ("java-plexus-utils" ,java-plexus-utils) | |
667 | + | ("maven-artifact" ,maven-artifact) | |
668 | + | ("maven-model" ,maven-model) | |
669 | + | ("maven-core" ,maven-core) | |
670 | + | ("maven-plugin-api" ,maven-plugin-api))) | |
671 | + | (native-inputs | |
672 | + | `(("java-junit" ,java-junit))) | |
673 | + | (home-page "") | |
674 | + | (synopsis "") | |
675 | + | (description "") | |
676 | + | (license license:asl2.0))) | |
677 | + | ||
678 | + | (define-public maven-plugin-tools-generators | |
679 | + | (package | |
680 | + | (inherit maven-plugin-tools-api) | |
681 | + | (name "maven-plugin-tools-generators") | |
682 | + | (arguments | |
683 | + | `(#:jar-name "maven-plugin-tools-generators.jar" | |
684 | + | #:source-dir "maven-plugin-tools-generators/src/main/java" | |
685 | + | #:test-dir "maven-plugin-tools-generators/src/test" | |
686 | + | #:jdk ,icedtea-8 | |
687 | + | #:tests? #f; require maven-plugin-testing | |
688 | + | #:phases | |
689 | + | (modify-phases %standard-phases | |
690 | + | (add-before 'build 'fix-exception | |
691 | + | (lambda _ | |
692 | + | (substitute* "maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginHelpGenerator.java" | |
693 | + | (("Properties properties = PropertyUtils.*") | |
694 | + | "Properties properties; | |
695 | + | try { | |
696 | + | properties = PropertyUtils.loadProperties( tmpPropertiesFile ); | |
697 | + | } catch(IOException e) { | |
698 | + | e.printStackTrace(); | |
699 | + | return; | |
700 | + | } | |
701 | + | ")) | |
702 | + | #t))))) | |
703 | + | (inputs | |
704 | + | `(("java-asm" ,java-asm) | |
705 | + | ("java-jtidy" ,java-jtidy) | |
706 | + | ("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
707 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
708 | + | ("java-plexus-utils" ,java-plexus-utils) | |
709 | + | ("java-plexus-velocity-component" ,java-plexus-velocity-component) | |
710 | + | ("java-velocity" ,java-velocity) | |
711 | + | ("maven-compat" ,maven-compat) | |
712 | + | ("maven-core" ,maven-core) | |
713 | + | ("maven-model" ,maven-model) | |
714 | + | ("maven-plugin-api" ,maven-plugin-api) | |
715 | + | ("maven-plugin-tools-api" ,maven-plugin-tools-api) | |
716 | + | ("maven-reporting-api" ,maven-reporting-api))) | |
717 | + | (description ""))) | |
718 | + | ||
719 | + | (define-public maven-plugin-plugin | |
720 | + | (package | |
721 | + | (inherit maven-plugin-tools-api) | |
722 | + | (name "maven-plugin-plugin") | |
723 | + | (arguments | |
724 | + | `(#:jar-name "maven-plugin-plugin.jar" | |
725 | + | #:source-dir "maven-plugin-plugin/src/main/java" | |
726 | + | #:test-dir "maven-plugin-plugin/src/test" | |
727 | + | #:jdk ,icedtea-8 | |
728 | + | #:tests? #f)); no tests | |
729 | + | (inputs | |
730 | + | `(("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
731 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
732 | + | ("java-plexus-utils" ,java-plexus-utils) | |
733 | + | ("java-plexus-velocity-compontent" ,java-plexus-velocity-component) | |
734 | + | ("java-velocity" ,java-velocity) | |
735 | + | ("maven-artifact" ,maven-artifact) | |
736 | + | ("maven-compat" ,maven-compat) | |
737 | + | ("maven-core" ,maven-core) | |
738 | + | ("maven-doxia-sink-api" ,maven-doxia-sink-api) | |
739 | + | ("maven-doxia-core" ,maven-doxia-core) | |
740 | + | ("maven-model" ,maven-model) | |
741 | + | ("maven-reporting-api" ,maven-reporting-api) | |
742 | + | ("maven-repository-metadata" ,maven-repository-metadata) | |
743 | + | ("maven-plugin-annotations" ,maven-plugin-annotations) | |
744 | + | ("maven-plugin-api" ,maven-plugin-api) | |
745 | + | ("maven-plugin-tools-api" ,maven-plugin-tools-api) | |
746 | + | ("maven-plugin-tools-generators" ,maven-plugin-tools-generators))) | |
747 | + | (description ""))) | |
748 | + | ||
749 | + | (define-public maven-resources-plugin | |
750 | + | (package | |
751 | + | (name "maven-resources-plugin") | |
752 | + | (version "3.1.0") | |
753 | + | (source (origin | |
754 | + | (method url-fetch) | |
755 | + | (uri (string-append "https://github.com/apache/" | |
756 | + | "maven-resources-plugin/archive/" | |
757 | + | "maven-resources-plugin-" version ".tar.gz")) | |
758 | + | (sha256 | |
759 | + | (base32 | |
760 | + | "1f5gnjg2xmqfxml6k0ydyd1sxxwzgnb24qn6avcc4mijwd8a84pl")))) | |
761 | + | (build-system ant-build-system) | |
762 | + | (arguments | |
763 | + | `(#:jar-name "maven-resources-plugin.jar" | |
764 | + | #:source-dir "src/main/java" | |
765 | + | #:test-dir "src/test" | |
766 | + | #:tests? #f; test depends on maven-plugin-test-harness | |
767 | + | #:jdk ,icedtea-8 | |
768 | + | ;; Need maven-plugin-tools and a corresponding phase | |
769 | + | #:phases | |
770 | + | (modify-phases %standard-phases | |
771 | + | (add-before 'build 'copy-pom | |
772 | + | (lambda _ | |
773 | + | (mkdir-p "build/classes/META-INF/maven") | |
774 | + | (copy-file "pom.xml" "build/classes/META-INF/pom.xml"))) | |
775 | + | (add-after 'install 'install-pom | |
776 | + | (lambda* (#:key outputs #:allow-other-keys) | |
777 | + | (install-file "pom.xml" (string-append (assoc-ref outputs "out") "/share/pom.xml"))))))) | |
778 | + | (inputs | |
779 | + | `(("java-plexus-component-annotations" ,java-plexus-component-annotations) | |
780 | + | ("java-plexus-container-default" ,java-plexus-container-default) | |
781 | + | ("java-plexus-utils" ,java-plexus-utils) | |
782 | + | ("maven-core" ,maven-core) | |
783 | + | ("maven-filtering" ,maven-filtering) | |
784 | + | ("maven-model" ,maven-model) | |
785 | + | ("maven-plugin-annotations" ,maven-plugin-annotations) | |
786 | + | ("maven-plugin-api" ,maven-plugin-api))) | |
787 | + | (native-inputs | |
788 | + | `(("java-junit" ,java-junit))) | |
789 | + | (home-page "") | |
790 | + | (synopsis "") | |
791 | + | (description "") | |
792 | + | (license license:asl2.0))) |