gnu: java-plexus-component-metadata: Move to java.scm.
* gnu/packages/maven.scm (maven-core-bootstrap): Make public and hidden. (java-plexus-component-metadata): Move to ... * gnu/packages/java.scm: ... here.master
parent
0ab9eba78e
commit
015e8774b7
|
@ -66,6 +66,7 @@
|
||||||
#:use-module (gnu packages libffi)
|
#:use-module (gnu packages libffi)
|
||||||
#:use-module (gnu packages linux) ;alsa
|
#:use-module (gnu packages linux) ;alsa
|
||||||
#:use-module (gnu packages maths)
|
#:use-module (gnu packages maths)
|
||||||
|
#:use-module (gnu packages maven)
|
||||||
#:use-module (gnu packages maven-parent-pom)
|
#:use-module (gnu packages maven-parent-pom)
|
||||||
#:use-module (gnu packages nss)
|
#:use-module (gnu packages nss)
|
||||||
#:use-module (gnu packages onc-rpc)
|
#:use-module (gnu packages onc-rpc)
|
||||||
|
@ -4275,6 +4276,51 @@ archives (jar).")
|
||||||
(description "This package is a Maven plugin to generate Plexus descriptors
|
(description "This package is a Maven plugin to generate Plexus descriptors
|
||||||
from source tags and class annotations.")))
|
from source tags and class annotations.")))
|
||||||
|
|
||||||
|
(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)))))
|
||||||
|
(propagated-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 java-plexus-cipher
|
(define-public java-plexus-cipher
|
||||||
(package
|
(package
|
||||||
(name "java-plexus-cipher")
|
(name "java-plexus-cipher")
|
||||||
|
|
|
@ -35,51 +35,6 @@
|
||||||
#:use-module (gnu packages xml)
|
#:use-module (gnu packages xml)
|
||||||
#:use-module (ice-9 match))
|
#:use-module (ice-9 match))
|
||||||
|
|
||||||
(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)))))
|
|
||||||
(propagated-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
|
(define-public maven-resolver-api
|
||||||
(package
|
(package
|
||||||
(name "maven-resolver-api")
|
(name "maven-resolver-api")
|
||||||
|
@ -1472,106 +1427,107 @@ implemented by Mojos -- development.
|
||||||
A plugin is described in a @file{META-INF/maven/plugin.xml} plugin descriptor,
|
A plugin is described in a @file{META-INF/maven/plugin.xml} plugin descriptor,
|
||||||
generally generated from plugin sources using maven-plugin-plugin.")))
|
generally generated from plugin sources using maven-plugin-plugin.")))
|
||||||
|
|
||||||
(define maven-core-bootstrap
|
(define-public maven-core-bootstrap
|
||||||
(package
|
(hidden-package
|
||||||
(inherit maven-artifact)
|
(package
|
||||||
(name "maven-core")
|
(inherit maven-artifact)
|
||||||
(arguments
|
(name "maven-core")
|
||||||
`(#:jar-name "maven-core.jar"
|
(arguments
|
||||||
#:source-dir "src/main/java"
|
`(#:jar-name "maven-core.jar"
|
||||||
#:jdk ,icedtea-8
|
#:source-dir "src/main/java"
|
||||||
;; Tests need maven-compat, which requires maven-core
|
#:jdk ,icedtea-8
|
||||||
#:tests? #f
|
;; Tests need maven-compat, which requires maven-core
|
||||||
#:phases
|
#:tests? #f
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-before 'configure 'chdir
|
(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-before 'configure 'chdir
|
||||||
;; Required for generating components.xml in maven-core
|
(lambda _
|
||||||
(chdir "maven-core")
|
;; Required for generating components.xml in maven-core
|
||||||
#t))
|
(chdir "maven-core")
|
||||||
(add-before 'build 'copy-resources
|
#t))
|
||||||
(lambda _
|
(add-before 'build 'copy-resources
|
||||||
(mkdir-p "build/classes/")
|
(lambda _
|
||||||
(copy-recursively "src/main/resources" "build/classes")
|
(mkdir-p "build/classes/")
|
||||||
#t))
|
(copy-recursively "src/main/resources" "build/classes")
|
||||||
(add-after 'copy-resources 'fill-properties
|
#t))
|
||||||
(lambda _
|
(add-after 'copy-resources 'fill-properties
|
||||||
;; This file controls the output of some mvn subcommands, such as
|
(lambda _
|
||||||
;; mvn -version.
|
;; This file controls the output of some mvn subcommands, such as
|
||||||
(substitute* "build/classes/org/apache/maven/messages/build.properties"
|
;; mvn -version.
|
||||||
(("\\$\\{buildNumber\\}") "guix_build")
|
(substitute* "build/classes/org/apache/maven/messages/build.properties"
|
||||||
(("\\$\\{timestamp\\}") "0")
|
(("\\$\\{buildNumber\\}") "guix_build")
|
||||||
(("\\$\\{project.version\\}") ,(package-version maven-artifact))
|
(("\\$\\{timestamp\\}") "0")
|
||||||
(("\\$\\{distributionId\\}") "apache-maven")
|
(("\\$\\{project.version\\}") ,(package-version maven-artifact))
|
||||||
(("\\$\\{distributionShortName\\}") "Maven")
|
(("\\$\\{distributionId\\}") "apache-maven")
|
||||||
(("\\$\\{distributionName\\}") "Apache Maven"))
|
(("\\$\\{distributionShortName\\}") "Maven")
|
||||||
#t))
|
(("\\$\\{distributionName\\}") "Apache Maven"))
|
||||||
(add-before 'build 'generate-sisu-named
|
#t))
|
||||||
(lambda _
|
(add-before 'build 'generate-sisu-named
|
||||||
(mkdir-p "build/classes/META-INF/sisu")
|
(lambda _
|
||||||
(chmod "../sisu.sh" #o755)
|
(mkdir-p "build/classes/META-INF/sisu")
|
||||||
(invoke "../sisu.sh" "src/main/java"
|
(chmod "../sisu.sh" #o755)
|
||||||
"build/classes/META-INF/sisu/javax.inject.Named")
|
(invoke "../sisu.sh" "src/main/java"
|
||||||
#t))
|
"build/classes/META-INF/sisu/javax.inject.Named")
|
||||||
(add-before 'build 'generate-models
|
#t))
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(add-before 'build 'generate-models
|
||||||
(define (modello-single-mode file version mode)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(invoke "java" "org.codehaus.modello.ModelloCli"
|
(define (modello-single-mode file version mode)
|
||||||
file mode "src/main/java" version
|
(invoke "java" "org.codehaus.modello.ModelloCli"
|
||||||
"false" "true"))
|
file mode "src/main/java" version
|
||||||
(let ((file "src/main/mdo/toolchains.mdo"))
|
"false" "true"))
|
||||||
(modello-single-mode file "1.1.0" "java")
|
(let ((file "src/main/mdo/toolchains.mdo"))
|
||||||
(modello-single-mode file "1.1.0" "xpp3-reader")
|
(modello-single-mode file "1.1.0" "java")
|
||||||
(modello-single-mode file "1.1.0" "xpp3-writer"))
|
(modello-single-mode file "1.1.0" "xpp3-reader")
|
||||||
#t))
|
(modello-single-mode file "1.1.0" "xpp3-writer"))
|
||||||
(add-before 'install 'fix-pom
|
#t))
|
||||||
(lambda _
|
(add-before 'install 'fix-pom
|
||||||
(substitute* "pom.xml"
|
(lambda _
|
||||||
(("<classifier>no_aop</classifier>") ""))
|
(substitute* "pom.xml"
|
||||||
#t))
|
(("<classifier>no_aop</classifier>") ""))
|
||||||
(replace 'install
|
#t))
|
||||||
(install-from-pom "pom.xml")))))
|
(replace 'install
|
||||||
(propagated-inputs
|
(install-from-pom "pom.xml")))))
|
||||||
`(("maven-artifact" ,maven-artifact)
|
(propagated-inputs
|
||||||
("maven-resolver-provider" ,maven-resolver-provider)
|
`(("maven-artifact" ,maven-artifact)
|
||||||
("maven-builder-support" ,maven-builder-support)
|
("maven-resolver-provider" ,maven-resolver-provider)
|
||||||
("maven-model" ,maven-model)
|
("maven-builder-support" ,maven-builder-support)
|
||||||
("maven-model-builder" ,maven-model-builder)
|
("maven-model" ,maven-model)
|
||||||
("maven-settings" ,maven-settings)
|
("maven-model-builder" ,maven-model-builder)
|
||||||
("maven-settings-builder" ,maven-settings-builder)
|
("maven-settings" ,maven-settings)
|
||||||
("maven-plugin-api" ,maven-plugin-api)
|
("maven-settings-builder" ,maven-settings-builder)
|
||||||
("maven-repository-metadata" ,maven-repository-metadata)
|
("maven-plugin-api" ,maven-plugin-api)
|
||||||
("maven-shared-utils" ,maven-shared-utils)
|
("maven-repository-metadata" ,maven-repository-metadata)
|
||||||
("java-plexus-component-annotations" ,java-plexus-component-annotations)
|
("maven-shared-utils" ,maven-shared-utils)
|
||||||
("java-plexus-utils" ,java-plexus-utils)
|
("java-plexus-component-annotations" ,java-plexus-component-annotations)
|
||||||
("java-commons-lang3" ,java-commons-lang3)
|
("java-plexus-utils" ,java-plexus-utils)
|
||||||
("java-guava" ,java-guava)
|
("java-commons-lang3" ,java-commons-lang3)
|
||||||
("java-guice" ,java-guice)
|
("java-guava" ,java-guava)
|
||||||
("maven-resolver-api" ,maven-resolver-api)
|
("java-guice" ,java-guice)
|
||||||
("maven-resolver-spi" ,maven-resolver-spi)
|
("maven-resolver-api" ,maven-resolver-api)
|
||||||
("maven-resolver-util" ,maven-resolver-util)
|
("maven-resolver-spi" ,maven-resolver-spi)
|
||||||
("maven-resolver-impl" ,maven-resolver-impl)
|
("maven-resolver-util" ,maven-resolver-util)
|
||||||
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
|
("maven-resolver-impl" ,maven-resolver-impl)
|
||||||
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
|
("java-eclipse-sisu-inject" ,java-eclipse-sisu-inject)
|
||||||
("java-javax-inject" ,java-javax-inject)
|
("java-eclipse-sisu-plexus" ,java-eclipse-sisu-plexus)
|
||||||
("java-plexus-classworld" ,java-plexus-classworlds)))
|
("java-javax-inject" ,java-javax-inject)
|
||||||
(native-inputs
|
("java-plexus-classworld" ,java-plexus-classworlds)))
|
||||||
`(("java-modello-core" ,java-modello-core)
|
(native-inputs
|
||||||
("java-cglib" ,java-cglib)
|
`(("java-modello-core" ,java-modello-core)
|
||||||
("java-asm" ,java-asm)
|
("java-cglib" ,java-cglib)
|
||||||
("java-plexus-classworlds" ,java-plexus-classworlds)
|
("java-asm" ,java-asm)
|
||||||
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
|
("java-plexus-classworlds" ,java-plexus-classworlds)
|
||||||
("java-sisu-build-api" ,java-sisu-build-api)
|
("java-geronimo-xbean-reflect" ,java-geronimo-xbean-reflect)
|
||||||
("java-modello-plugins-java" ,java-modello-plugins-java)
|
("java-sisu-build-api" ,java-sisu-build-api)
|
||||||
("java-modello-plugins-xml" ,java-modello-plugins-xml)
|
("java-modello-plugins-java" ,java-modello-plugins-java)
|
||||||
("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
|
("java-modello-plugins-xml" ,java-modello-plugins-xml)
|
||||||
;; tests
|
("java-modello-plugins-xpp3" ,java-modello-plugins-xpp3)
|
||||||
("java-junit" ,java-junit)
|
;; tests
|
||||||
("java-mockito-1" ,java-mockito-1)
|
("java-junit" ,java-junit)
|
||||||
("java-commons-jxpath" ,java-commons-jxpath)))
|
("java-mockito-1" ,java-mockito-1)
|
||||||
(description "Apache Maven is a software project management and comprehension
|
("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
|
tool. This package contains the maven core classes managing the whole build
|
||||||
process.")))
|
process."))))
|
||||||
|
|
||||||
(define-public maven-core
|
(define-public maven-core
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue