GNU bug report logs -
#55929
[PATCH] gnu: maven: Add maven-doxia-sink-api
Previous Next
Full log
Message #32 received at 55929 <at> debbugs.gnu.org (full text, mbox):
Thanks for the new patch :)
Le Sat, 18 Jun 2022 19:57:15 +0300,
"Artyom V. Poptsov" <poptsov.artyom <at> gmail.com> a écrit :
> + (native-inputs
> + (list java-javax-inject))
> + (propagated-inputs
> + (list maven-parent-pom-34))
Sorry if my previous messages were confusing you. I meant to have a new
package maven-doxia-parent (or similar name) that contains only the
parent pom file. You're propagating the grand-parent. I think this
would be more correct:
(propagated-inputs (list maven-doxia-parent))
and maven-doxia-parent would be something like:
(define maven-doxia-parent
(package
(inherit maven-doxia-sink-api)
(name "maven-doxia-parent")
(arguments
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(delete 'configure)
(delete 'build)
(replace 'install (install-pom-file "pom.xml")))))
(synopsis "...")
(description "...")))
This is untested, of course :)
Since we "define" and not "define-public" (we don't want it to be
accessible from other modules or the command-line), you can put both
packages in the same patch.
> + (arguments
> + `(#:jar-name "doxia-sink-api.jar"
> + #:source-dir "doxia-sink-api/src/main/java"
> + #:tests? #f ; no tests
> + #:phases (modify-phases %standard-phases
> + (replace 'install
> + (install-from-pom "doxia-sink-api/pom.xml")))))
That's correct :)
This bug report was last modified 2 years and 342 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.