Hii,
I'm still new to java packaging, about a week ago or so.
here's my question around `%mvn_build -s`: Q1: According to maven scenarios [1], which scenario will be built by `mvn build -s` automatically? Q2: Can I customize how `mvn build -s` works? how?
[1] https://maven.apache.org/guides/introduction/introduction-to-the-pom.html
On Fri, Jul 16, 2021 at 2:33 AM Didik Supriadi didiksupriadi41@gmail.com wrote:
Hii,
I'm still new to java packaging, about a week ago or so.
here's my question around `%mvn_build -s`: Q1: According to maven scenarios [1], which scenario will be built by `mvn build -s` automatically?
You can use `%mvn_build -s` in any of these scenarios. `-s` does not affect how the project is built, but how it is packaged as RPMs.
Q2: Can I customize how `mvn build -s` works? how?
By default `%mvn_build` puts all build artifacts into a single RPM. With `-s` it puts each artifact in a separate RPM package. If you want a different split of artifacts between subpackages then you can use `%mvn_artifact` to fully control which artifact is installed into which package.
-- Mikolaj Izdebski
[1] https://maven.apache.org/guides/introduction/introduction-to-the-pom.html
-- Didik Supriadi _______________________________________________ java-devel mailing list -- java-devel@lists.fedoraproject.org To unsubscribe send an email to java-devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
On Fri, 2021-07-16 at 12:30 +0200, Mikolaj Izdebski wrote:
On Fri, Jul 16, 2021 at 2:33 AM Didik Supriadi didiksupriadi41@gmail.com wrote:
Hii,
I'm still new to java packaging, about a week ago or so.
here's my question around `%mvn_build -s`: Q1: According to maven scenarios [1], which scenario will be built by `mvn build -s` automatically?
You can use `%mvn_build -s` in any of these scenarios. `-s` does not affect how the project is built, but how it is packaged as RPMs.
Q2: Can I customize how `mvn build -s` works? how?
By default `%mvn_build` puts all build artifacts into a single RPM. With `-s` it puts each artifact in a separate RPM package. If you want a different split of artifacts between subpackages then you can use `%mvn_artifact` to fully control which artifact is installed into which package.
https://docs.fedoraproject.org/en-US/java-packaging-howto/manpage_mvn_build/
-- Mikolaj Izdebski
[1] https://maven.apache.org/guides/introduction/introduction-to-the-pom.html
-- Didik Supriadi _______________________________________________ java-devel mailing list -- java-devel@lists.fedoraproject.org To unsubscribe send an email to java-devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
java-devel mailing list -- java-devel@lists.fedoraproject.org To unsubscribe send an email to java-devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject... Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
java-devel@lists.fedoraproject.org