Re: Java packages and autopkgtest
- To: Thorsten Glaser <t.glaser@tarent.de>, Roger Shimizu <rosh@debian.org>
- Cc: debian-java@lists.debian.org
- Subject: Re: Java packages and autopkgtest
- From: Andrius Merkys <merkys@debian.org>
- Date: Mon, 7 Dec 2020 19:54:51 +0200
- Message-id: <[π] cd372405-1df1-6da6-2291-42307b90137c@debian.org>
- In-reply-to: <[π] efe6a947-466-4619-e84-8951b77ab020@tarent.de>
- References: <[π] CAEQ9gEkaC6tdJJR3KHSt0W8==LTU_tuqw+aft_tWAggTb+DpSg@mail.gmail.com> <[π] deae92fd-f3f-7e21-1c1e-856ba2e99b3@tarent.de> <[π] CAEQ9gEnqyxjWwex3aPdnreexmFrv4QzCLYw4Kd6FELKLk88kRw@mail.gmail.com> <[π] d2c0823a-a41-805e-5e74-aab87835919c@tarent.de> <[π] CAEQ9gEkzwxcdUHf6okDqsSh6sXun9uhKWd3emv7KBkNqJz7dTg@mail.gmail.com> <[π] 6f6889ea-2de5-6523-b725-a5f1caa67128@tarent.de> <[π] CAEQ9gE=eBu=ZLHbaBizC0ZGQ928C7MGez8o4Dp0DEHJwMfEHqA@mail.gmail.com> <[π] efe6a947-466-4619-e84-8951b77ab020@tarent.de>
Hello, On 2020-12-07 18:52, Thorsten Glaser wrote: > On Tue, 8 Dec 2020, Roger Shimizu wrote: > >> do you have any suggestion on such case, the autopkgtest for java or >> just maven library pkg? > > Sorry but really none. Those packages Iβve seen so far only worked > because they disabled the tests anyway (mostly because the tests > would have required tons more dependencies). > > Youβll probably have to get maven to prepare the test resources and > compile the tests, but to not compile the rest, and to add the inβ > stalled library instead to the classpath. But this probably involves > some advanced hackery or writing a Maven extensionβ¦ Some time ago I embarked on the primitive hackery of Maven in order to develop a generic tool to support autopkgtests for Maven [1]. I managed to hack together a proof-of-concept implementation [2], which actually worked with some of Maven projects I tried. My idea was to disable the build of "all", remove the sources, patch the pom.xml to use system-provided JARs and run 'mvn' as debhelper would do. However, the more Maven projects I tested, the more complicated the autopkgtest runner grew, to the point I abandoned it. However, looking back it seems worth revisiting, and I would be very happy if someone would pick it up and turn it into something usable in Debian. At least for very simple Maven packages. Please see [1] for very valuable comments from Emmanuel Bourg. [1] https://salsa.debian.org/java-team/maven-debian-helper/-/merge_requests/2 [2] https://salsa.debian.org/merkys/maven-debian-helper/-/blob/autopkgtest-pkg-maven/share/maven-debian-helper/autopkgtest-runner Hope this helps, Andrius
Reply to:
- References:
- Re: Java packages and autopkgtest
- From: Roger Shimizu <rosh@debian.org>
- Re: Java packages and autopkgtest
- From: Thorsten Glaser <t.glaser@tarent.de>
- Re: Java packages and autopkgtest
- From: Roger Shimizu <rosh@debian.org>
- Re: Java packages and autopkgtest
- From: Thorsten Glaser <t.glaser@tarent.de>
- Re: Java packages and autopkgtest
- From: Roger Shimizu <rosh@debian.org>
- Re: Java packages and autopkgtest
- From: Thorsten Glaser <t.glaser@tarent.de>
- Re: Java packages and autopkgtest
- From: Roger Shimizu <rosh@debian.org>
- Re: Java packages and autopkgtest
- From: Thorsten Glaser <t.glaser@tarent.de>
- Re: Java packages and autopkgtest
- Prev by Date: Re: Ask for help on new pkg xperia-flashtool on classpath
- Next by Date: Re: List of consultants focusing on Debian packaging for Java?
- Previous by thread: Re: Java packages and autopkgtest
- Next by thread: Re: Java packages and autopkgtest
- Index(es):