12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664 |
- ;;; GNU Guix --- Functional package management for GNU
- ;;; Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
- ;;; Copyright © 2019 Tobias Geerinckx-Rite <me@tobias.gr>
- ;;;
- ;;; This file is part of GNU Guix.
- ;;;
- ;;; GNU Guix is free software; you can redistribute it and/or modify it
- ;;; under the terms of the GNU General Public License as published by
- ;;; the Free Software Foundation; either version 3 of the License, or (at
- ;;; your option) any later version.
- ;;;
- ;;; GNU Guix is distributed in the hope that it will be useful, but
- ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
- ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ;;; GNU General Public License for more details.
- ;;;
- ;;; You should have received a copy of the GNU General Public License
- ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
- (define-module (gnu packages maven)
- #:use-module ((guix licenses) #:prefix license:)
- #:use-module (guix packages)
- #:use-module (guix download)
- #:use-module (guix git-download)
- #:use-module (guix utils)
- #:use-module (guix build-system ant)
- #:use-module (gnu packages)
- #:use-module (gnu packages base)
- #:use-module (gnu packages compression)
- #:use-module (gnu packages java)
- #:use-module (gnu packages web)
- #:use-module (gnu packages xml))
- (define-public java-plexus-component-metadata
- (package
- (inherit java-plexus-container-default)
- (name "java-plexus-component-metadata")
- (arguments
- `(#:jar-name "plexus-component-metadata.jar"
- #:source-dir "src/main/java"
- #:test-dir "src/test"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'chdir
- (lambda _
- (chdir "plexus-component-metadata")
- #t))
- (add-before 'build 'copy-resources
- (lambda _
- (copy-recursively "src/main/resources"
- "build/classes/")
- #t)))))
- (inputs
- `(("java-plexus-container-default" ,java-plexus-container-default)
- ("java-plexu-component-annotations" ,java-plexus-component-annotations)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-cli" ,java-plexus-cli)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("maven-plugin-api" ,maven-plugin-api)
- ("maven-plugin-annotations" ,maven-plugin-annotations)
- ("maven-core-bootstrap" ,maven-core-bootstrap)
- ("maven-model" ,maven-model)
- ("java-commons-cli" ,java-commons-cli)
- ("java-qdox" ,java-qdox)
- ("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)))
- (native-inputs
- `(("java-junit" ,java-junit)
- ("java-guava" ,java-guava)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)))
- (synopsis "Inversion-of-control container for Maven")
- (description "The Plexus project provides a full software stack for creating
- and executing software projects. Based on the Plexus container, the
- applications can utilise component-oriented programming to build modular,
- reusable components that can easily be assembled and reused. This package
- provides the Maven plugin generating the component metadata.")))
- (define-public maven-resolver-api
- (package
- (name "maven-resolver-api")
- (version "1.3.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/apache/maven-resolver.git")
- (commit (string-append "maven-resolver-" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1x1gll8nkfl6zgnab78fxxvvhg42b2grxgdh1wp2h4qxsjkxg93d"))))
- (build-system ant-build-system)
- (arguments
- `(#:jar-name "maven-resolver-api.jar"
- #:source-dir "maven-resolver-api/src/main/java"
- #:test-dir "maven-resolver-api/src/test"))
- (native-inputs
- `(("java-asm" ,java-asm)
- ("java-cglib" ,java-cglib)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("java-junit" ,java-junit)
- ("java-mockito-1" ,java-mockito-1)
- ("java-objenesis" ,java-objenesis)))
- (home-page "https://github.com/apache/maven-resolver")
- (synopsis "Maven repository system API")
- (description "This package contains the API for the maven repository system.")
- (license license:asl2.0)))
- (define-public maven-resolver-spi
- (package
- (inherit maven-resolver-api)
- (name "maven-resolver-spi")
- (arguments
- `(#:jar-name "maven-resolver-spi.jar"
- #:source-dir "maven-resolver-spi/src/main/java"
- #:test-dir "maven-resolver-spi/src/test"
- #:jdk ,icedtea-8))
- (inputs
- `(("maven-resolver-api" ,maven-resolver-api)))
- (synopsis "Maven repository system SPI")
- (description "This package contains the service provider interface (SPI)
- for repository system implementations and repository connectors.")))
- (define-public maven-resolver-test-util
- (package
- (inherit maven-resolver-api)
- (name "maven-resolver-test-util")
- (arguments
- `(#:jar-name "maven-resolver-test-util.jar"
- #:source-dir "maven-resolver-test-util/src/main/java"
- #:test-dir "maven-resolver-test-util/src/test"
- #:jdk ,icedtea-8))
- (inputs
- `(("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-spi" ,maven-resolver-spi)))
- (synopsis "Utility classes for testing the maven repository system")
- (description "This package contains a collection of utility classes to
- ease testing of the repository system.")))
- (define-public maven-resolver-util
- (package
- (inherit maven-resolver-api)
- (name "maven-resolver-util")
- (arguments
- `(#:jar-name "maven-resolver-util.jar"
- #:source-dir "maven-resolver-util/src/main/java"
- #:test-dir "maven-resolver-util/src/test"
- #:jdk ,icedtea-8))
- (inputs
- `(("maven-resolver-api" ,maven-resolver-api)))
- (native-inputs
- `(("java-junit" ,java-junit)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("maven-resolver-test-util" ,maven-resolver-test-util)))
- (synopsis "Utility classes for the maven repository system")
- (description "This package contains a collection of utility classes to
- ease usage of the repository system.")))
- (define-public maven-resolver-connector-basic
- (package
- (inherit maven-resolver-api)
- (name "maven-resolver-connector-basic")
- (arguments
- `(#:jar-name "maven-resolver-connector-basic.jar"
- #:source-dir "maven-resolver-connector-basic/src/main/java"
- #:test-dir "maven-resolver-connector-basic/src/test"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-sisu
- (lambda _
- (mkdir-p "build/classes/META-INF/sisu")
- (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
- (lambda _
- (display "org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory\n")))
- #t)))))
- (inputs
- `(("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-spi" ,maven-resolver-spi)
- ("maven-resolver-util" ,maven-resolver-util)
- ("java-javax-inject" ,java-javax-inject)
- ("java-slf4j-api" ,java-slf4j-api)))
- (native-inputs
- `(("java-junit" ,java-junit)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("maven-resolver-test-util" ,maven-resolver-test-util)))
- (synopsis "Maven repository connector implementation")
- (description "This package contains a repository connector implementation
- for repositories using URI-based layouts.")))
- (define-public maven-resolver-impl
- (package
- (inherit maven-resolver-api)
- (name "maven-resolver-impl")
- (arguments
- `(#:jar-name "maven-resolver-impl.jar"
- #:source-dir "maven-resolver-impl/src/main/java"
- #:test-dir "maven-resolver-impl/src/test"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-sisu
- (lambda _
- (mkdir-p "build/classes/META-INF/sisu")
- (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
- (lambda _
- (display
- (string-append
- ;; Build this list by looking for files containing "@Named"
- "org.eclipse.aether.internal.impl.DefaultArtifactResolver\n"
- "org.eclipse.aether.internal.impl.collect.DefaultDependencyCollector\n"
- "org.eclipse.aether.internal.impl.DefaultChecksumPolicyProvider\n"
- "org.eclipse.aether.internal.impl.DefaultDeployer\n"
- "org.eclipse.aether.internal.impl.DefaultFileProcessor\n"
- "org.eclipse.aether.internal.impl.DefaultInstaller\n"
- "org.eclipse.aether.internal.impl.DefaultLocalRepositoryProvider\n"
- "org.eclipse.aether.internal.impl.DefaultMetadataResolver\n"
- "org.eclipse.aether.internal.impl.DefaultOfflineController\n"
- "org.eclipse.aether.internal.impl.DefaultRemoteRepositoryManager\n"
- "org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider\n"
- "org.eclipse.aether.internal.impl.DefaultRepositoryEventDispatcher\n"
- "org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider\n"
- "org.eclipse.aether.internal.impl.DefaultRepositorySystem\n"
- "org.eclipse.aether.internal.impl.DefaultSyncContextFactory\n"
- "org.eclipse.aether.internal.impl.DefaultTransporterProvider\n"
- "org.eclipse.aether.internal.impl.DefaultUpdateCheckManager\n"
- "org.eclipse.aether.internal.impl.DefaultUpdatePolicyAnalyzer\n"
- "org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManagerFactory\n"
- "org.eclipse.aether.internal.impl.LoggerFactoryProvider\n"
- "org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory\n"
- "org.eclipse.aether.internal.impl.SimpleLocalRepositoryManagerFactory\n"
- "org.eclipse.aether.internal.impl.slf4j.Slf4jLoggerFactory"))))
- #t)))))
- (inputs
- `(("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-spi" ,maven-resolver-spi)
- ("maven-resolver-util" ,maven-resolver-util)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-javax-inject" ,java-javax-inject)
- ("java-guice" ,java-guice)
- ("java-guava" ,java-guava)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("jajva-aopalliance" ,java-aopalliance)
- ("java-slf4j-api" ,java-slf4j-api)))
- (native-inputs
- `(("java-junit" ,java-junit)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("maven-resolver-test-util" ,maven-resolver-test-util)))))
- (define-public maven-resolver-transport-wagon
- (package
- (inherit maven-resolver-api)
- (name "maven-resolver-transport-wagon")
- (arguments
- `(#:jar-name "maven-resolver-transport-wagon.jar"
- #:source-dir "maven-resolver-transport-wagon/src/main/java"
- #:test-dir "maven-resolver-transport-wagon/src/test"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-sisu
- (lambda _
- (mkdir-p "build/classes/META-INF/sisu")
- (with-output-to-file "build/classes/META-INF/sisu/javax.inject.Named"
- (lambda _
- (display "org.eclipse.aether.transport.wagon.WagonTransporterFactory\n")))
- #t))
- (add-before 'build 'generate-components.xml
- (lambda _
- (mkdir-p "build/classes/META-INF/plexus")
- (with-output-to-file "build/classes/META-INF/plexus/components.xml"
- (lambda _
- (display
- (string-append
- "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
- <component-set>
- <components>
- <component>
- <role>org.eclipse.aether.transport.wagon.WagonConfigurator</role>
- <role-hint>plexus</role-hint>
- <implementation>org.eclipse.aether.internal.transport.wagon.PlexusWagonConfigurator</implementation>
- <description />
- <isolated-realm>false</isolated-realm>
- <requirements>
- <requirement>
- <role>org.codehaus.plexus.PlexusContainer</role>
- <role-hint />
- <field-name>container</field-name>
- </requirement>
- </requirements>
- </component>
- <component>
- <role>org.eclipse.aether.transport.wagon.WagonProvider</role>
- <role-hint>plexus</role-hint>
- <implementation>org.eclipse.aether.internal.transport.wagon.PlexusWagonProvider</implementation>
- <description />
- <isolated-realm>false</isolated-realm>
- <requirements>
- <requirement>
- <role>org.codehaus.plexus.PlexusContainer</role>
- <role-hint />
- <field-name>container</field-name>
- </requirement>
- </requirements>
- </component>
- </components>
- </component-set>\n"))))
- #t)))))
- (inputs
- `(("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-spi" ,maven-resolver-spi)
- ("maven-resolver-util" ,maven-resolver-util)
- ("java-javax-inject" ,java-javax-inject)
- ("mavne-wagon-provider-api" ,maven-wagon-provider-api)
- ("java-plexus-component-annotation" ,java-plexus-component-annotations)
- ("java-plexus-classworld" ,java-plexus-classworlds)
- ("java-plexus-plexus-util" ,java-plexus-utils)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)))
- (native-inputs
- `(("java-junit" ,java-junit)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("maven-resolver-test-util" ,maven-resolver-test-util)
- ("java-guava" ,java-guava)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-aopalliance" ,java-aopalliance)
- ("java-guice" ,java-guice)))
- (synopsis "Transport implementation for Maven")
- (description "This package contains a transport implementation based on
- Maven Wagon, for use in Maven.")))
- (define-public maven-shared-utils
- (package
- (name "maven-shared-utils")
- (version "3.2.1")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://archive.apache.org/dist/maven/shared/"
- "maven-shared-utils-" version "-source-release.zip"))
- (sha256
- (base32
- "1kzmj68wwdcznb36hm6kfz57wbavw7g1rp236pz10znkjljn6rf6"))))
- (build-system ant-build-system)
- (arguments
- `(#:jar-name "maven-shared-utils.jar"
- #:source-dir "src/main/java"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'remove-cyclic-dep
- (lambda _
- (delete-file
- "src/test/java/org/apache/maven/shared/utils/introspection/ReflectionValueExtractorTest.java")
- #t)))))
- (inputs
- `(("java-jansi" ,java-jansi)
- ("java-commons-io" ,java-commons-io)
- ("java-jsr305" ,java-jsr305)
- ("java-plexus-container-default" ,java-plexus-container-default)))
- (native-inputs
- `(("unzip" ,unzip)
- ("java-junit" ,java-junit)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("java-commons-lang3" ,java-commons-lang3)))
- (home-page "https://maven.apache.org/shared/maven-shared-utils/")
- (synopsis "Plexus-util replacement for maven")
- (description "This project aims to be a functional replacement for
- plexus-utils in Maven. It is not a 100% API compatible replacement but a
- replacement with improvements.")
- (license license:asl2.0)))
- (define-public maven-plugin-annotations
- (package
- (name "maven-plugin-annotations")
- (version "3.5")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://archive.apache.org/dist/maven/"
- "plugin-tools/maven-plugin-tools-" version
- "-source-release.zip"))
- (sha256 (base32 "1ryqhs62j5pas93brhf5dsnvp99hxbvssf681yj5rk3r9h24hqm2"))))
- (build-system ant-build-system)
- (arguments
- `(#:jar-name "maven-plugin-annotations.jar"
- #:source-dir "maven-plugin-annotations/src/main/java"
- #:tests? #f))
- (inputs
- `(("maven-artifact" ,maven-artifact)))
- (native-inputs
- `(("unzip" ,unzip)))
- (home-page "https://maven.apache.org/plugin-tools/maven-plugin-annotations/")
- (synopsis "Java 5 annotations to use in Mojos")
- (description "This package contains Java 5 annotations for use in Mojos.")
- (license license:asl2.0)))
- (define-public maven-wagon-provider-api
- (package
- (name "maven-wagon-provider-api")
- (version "3.1.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://archive.apache.org/dist/maven/wagon/"
- "wagon-" version "-source-release.zip"))
- (sha256 (base32 "0r07j6xdzdnrvqnv8ida7dx1m05pznh5qgmcfcfpyvg9nxbj3l1n"))))
- (build-system ant-build-system)
- (arguments
- `(#:jar-name "maven-wagon-provider-api.jar"
- #:source-dir "wagon-provider-api/src/main/java"
- #:test-dir "wagon-provider-api/src/test"))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)))
- (native-inputs
- `(("unzip" ,unzip)
- ("java-junit" ,java-junit)
- ("java-easymock" ,java-easymock)))
- (home-page "https://maven.apache.org/wagon")
- (synopsis "Transport abstraction for Maven")
- (description "Maven Wagon is a transport abstraction that is used in Maven's
- artifact and repository handling code.")
- (license license:asl2.0)))
- (define-public maven-wagon-provider-test
- (package
- (inherit maven-wagon-provider-api)
- (name "maven-wagon-provider-test")
- (arguments
- `(#:jar-name "maven-wagon-provider-test.jar"
- #:source-dir "wagon-provider-test/src/main/java"
- #:tests? #f; no tests
- #:jdk ,icedtea-8))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-container-default" ,java-plexus-container-default)
- ("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
- ("java-eclipse-jetty-security-9.2" ,java-eclipse-jetty-security-9.2)
- ("java-eclipse-jetty-server-9.2" ,java-eclipse-jetty-server-9.2)
- ("java-eclipse-jetty-servlet-9.2" ,java-eclipse-jetty-servlet-9.2)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-javaee-servletapi" ,java-javaee-servletapi)
- ("maven-wagon-provider-api" ,maven-wagon-provider-api)))
- (synopsis "Test classes from maven-wagon")
- (description "Maven Wagon is a transport abstraction that is used in Maven's
- artifact and repository handling code. This package contains common test
- classes used in multiple maven-wagon components.")))
- (define-public maven-wagon-file
- (package
- (inherit maven-wagon-provider-api)
- (name "maven-wagon-file")
- (arguments
- `(#:jar-name "maven-wagon-file.jar"
- #:source-dir "wagon-providers/wagon-file/src/main/java"
- #:test-dir "wagon-providers/wagon-file/src/test"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'fix-paths
- (lambda _
- ;; Tests assume they are run by maven, which copies test resources
- ;; to target. Our ant-build-system does the same, but with the
- ;; build directory.
- (substitute* "wagon-providers/wagon-file/src/test/java/org/apache/maven/wagon/providers/file/FileWagonTest.java"
- (("target") "build"))
- #t))
- (add-after 'build 'generate-metadata
- (lambda _
- (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes")
- "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
- "--source" "wagon-providers/wagon-file/src/main/java"
- "--output" "build/classes/META-INF/plexus/components.xml"
- "--classes" "build/classes"
- "--descriptors" "build/classes/META-INF")
- #t))
- (add-after 'generate-metadata 'rebuild
- (lambda _
- (invoke "ant" "jar")
- #t)))))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)
- ("maven-wagon-provider-api" ,maven-wagon-provider-api)))
- (native-inputs
- `(("maven-wagon-provider-test" ,maven-wagon-provider-test)
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-guava" ,java-guava)
- ("java-guice" ,java-guice)
- ("java-javax-inject" ,java-javax-inject)
- ("java-cglib" ,java-cglib)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-cli" ,java-plexus-cli)
- ("maven-plugin-api" ,maven-plugin-api)
- ("maven-plugin-annotations" ,maven-plugin-annotations)
- ("maven-core" ,maven-core)
- ("maven-model" ,maven-model)
- ("java-commons-cli" ,java-commons-cli)
- ("java-qdox" ,java-qdox)
- ("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ,@(package-native-inputs maven-wagon-provider-api)))
- (synopsis "Wagon provider that gets and puts artifacts using the file system")
- (description "Maven Wagon is a transport abstraction that is used in Maven's
- artifact and repository handling code. It uses providers, that are tools to
- manage artifacts and deployment. This package contains the file provider which
- gets and puts artifacts using the file system.")))
- (define-public maven-wagon-tck-http
- (package
- (inherit maven-wagon-provider-api)
- (name "maven-wagon-tck-http")
- (arguments
- `(#:jar-name "maven-wagon-tck-http.jar"
- #:source-dir "wagon-tcks/wagon-tck-http/src/main/java"
- #:tests? #f; no tests
- #:jdk ,icedtea-8))
- (inputs
- `(("java-plexus-util" ,java-plexus-utils)
- ("maven-wagon-provider-api" ,maven-wagon-provider-api)
- ("java-tomcat" ,java-tomcat)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-commons-codec" ,java-commons-codec)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
- ("java-eclipse-jetty-webapp-9.2" ,java-eclipse-jetty-webapp-9.2)
- ("java-eclipse-jetty-security-9.2" ,java-eclipse-jetty-security-9.2)
- ("java-eclipse-jetty-server-9.2" ,java-eclipse-jetty-server-9.2)
- ("java-eclipse-jetty-servlet-9.2" ,java-eclipse-jetty-servlet-9.2)))
- (synopsis "Wagon HTTP Test Compatibility Kit")
- (description "Maven Wagon is a transport abstraction that is used in Maven's
- artifact and repository handling code. This package contains the HTTP
- Test Compatibility Kit.")))
- (define-public maven-wagon-http-shared
- (package
- (inherit maven-wagon-provider-api)
- (name "maven-wagon-http-shared")
- (arguments
- `(#:jar-name "maven-wagon-http-shared.jar"
- #:source-dir "wagon-providers/wagon-http-shared/src/main/java"
- #:test-dir "wagon-providers/wagon-http-shared/src/test"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-after 'build 'generate-metadata
- (lambda _
- (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes")
- "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
- "--source" "wagon-providers/wagon-http-shared/src/main/java"
- "--output" "build/classes/META-INF/plexus/components.xml"
- "--classes" "build/classes"
- "--descriptors" "build/classes/META-INF")
- #t))
- (add-after 'generate-metadata 'rebuild
- (lambda _
- (invoke "ant" "jar")
- #t)))))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)
- ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient)
- ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore)
- ("java-commons-io" ,java-commons-io)
- ("java-jsoup" ,java-jsoup)
- ("maven-wagon-provider-api" ,maven-wagon-provider-api)))
- (native-inputs
- `(("maven-wagon-provider-test" ,maven-wagon-provider-test)
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-guava" ,java-guava)
- ("java-guice" ,java-guice)
- ("java-javax-inject" ,java-javax-inject)
- ("java-cglib" ,java-cglib)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-cli" ,java-plexus-cli)
- ("maven-plugin-api" ,maven-plugin-api)
- ("maven-plugin-annotations" ,maven-plugin-annotations)
- ("maven-core" ,maven-core)
- ("maven-model" ,maven-model)
- ("java-commons-cli" ,java-commons-cli)
- ("java-qdox" ,java-qdox)
- ("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ,@(package-native-inputs maven-wagon-provider-api)))
- (synopsis "Shared Library for wagon providers supporting HTTP.")
- (description "Maven Wagon is a transport abstraction that is used in Maven's
- artifact and repository handling code. It uses providers, that are tools to
- manage artifacts and deployment. This package contains a shared library for
- wagon providers supporting HTTP.")))
- (define-public maven-wagon-http
- (package
- (inherit maven-wagon-provider-api)
- (name "maven-wagon-http")
- (arguments
- `(#:jar-name "maven-wagon-http.jar"
- #:source-dir "wagon-providers/wagon-http/src/main/java"
- #:test-dir "wagon-providers/wagon-http/src/test"
- #:test-exclude (list
- "**/Abstract*.java"
- ;; FIXME: javax.net.ssl.SSLHandshakeException:
- ;; sun.security.validator.ValidatorException:
- ;; PKIX path building failed:
- ;; sun.security.provider.certpath.SunCertPathBuilderException:
- ;; unable to find valid certification path to requested target
- "**/HttpsWagonPreemptiveTest.java"
- "**/HttpsWagonTest.java"
- ;; Injection errors
- "**/TckTest.java")
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'copy-resources
- (lambda _
- (install-file "wagon-providers/wagon-http/src/main/resources/META-INF/plexus/components.xml"
- "build/classes/META-INF/plexus")
- #t))
- (add-before 'check 'fix-resource-path
- (lambda _
- (substitute* '("wagon-providers/wagon-http/src/test/java/org/apache/maven/wagon/providers/http/HttpsWagonPreemptiveTest.java"
- "wagon-providers/wagon-http/src/test/java/org/apache/maven/wagon/providers/http/HttpsWagonTest.java")
- (("src/test") "wagon-providers/wagon-http/src/test"))
- #t)))))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)
- ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient)
- ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore)
- ("maven-wagon-http-shared" ,maven-wagon-http-shared)
- ("maven-wagon-tck-http" ,maven-wagon-tck-http)
- ("maven-wagon-provider-api" ,maven-wagon-provider-api)))
- (native-inputs
- `(("maven-wagon-provider-test" ,maven-wagon-provider-test)
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-container-default" ,java-plexus-container-default)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-guava" ,java-guava)
- ("java-guice" ,java-guice)
- ("java-inject" ,java-javax-inject)
- ("java-cglib" ,java-cglib)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-cli" ,java-plexus-cli)
- ("maven-plugin-api" ,maven-plugin-api)
- ("maven-plugin-annotations" ,maven-plugin-annotations)
- ("maven-core" ,maven-core)
- ("maven-model" ,maven-model)
- ("java-commons-cli" ,java-commons-cli)
- ("java-qdox" ,java-qdox)
- ("java-jdom2" ,java-jdom2)
- ("java-asm" ,java-asm)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-tomcat" ,java-tomcat)
- ("java-eclipse-jetty-util-9.2" ,java-eclipse-jetty-util-9.2)
- ("java-eclipse-jetty-io-9.2" ,java-eclipse-jetty-io-9.2)
- ("java-eclipse-jetty-http-9.2" ,java-eclipse-jetty-http-9.2)
- ("java-eclipse-jetty-server-9.2" ,java-eclipse-jetty-server-9.2)
- ("java-eclipse-jetty-servlet-9.2" ,java-eclipse-jetty-servlet-9.2)
- ("java-eclipse-jetty-security-9.2" ,java-eclipse-jetty-security-9.2)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("java-commons-logging-minimal" ,java-commons-logging-minimal)
- ("java-commons-codec" ,java-commons-codec)
- ("java-commons-io" ,java-commons-io)
- ("java-jsoup" ,java-jsoup)
- ("java-slf4j-simple" ,java-slf4j-simple)
- ,@(package-native-inputs maven-wagon-provider-api)))
- (synopsis "Wagon provider that gets and puts artifacts through HTTP(S)")
- (description "Maven Wagon is a transport abstraction that is used in Maven's
- artifact and repository handling code. It uses providers, that are tools to
- manage artifacts and deployment. This package contains a Wagon provider that
- gets and puts artifacts through HTTP(S) using Apache HttpClient-4.x.")))
- (define-public maven-artifact
- (package
- (name "maven-artifact")
- (version "3.6.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://archive.apache.org/dist/maven/"
- "maven-3/" version "/source/"
- "apache-maven-" version "-src.tar.gz"))
- (sha256 (base32 "17jrqfqwn569jgnv8m4pqc27csssb0rf6mznpq61l5bnbd6hl75k"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- (for-each delete-file (find-files "." "\\.jar$"))
- #t))
- (patches
- (search-patches "maven-generate-component-xml.patch"
- "maven-generate-javax-inject-named.patch"))))
- (build-system ant-build-system)
- (arguments
- `(#:jar-name "maven-artifact.jar"
- #:source-dir "maven-artifact/src/main/java"
- #:test-dir "maven-artifact/src/test"
- #:main-class "org.apache.maven.artifact.versioning.ComparableVersion"))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)
- ("java-commons-lang3" ,java-commons-lang3)))
- (native-inputs
- `(("java-junit" ,java-junit)))
- (home-page "https://maven.apache.org/")
- (synopsis "Build system")
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains the Maven Artifact classes, providing the
- @code{Artifact} interface, with its @code{DefaultArtifact} implementation. The
- jar file is executable and provides a little tool to display how Maven parses
- and compares versions:")
- (license license:asl2.0)))
- (define-public maven-model
- (package
- (inherit maven-artifact)
- (name "maven-model")
- (arguments
- `(#:jar-name "maven-model.jar"
- #:source-dir "maven-model/src/main/java"
- #:test-dir "maven-model/src/test"
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-models
- (lambda* (#:key inputs #:allow-other-keys)
- (define (modello-single-mode file version mode)
- (invoke "java" "org.codehaus.modello.ModelloCli"
- file mode "maven-model/src/main/java" version
- "false" "true"))
- (let ((file "maven-model/src/main/mdo/maven.mdo"))
- (modello-single-mode file "4.0.0" "java")
- (modello-single-mode file "4.0.0" "xpp3-reader")
- (modello-single-mode file "4.0.0" "xpp3-writer")
- (modello-single-mode file "4.0.0" "xpp3-extended-reader"))
- #t)))))
- (inputs
- `(("java-commons-lang3" ,java-commons-lang3)
- ("java-plexus-utils" ,java-plexus-utils)))
- (native-inputs
- `(("java-modello-core" ,java-modello-core)
- ;; for modello:
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-guice" ,java-guice)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-javax-inject" ,java-javax-inject)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-guava" ,java-guava)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
- ;; modello plugins:
- ("java-modello-plugins-java" ,java-modello-plugins-java)
- ("java-modello-plugins-xml" ,java-modello-plugins-xml)
- ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
- ;; for tests
- ("java-junit" ,java-junit)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains the model for Maven @dfn{POM} (Project Object Model),
- so really just plain Java objects.")))
- (define-public maven-builder-support
- (package
- (inherit maven-artifact)
- (name "maven-builder-support")
- (arguments
- `(#:jar-name "maven-builder-support.jar"
- #:source-dir "maven-builder-support/src/main/java"
- #:jdk ,icedtea-8
- #:test-dir "maven-builder-support/src/test"
- #:phases
- (modify-phases %standard-phases
- (add-before 'check 'fix-paths
- (lambda _
- (with-directory-excursion "maven-builder-support/src/test/java"
- (substitute*
- '("org/apache/maven/building/FileSourceTest.java"
- "org/apache/maven/building/UrlSourceTest.java")
- (("target/test-classes") "maven-builder-support/src/test/resources")))
- #t)))))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)
- ("java-commons-lang3" ,java-commons-lang3)))
- (native-inputs
- `(("java-junit" ,java-junit)
- ("java-hamcrest-core" ,java-hamcrest-core)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains a support library for descriptor builders (model,
- setting, toolchains)")))
- (define-public maven-settings
- (package
- (inherit maven-artifact)
- (name "maven-settings")
- (arguments
- `(#:jar-name "maven-settings.jar"
- #:source-dir "maven-settings/src/main/java"
- #:jdk ,icedtea-8
- #:tests? #f; no tests
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-models
- (lambda* (#:key inputs #:allow-other-keys)
- (define (modello-single-mode file version mode)
- (invoke "java" "org.codehaus.modello.ModelloCli"
- file mode "maven-settings/src/main/java" version
- "false" "true"))
- (let ((file "maven-settings/src/main/mdo/settings.mdo"))
- (modello-single-mode file "1.1.0" "java")
- (modello-single-mode file "1.1.0" "xpp3-reader")
- (modello-single-mode file "1.1.0" "xpp3-writer"))
- #t)))))
- (inputs '())
- (native-inputs
- `(("java-modello-core" ,java-modello-core)
- ;; for modello:
- ;("container" ,java-plexus-container-default)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-guice" ,java-guice)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-javax-inject" ,java-javax-inject)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-guava" ,java-guava)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
- ;; modello plugins:
- ("java-modello-plugins-java" ,java-modello-plugins-java)
- ("java-modello-plugins-xml" ,java-modello-plugins-xml)
- ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains strictly the model for Maven settings, that is
- simply plain java objects.")))
- (define-public maven-settings-builder
- (package
- (inherit maven-artifact)
- (name "maven-settings-builder")
- (arguments
- `(#:jar-name "maven-settings-builder.jar"
- #:source-dir "maven-settings-builder/src/main/java"
- #:jdk ,icedtea-8
- #:test-dir "maven-settings-builder/src/test"
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-components.xml
- (lambda _
- (mkdir-p "build/classes/META-INF/plexus")
- (chmod "components.sh" #o755)
- (invoke "./components.sh" "maven-settings-builder/src/main/java"
- "build/classes/META-INF/plexus/components.xml")
- #t)))))
- (inputs
- `(("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-plexus-interpolation" ,java-plexus-interpolation)
- ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher)
- ("maven-builder-support" ,maven-builder-support)
- ("maven-settings" ,maven-settings)
- ("java-commons-lang3" ,java-commons-lang3)))
- (native-inputs
- `(("java-junit" ,java-junit)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains the effective model builder, with profile activation,
- inheritance, interpolation, @dots{}")))
- (define-public maven-model-builder
- (package
- (inherit maven-artifact)
- (name "maven-model-builder")
- (arguments
- `(#:jar-name "maven-model-builder.jar"
- #:source-dir "maven-model-builder/src/main/java"
- #:jdk ,icedtea-8
- #:test-dir "maven-model-builder/src/test"
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'copy-resources
- (lambda _
- (copy-recursively "maven-model-builder/src/main/resources"
- "build/classes")
- #t))
- (add-before 'build 'generate-components.xml
- (lambda _
- (mkdir-p "build/classes/META-INF/plexus")
- (chmod "components.sh" #o755)
- (invoke "./components.sh" "maven-model-builder/src/main/java"
- "build/classes/META-INF/plexus/components.xml")
- #t))
- (add-before 'check 'fix-paths
- (lambda _
- (substitute* (find-files "maven-model-builder/src/test/java" ".*.java")
- (("src/test") "maven-model-builder/src/test"))
- #t)))))
- (inputs
- `(("model" ,maven-model)
- ("artifact" ,maven-artifact)
- ("support" ,maven-builder-support)
- ("annotations" ,java-plexus-component-annotations)
- ("utils" ,java-plexus-utils)
- ("interpolation" ,java-plexus-interpolation)
- ("lang3" ,java-commons-lang3)
- ("guava" ,java-guava)))
- (native-inputs
- `(("java-junit" ,java-junit)
- ("java-hamcrest-core" ,java-hamcrest-core)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("guice" ,java-guice)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("sisu-inject" ,java-eclipse-sisu-inject)
- ("javax-inject" ,java-javax-inject)
- ("java-xmlunit" ,java-xmlunit)
- ("java-xmlunit-matchers" ,java-xmlunit-matchers)
- ("xbean" ,java-geronimo-xbean-reflect)
- ("classworlds" ,java-plexus-classworlds)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains the effective model builder, with profile activation,
- inheritance, interpolation, @dots{}")))
- (define-public maven-repository-metadata
- (package
- (inherit maven-artifact)
- (name "maven-repository-metadata")
- (arguments
- `(#:jar-name "maven-repository-metadata.jar"
- #:source-dir "maven-repository-metadata/src/main/java"
- #:jdk ,icedtea-8
- #:tests? #f; no tests
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-models
- (lambda* (#:key inputs #:allow-other-keys)
- (define (modello-single-mode file version mode)
- (invoke "java" "org.codehaus.modello.ModelloCli"
- file mode "maven-repository-metadata/src/main/java" version
- "false" "true"))
- (let ((file "maven-repository-metadata/src/main/mdo/metadata.mdo"))
- (modello-single-mode file "1.1.0" "java")
- (modello-single-mode file "1.1.0" "xpp3-reader")
- (modello-single-mode file "1.1.0" "xpp3-writer"))
- #t)))))
- (inputs '())
- (native-inputs
- `(("modello" ,java-modello-core)
- ;; for modello:
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-guice" ,java-guice)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-javax-inject" ,java-javax-inject)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-guava" ,java-guava)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
- ;; modello plugins:
- ("java-modello-plugins-java" ,java-modello-plugins-java)
- ("java-modello-plugins-xml" ,java-modello-plugins-xml)
- ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains strictly the model for Maven Repository Metadata,
- so really just plain objects.")))
- (define-public maven-resolver-provider
- (package
- (inherit maven-artifact)
- (name "maven-resolver-provider")
- (arguments
- `(#:jar-name "maven-resolver-provider.jar"
- #:source-dir "maven-resolver-provider/src/main/java"
- #:test-dir "maven-resolver-provider/src/test"
- #:jdk ,icedtea-8
- #:tests? #f; dependency loop on maven-core (@Component RepositorySystem)
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-sisu-named
- (lambda _
- (mkdir-p "build/classes/META-INF/sisu")
- (chmod "./sisu.sh" #o755)
- (invoke "./sisu.sh" "maven-resolver-provider/src/main/java"
- "build/classes/META-INF/sisu/javax.inject.Named")
- #t)))))
- (inputs
- `(("maven-resolver-spi" ,maven-resolver-spi)
- ("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-impl" ,maven-resolver-impl)
- ("maven-resolver-util" ,maven-resolver-util)
- ("maven-model" ,maven-model)
- ("maven-model-builder" ,maven-model-builder)
- ("maven-builder-support" ,maven-builder-support)
- ("maven-repository-metadata" ,maven-repository-metadata)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-commons-lang3" ,java-commons-lang3)
- ("java-guice" ,java-guice)
- ("java-guava" ,java-guava)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-javax-inject" ,java-javax-inject)))))
- (define-public maven-plugin-api
- (package
- (inherit maven-artifact)
- (name "maven-plugin-api")
- (arguments
- `(#:jar-name "maven-plugin-api.jar"
- #:source-dir "maven-plugin-api/src/main/java"
- #:jdk ,icedtea-8
- #:test-dir "maven-plugin-api/src/test"
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-models
- (lambda* (#:key inputs #:allow-other-keys)
- (define (modello-single-mode file version mode)
- (invoke "java" "org.codehaus.modello.ModelloCli"
- file mode "maven-plugin-api/src/main/java" version
- "false" "true"))
- (let ((file "maven-plugin-api/src/main/mdo/lifecycle.mdo"))
- (modello-single-mode file "1.0.0" "java")
- (modello-single-mode file "1.0.0" "xpp3-reader")
- (modello-single-mode file "1.0.0" "xpp3-writer"))
- #t)))))
- (inputs
- `(("maven-artifact" ,maven-artifact)
- ("maven-model" ,maven-model)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("guice" ,java-guice)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("sisu-inject" ,java-eclipse-sisu-inject)
- ("javax-inject" ,java-javax-inject)
- ("utils" ,java-plexus-utils)))
- (native-inputs
- `(("modello" ,java-modello-core)
- ;; for modello:
- ("classworlds" ,java-plexus-classworlds)
- ("guava" ,java-guava)
- ("xbean" ,java-geronimo-xbean-reflect)
- ("build-api" ,java-sisu-build-api)
- ;; modello plugins:
- ("java" ,java-modello-plugins-java)
- ("xml" ,java-modello-plugins-xml)
- ("xpp3" ,java-modello-plugins-xpp3)
- ;; for tests
- ("java-junit" ,java-junit)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains strictly the API for plugins -- composed of goals
- implemented by Mojos -- development.
- A plugin is described in a @file{META-INF/maven/plugin.xml} plugin descriptor,
- generally generated from plugin sources using maven-plugin-plugin.")))
- (define maven-core-bootstrap
- (package
- (inherit maven-artifact)
- (name "maven-core")
- (arguments
- `(#:jar-name "maven-core.jar"
- #:source-dir "src/main/java"
- #:jdk ,icedtea-8
- ;; Tests need maven-compat, which requires maven-core
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-before 'configure 'chdir
- (lambda _
- ;; Required for generating components.xml in maven-core
- (chdir "maven-core")
- #t))
- (add-before 'build 'copy-resources
- (lambda _
- (mkdir-p "build/classes/")
- (copy-recursively "src/main/resources" "build/classes")
- #t))
- (add-after 'copy-resources 'fill-properties
- (lambda _
- ;; This file controls the output of some mvn subcommands, such as
- ;; mvn -version.
- (substitute* "build/classes/org/apache/maven/messages/build.properties"
- (("\\$\\{buildNumber\\}") "guix_build")
- (("\\$\\{timestamp\\}") "0")
- (("\\$\\{project.version\\}") ,(package-version maven-artifact))
- (("\\$\\{distributionId\\}") "apache-maven")
- (("\\$\\{distributionShortName\\}") "Maven")
- (("\\$\\{distributionName\\}") "Apache Maven"))
- #t))
- (add-before 'build 'generate-sisu-named
- (lambda _
- (mkdir-p "build/classes/META-INF/sisu")
- (chmod "../sisu.sh" #o755)
- (invoke "../sisu.sh" "src/main/java"
- "build/classes/META-INF/sisu/javax.inject.Named")
- #t))
- (add-before 'build 'generate-models
- (lambda* (#:key inputs #:allow-other-keys)
- (define (modello-single-mode file version mode)
- (invoke "java" "org.codehaus.modello.ModelloCli"
- file mode "src/main/java" version
- "false" "true"))
- (let ((file "src/main/mdo/toolchains.mdo"))
- (modello-single-mode file "1.1.0" "java")
- (modello-single-mode file "1.1.0" "xpp3-reader")
- (modello-single-mode file "1.1.0" "xpp3-writer"))
- #t)))))
- (inputs
- `(("maven-artifact" ,maven-artifact)
- ("maven-resolver-provider" ,maven-resolver-provider)
- ("maven-builder-support" ,maven-builder-support)
- ("maven-model" ,maven-model)
- ("maven-model-builder" ,maven-model-builder)
- ("maven-settings" ,maven-settings)
- ("maven-settings-builder" ,maven-settings-builder)
- ("maven-plugin-api" ,maven-plugin-api)
- ("maven-repository-metadata" ,maven-repository-metadata)
- ("maven-shared-utils" ,maven-shared-utils)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-commons-lang3" ,java-commons-lang3)
- ("java-guava" ,java-guava)
- ("java-guice" ,java-guice)
- ("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-spi" ,maven-resolver-spi)
- ("maven-resolver-util" ,maven-resolver-util)
- ("maven-resolver-impl" ,maven-resolver-impl)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-javax-inject" ,java-javax-inject)
- ("java-plexus-classworld" ,java-plexus-classworlds)))
- (native-inputs
- `(("java-modello-core" ,java-modello-core)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
- ("java-modello-plugins-java" ,java-modello-plugins-java)
- ("java-modello-plugins-xml" ,java-modello-plugins-xml)
- ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
- ;; tests
- ("java-junit" ,java-junit)
- ("java-mockito-1" ,java-mockito-1)
- ("java-commons-jxpath" ,java-commons-jxpath)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains the maven core classes managing the whole build
- process.")))
- (define-public maven-core
- (package
- (inherit maven-core-bootstrap)
- (arguments
- (substitute-keyword-arguments (package-arguments maven-core-bootstrap)
- ((#:phases phases)
- `(modify-phases ,phases
- (add-before 'build 'modify-metainf
- (lambda _
- (substitute* "build.xml"
- (("message=\"\"") "message=\"Implementation-Version: 3.5.4\n\""))
- #t))
- (add-before 'build 'add-maven-files
- (lambda _
- (mkdir-p "build/classes/META-INF/maven/org.apache.maven/maven-core")
- (copy-file "pom.xml"
- "build/classes/META-INF/maven/org.apache.maven/maven-core/pom.xml")
- (with-output-to-file "build/classes/META-INF/maven/org.apache.maven/maven-core/pom.properties"
- (lambda _
- (format #t "version=~a~%
- groupId=org.apache.maven~%
- artifactId=maven-core" ,(package-version maven-core-bootstrap))))
- #t))
- (add-after 'build 'generate-metadata
- (lambda _
- (define (components file)
- (let ((sxml (with-input-from-file file
- (lambda _ (xml->sxml (current-input-port)
- #:trim-whitespace? #t)))))
- ;; Select the list of <component>s inside the <component-set>
- ;; and <components>.
- ((@ (ice-9 match) match) sxml
- (('*TOP*
- ('*PI* foo ...)
- ('component-set
- ('components x ...))) x))))
- (use-modules (sxml simple))
- (delete-file "build/classes/META-INF/plexus/components.xml")
- (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes")
- "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
- "--source" "build/classes/META-INF/plexus"
- "--output" "build/classes/META-INF/plexus/components.t.xml"
- "--classes" "build/classes"
- "--descriptors" "build/classes")
- ;; Now we merge all other components from hand-written xml
- (let ((generated-xml (components "build/classes/META-INF/plexus/components.t.xml"))
- (components-xml (components "src/main/resources/META-INF/plexus/components.xml"))
- (default-bindings-xml (components "src/main/resources/META-INF/plexus/default-bindings.xml"))
- (artifact-handlers-xml (components "src/main/resources/META-INF/plexus/artifact-handlers.xml")))
- (with-output-to-file "build/classes/META-INF/plexus/components.xml"
- (lambda _
- (display "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
- (sxml->xml
- `(component-set
- (components
- ,@(append generated-xml components-xml
- default-bindings-xml
- artifact-handlers-xml)))))))
- #t))
- (add-after 'generate-metadata 'rebuild
- (lambda _
- (invoke "ant" "jar")
- #t))))))
- (native-inputs
- `(("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-commons-cli" ,java-commons-cli)
- ("java-plexus-cli" ,java-plexus-cli)
- ("java-jdom2" ,java-jdom2)
- ("java-qdox" ,java-qdox)
- ("maven-core-boot" ,maven-core-bootstrap)
- ,@(package-native-inputs maven-core-bootstrap)))))
- (define-public maven-embedder
- (package
- (inherit maven-artifact)
- (name "maven-embedder")
- (arguments
- `(#:jar-name "maven-embedder.jar"
- #:source-dir "maven-embedder/src/main/java"
- #:test-dir "maven-embedder/src/test"
- #:test-exclude (list "**/MavenCliTest.java")
- #:jdk ,icedtea-8
- #:phases
- (modify-phases %standard-phases
- (add-before 'build 'generate-sisu-named
- (lambda _
- (mkdir-p "build/classes/META-INF/sisu")
- (chmod "sisu.sh" #o755)
- (invoke "./sisu.sh" "maven-embedder/src/main/java"
- "build/classes/META-INF/sisu/javax.inject.Named")
- #t))
- (add-before 'build 'generate-models
- (lambda* (#:key inputs #:allow-other-keys)
- (define (modello-single-mode file version mode)
- (invoke "java" "org.codehaus.modello.ModelloCli"
- file mode "maven-embedder/src/main/java" version
- "false" "true"))
- (let ((file "maven-embedder/src/main/mdo/core-extensions.mdo"))
- (modello-single-mode file "1.0.0" "java")
- (modello-single-mode file "1.0.0" "xpp3-reader")
- (modello-single-mode file "1.0.0" "xpp3-writer"))
- #t))
- (add-before 'check 'fix-test-paths
- (lambda _
- (substitute* "maven-embedder/src/test/java/org/apache/maven/cli/CLIManagerDocumentationTest.java"
- (("target/test-classes") "build/test-classes"))
- #t))
- (add-before 'check 'fix-test-compilation
- (lambda _
- ;; Tests are in the java/ subdir. Other subdirectories contain
- ;; additional test plugins, with duplicate classes, so we can't
- ;; compile them. Also, they are meant to be built with maven, to
- ;; test its build process.
- (substitute* "build.xml"
- (("srcdir=\"maven-embedder/src/test\"")
- "srcdir=\"maven-embedder/src/test/java\""))
- #t)))))
- (inputs
- `(("maven-core" ,maven-core)
- ("maven-artifact" ,maven-artifact)
- ("maven-plugin-api" ,maven-plugin-api)
- ("maven-builder-support" ,maven-builder-support)
- ("maven-model" ,maven-model)
- ("maven-model-builder" ,maven-model-builder)
- ("maven-settings" ,maven-settings)
- ("maven-settings-builder" ,maven-settings-builder)
- ("maven-shared-utils" ,maven-shared-utils)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-plexus-util" ,java-plexus-utils)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-plexus-cipher" ,java-plexus-cipher)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher)
- ("maven-resolevr-util" ,maven-resolver-util)
- ("maven-resolevr-api" ,maven-resolver-api)
- ("java-logback-core" ,java-logback-core)
- ("java-logback-classic" ,java-logback-classic)
- ("java-commons-cli" ,java-commons-cli)
- ("java-commons-io" ,java-commons-io)
- ("java-commons-lang3" ,java-commons-lang3)
- ("java-guava" ,java-guava)
- ("java-guice" ,java-guice)
- ("java-javax-inject" ,java-javax-inject)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-slf4j-simple" ,java-slf4j-simple)))
- (native-inputs
- `(("java-modello-core" ,java-modello-core)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-modello-plugins-java" ,java-modello-plugins-java)
- ("java-modello-plugins-xml" ,java-modello-plugins-xml)
- ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
- ;; tests
- ("java-junit" ,java-junit)
- ("java-objenesis" ,java-objenesis)
- ("java-mockito-1" ,java-mockito-1)
- ("java-hamcrest-core" ,java-hamcrest-core)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains a Maven embeddable component, with CLI and
- logging support.")))
- (define-public maven-compat
- (package
- (inherit maven-artifact)
- (name "maven-compat")
- (arguments
- `(#:jar-name "maven-compat.jar"
- #:source-dir "src/main/java"
- #:jdk ,icedtea-8
- #:test-dir "src/test"
- #:phases
- (modify-phases %standard-phases
- ;; Tests assume we're in this directory
- (add-before 'configure 'chdir
- (lambda _
- (chdir "maven-compat")
- #t))
- (add-before 'build 'recreate-removed-jar
- (lambda _
- (with-output-to-file "src/test/repository-system/maven-core-2.1.0.jar"
- (const #t))
- (with-directory-excursion "src/test/resources"
- (with-output-to-file "artifact-install/artifact-1.0.jar"
- (lambda _
- (format #t "dummy~%")))
- (for-each
- (lambda (file)
- (with-output-to-file file
- (lambda _
- (format #t "foo~%"))))
- '("local-repo/maven-test/jars/maven-test-a-1.0.jar"
- "local-repo/maven-test/jars/maven-test-c-1.0.jar"
- "local-repo/maven-test/jars/maven-test-d-1.0.jar"
- "inheritance-repo/t04/maven-test/jars/t04-a-1.0.jar"
- "inheritance-repo/t04/maven-test/jars/t04-b-1.0.jar"
- "inheritance-repo/t04/maven-test/jars/t04-b-2.0.jar"
- "inheritance-repo/t04/maven-test/jars/t04-c-1.0.jar"
- "inheritance-repo/t04/maven-test/jars/t04-c-2.0.jar"
- "inheritance-repo/t05/maven-test/jars/t05-a-1.0.jar"
- "inheritance-repo/t05/maven-test/jars/t05-a-2.0.jar"
- "inheritance-repo/t05/maven-test/jars/t05-b-1.0.jar"
- "inheritance-repo/t05/maven-test/jars/t05-b-1.1.jar"
- "inheritance-repo/t05/maven-test/jars/t05-b-2.0.jar"
- "inheritance-repo/t05/maven-test/jars/t05-c-1.0.jar"
- "inheritance-repo/t05/maven-test/jars/t05-d-1.0.jar"
- "inheritance-repo/t05/maven-test/jars/t05-d-1.1.jar"
- "inheritance-repo/t05/maven-test/jars/t05-d-1.2.jar"
- "inheritance-repo/t06/maven-test/jars/t06-a-1.0.jar"
- "inheritance-repo/t06/maven-test/jars/t06-b-1.0.jar"
- "inheritance-repo/t06/maven-test/jars/t06-b-1.1.jar"
- "inheritance-repo/t06/maven-test/jars/t06-c-1.0.jar"
- "inheritance-repo/t06/maven-test/jars/t06-d-1.0.jar"
- "inheritance-repo/t06/maven-test/jars/t06-d-1.1.jar"
- "inheritance-repo/t06/maven-test/jars/t06-d-1.2.jar"
- "inheritance-repo/t07/maven-test/jars/t07-a-1.0.jar"
- "inheritance-repo/t07/maven-test/jars/t07-b-1.0.jar"
- "inheritance-repo/t07/maven-test/jars/t07-b-1.1.jar"
- "inheritance-repo/t07/maven-test/jars/t07-c-1.0.jar"
- "inheritance-repo/t07/maven-test/jars/t07-d-1.0.jar"
- "inheritance-repo/t07/maven-test/jars/t07-d-1.1.jar"
- "inheritance-repo/t07/maven-test/jars/t07-d-1.2.jar"
- "inheritance-repo/t08/maven-test/jars/t08-a-1.0.jar"
- "inheritance-repo/t08/maven-test/jars/t08-b-1.0.jar"
- "inheritance-repo/t08/maven-test/jars/t08-b-1.1.jar"
- "inheritance-repo/t08/maven-test/jars/t08-c-1.0.jar"
- "inheritance-repo/t08/maven-test/jars/t08-d-1.0.jar"
- "inheritance-repo/t08/maven-test/jars/t08-d-1.1.jar"
- "inheritance-repo/t08/maven-test/jars/t08-d-1.2.jar"
- "inheritance-repo/t09/maven-test/jars/t09-a-1.0.jar"
- "inheritance-repo/t09/maven-test/jars/t09-b-1.0.jar"
- "inheritance-repo/t09/maven-test/jars/t09-c-1.0.jar"
- "inheritance-repo/t09/maven-test/jars/t09-d-1.0.jar"
- "inheritance-repo/t10/maven-test/jars/t10-a-1.0.jar"
- "inheritance-repo/t10/maven-test/jars/t10-b-1.0.jar"
- "inheritance-repo/t10/maven-test/jars/t10-c-1.0.jar"))
- (with-directory-excursion "local-repo/snapshot-test/jars"
- (for-each
- (lambda (file)
- (with-output-to-file file
- (lambda _
- ;; No end-of-line
- (format #t "local"))))
- '("maven-snapshot-e-1.0-SNAPSHOT.jar"
- "maven-snapshot-b-1.0-SNAPSHOT.jar"
- "maven-snapshot-a-1.0-SNAPSHOT.jar"))))
- (for-each
- (lambda (letter)
- (with-directory-excursion
- (string-append "src/test/remote-repo/org/apache/maven/its/"
- letter "/0.1")
- (let ((dir (string-append "META-INF/maven/org.apache.maven.its/"
- letter)))
- (mkdir-p dir)
- (copy-file (string-append letter "-0.1.pom")
- (string-append dir "/pom.xml"))
- (with-output-to-file (string-append dir "/pom.properties")
- (lambda _
- (format #t "version=0.1~%")
- (format #t "groupId=org.apache.maven.its")
- (format #t (string-append "artifactId=" letter))))
- (with-output-to-file "META-INF/MANIFEST.MF"
- (lambda _
- (format #t "Manifest-Version: 1.0~%"))))
- (invoke "jar" "cmf" "META-INF/MANIFEST.MF"
- (string-append letter "-0.1.jar") "META-INF")))
- '("a" "b"))
- #t))
- (add-before 'build 'generate-models
- (lambda* (#:key inputs #:allow-other-keys)
- (define (modello-single-mode file version mode)
- (invoke "java" "org.codehaus.modello.ModelloCli"
- file mode "src/main/java" version
- "false" "true"))
- (let ((file "src/main/mdo/profiles.mdo"))
- (modello-single-mode file "1.0.0" "java")
- (modello-single-mode file "1.0.0" "xpp3-reader")
- (modello-single-mode file "1.0.0" "xpp3-writer"))
- (let ((file "src/main/mdo/paramdoc.mdo"))
- (modello-single-mode file "1.0.0" "java")
- (modello-single-mode file "1.0.0" "xpp3-reader")
- (modello-single-mode file "1.0.0" "xpp3-writer"))
- #t))
- (add-after 'build 'generate-metadata
- (lambda _
- (invoke "java" "-cp" (string-append (getenv "CLASSPATH") ":build/classes")
- "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
- "--source" "src/main/java"
- "--output" "build/classes/META-INF/plexus/components.xml"
- "--classes" "build/classes"
- "--descriptors" "build/classes/META-INF")
- #t))
- (add-before 'check 'build-tests
- (lambda _
- (invoke "ant" "compile-tests")
- #t))
- (add-after 'build-tests 'generate-test-metadata
- (lambda _
- (invoke "java" "-cp" (string-append (getenv "CLASSPATH")
- ":build/classes"
- ":build/test-classes")
- "org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli"
- "--source" "src/test/java"
- "--output" "build/test-classes/META-INF/plexus/components.xml"
- "--classes" "build/test-classes"
- "--descriptors" "build/test-classes/META-INF")
- #t))
- (add-after 'generate-metadata 'rebuild
- (lambda _
- (invoke "ant" "jar")
- #t)))))
- (inputs
- `(("maven-artifact" ,maven-artifact)
- ("maven-repository-metadata" ,maven-repository-metadata)
- ("maven-builder-support" ,maven-builder-support)
- ("maven-model" ,maven-model)
- ("maven-model-builder" ,maven-model-builder)
- ("maven-settings" ,maven-settings)
- ("maven-settings-builder" ,maven-settings-builder)
- ("maven-core" ,maven-core)
- ("maven-wagon-provider-api" ,maven-wagon-provider-api)
- ("maven-wagon-file" ,maven-wagon-file)
- ("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-util" ,maven-resolver-util)
- ("maven-resolver-spi" ,maven-resolver-spi)
- ("java-plexus-interpolation" ,java-plexus-interpolation)))
- (native-inputs
- `(("java-modello-core" ,java-modello-core)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-plexus-classworlds" ,java-plexus-classworlds)
- ("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
- ("java-sisu-build-api" ,java-sisu-build-api)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-exclispe-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-javax-inject" ,java-javax-inject)
- ("java-guice" ,java-guice)
- ("java-guava" ,java-guava)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-modello-plugins-java" ,java-modello-plugins-java)
- ("java-modello-plugins-xml" ,java-modello-plugins-xml)
- ("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
- ;; metadata
- ("java-plexus-component-metadata" ,java-plexus-component-metadata)
- ("java-commons-cli" ,java-commons-cli)
- ("java-plexus-cli" ,java-plexus-cli)
- ("java-jdom2" ,java-jdom2)
- ("maven-plugin-api" ,maven-plugin-api)
- ("java-qdox" ,java-qdox)
- ;; tests
- ("java-plexus-cipher" ,java-plexus-cipher)
- ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher)
- ("java-jsr250" ,java-jsr250)
- ("java-cdi-api" ,java-cdi-api)
- ("java-junit" ,java-junit)
- ("maven-resolver-impl" ,maven-resolver-impl)
- ("maven-resolver-connector-basic" ,maven-resolver-connector-basic)
- ("maven-resolver-transport-wagon" ,maven-resolver-transport-wagon)
- ("java-commons-lang3" ,java-commons-lang3)
- ("java-aop" ,java-aopalliance)
- ("maven-resolver-provider" ,maven-resolver-provider)
- ("java-slf4j-api" ,java-slf4j-api)
- ("java-slf4j-simple" ,java-slf4j-simple)
- ,@(package-inputs java-slf4j-api)))
- (description "Apache Maven is a software project management and comprehension
- tool. This package contains Maven2 classes maintained as compatibility
- layer for plugins that need to keep Maven2 compatibility.")))
- (define-public maven
- (package
- (inherit maven-artifact)
- (name "maven")
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'build
- (lambda* (#:key inputs #:allow-other-keys)
- ;; Recreate the configuration for the loader
- (with-output-to-file "apache-maven/src/bin/m2.conf"
- (lambda _
- (format #t "main is org.apache.maven.cli.MavenCli from plexus.core~%")
- (format #t "~%")
- (format #t "set maven.conf default ${maven.home}/conf~%")
- (format #t "~%")
- (format #t "[plexus.core]~%")
- (format #t "load ${maven.conf}/logging~%")
- (format #t "optionally ${maven.home}/lib/ext/*.jar~%")
- ;; Reference every jar so plexus-classworlds can find them.
- (for-each
- (lambda (dependency)
- (format #t "load ~a/share/java/*.jar~%"
- (assoc-ref inputs dependency)))
- '("maven-artifact" "maven-embedder" "maven-core" "maven-compat"
- "maven-builder-support" "maven-model" "maven-model-builder"
- "maven-settings" "maven-settings-builder" "maven-plugin-api"
- "maven-repository-metadata" "maven-shared-utils" "maven-resolver-api"
- "maven-resolver-spi" "maven-resolver-util" "maven-resolver-impl"
- "maven-resolver-connector-basic" "maven-resolver-provider"
- "maven-resolver-transport-wagon" "maven-wagon-provider-api"
- "maven-wagon-file" "maven-wagon-http" "java-commons-logging-minimal"
- "java-httpcomponents-httpclient" "java-httpcomponents-httpcore"
- "maven-wagon-http-shared" "maven-wagon-tck-http"
- "java-eclipse-sisu-plexus" "java-guice" "java-aopalliance"
- "java-cglib" "java-asm" "java-eclipse-sisu-inject"
- "java-javax-inject" "java-plexus-component-annotations"
- "java-plexus-utils" "java-plexus-interpolation"
- "java-plexus-sec-dispatcher" "java-plexus-cipher" "java-guava"
- "java-jansi" "java-jsr250" "java-cdi-api" "java-commons-cli"
- "java-commons-io" "java-commons-lang3" "java-slf4j-api"
- "java-slf4j-simple"))))
- (substitute* "apache-maven/src/bin/mvn"
- (("cygwin=false;")
- (string-append
- "CLASSPATH="
- (car (find-files
- (assoc-ref inputs "java-plexus-classworlds")
- ".*.jar"))
- "\ncygwin=false;"))
- (("-classpath.*") "-classpath ${CLASSPATH} \\\n"))
- #t))
- (delete 'check)
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((bin (string-append (assoc-ref outputs "out") "/bin/"))
- (conf (string-append (assoc-ref outputs "out") "/conf/")))
- (mkdir-p (string-append (assoc-ref outputs "out") "/lib"))
- (for-each (lambda (file)
- (install-file (string-append "apache-maven/src/bin/" file)
- bin)
- (chmod (string-append bin file) #o755))
- '("mvn" "mvnDebug" "mvnyjp"))
- (install-file "apache-maven/src/bin/m2.conf" bin)
- (copy-recursively "apache-maven/src/conf" conf))
- #t)))))
- (inputs
- `(("java-plexus-classworlds" ,java-plexus-classworlds)
- ("maven-artifact" ,maven-artifact)
- ("maven-embedder" ,maven-embedder)
- ("maven-core" ,maven-core)
- ("maven-compat" ,maven-compat)
- ("maven-builder-support" ,maven-builder-support)
- ("maven-model" ,maven-model)
- ("maven-model-builder" ,maven-model-builder)
- ("maven-settings" ,maven-settings)
- ("maven-settings-builder" ,maven-settings-builder)
- ("maven-plugin-api" ,maven-plugin-api)
- ("maven-repository-metadata" ,maven-repository-metadata)
- ("maven-shared-utils" ,maven-shared-utils)
- ("maven-resolver-api" ,maven-resolver-api)
- ("maven-resolver-spi" ,maven-resolver-spi)
- ("maven-resolver-util" ,maven-resolver-util)
- ("maven-resolver-impl" ,maven-resolver-impl)
- ("maven-resolver-connector-basic" ,maven-resolver-connector-basic)
- ("maven-resolver-provider" ,maven-resolver-provider)
- ("maven-resolver-transport-wagon" ,maven-resolver-transport-wagon)
- ("maven-wagon-provider-api" ,maven-wagon-provider-api)
- ("maven-wagon-file" ,maven-wagon-file)
- ("maven-wagon-http" ,maven-wagon-http)
- ("java-commons-logging-minimal" ,java-commons-logging-minimal)
- ("java-httpcomponents-httpclient" ,java-httpcomponents-httpclient)
- ("java-httpcomponents-httpcore" ,java-httpcomponents-httpcore)
- ("maven-wagon-http-shared" ,maven-wagon-http-shared)
- ("maven-wagon-tck-http" ,maven-wagon-tck-http)
- ("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
- ("java-guice" ,java-guice)
- ("java-aopalliance" ,java-aopalliance)
- ("java-cglib" ,java-cglib)
- ("java-asm" ,java-asm)
- ("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
- ("java-javax-inject" ,java-javax-inject)
- ("java-plexus-component-annotations" ,java-plexus-component-annotations)
- ("java-plexus-utils" ,java-plexus-utils)
- ("java-plexus-interpolation" ,java-plexus-interpolation)
- ("java-plexus-sec-dispatcher" ,java-plexus-sec-dispatcher)
- ("java-plexus-cipher" ,java-plexus-cipher)
- ("java-guava" ,java-guava)
- ("java-jansi" ,java-jansi)
- ("java-jsr250" ,java-jsr250)
- ("java-cdi-api" ,java-cdi-api)
- ("java-commons-cli" ,java-commons-cli)
- ("java-commons-io" ,java-commons-io)
- ("java-commons-lang3" ,java-commons-lang3)
- ("java-slf4j-api" ,java-slf4j-api)
- ;; TODO: replace with maven-slf4j-provider
- ("java-slf4j-simple" ,java-slf4j-simple)))
- (propagated-inputs
- `(("coreutils" ,coreutils)
- ("which" ,which)))
- (description "Apache Maven is a software project management and comprehension
- tool. Based on the concept of a project object model: builds, dependency
- management, documentation creation, site publication, and distribution
- publication are all controlled from the @file{pom.xml} declarative file. Maven
- can be extended by plugins to utilise a number of other development tools for
- reporting or the build process.")))
|