Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11978

Re: Java packages and autopkgtest

From Andrius Merkys <merkys@debian.org>
Newsgroups linux.debian.maint.java
Subject Re: Java packages and autopkgtest
Date 2020-12-07 19:00 +0100
Message-ID <BjsXM-2Ko-21@gated-at.bofh.it> (permalink)
References (3 earlier) <BiKN3-7Rc-5@gated-at.bofh.it> <BiLg5-8gl-3@gated-at.bofh.it> <BiLzr-8mz-7@gated-at.bofh.it> <BjrIl-20C-5@gated-at.bofh.it> <Bjs1I-27P-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Java packages and autopkgtest Roger Shimizu <rosh@debian.org> - 2020-12-05 18:50 +0100
  Re: Java packages and autopkgtest Thorsten Glaser <t.glaser@tarent.de> - 2020-12-05 19:00 +0100
    Re: Java packages and autopkgtest Thorsten Glaser <t.glaser@tarent.de> - 2020-12-05 19:30 +0100
    Re: Java packages and autopkgtest Pirate Praveen <praveen@onenetbeyond.org> - 2020-12-05 19:30 +0100
    Re: Java packages and autopkgtest Thorsten Glaser <t.glaser@tarent.de> - 2020-12-05 19:50 +0100
      Re: Java packages and autopkgtest Roger Shimizu <rosh@debian.org> - 2020-12-05 20:20 +0100
        Re: Java packages and autopkgtest Thorsten Glaser <t.glaser@tarent.de> - 2020-12-05 20:40 +0100
          Re: Java packages and autopkgtest Roger Shimizu <rosh@debian.org> - 2020-12-07 17:40 +0100
            Re: Java packages and autopkgtest Thorsten Glaser <t.glaser@tarent.de> - 2020-12-07 18:00 +0100
              Re: Java packages and autopkgtest Andrius Merkys <merkys@debian.org> - 2020-12-07 19:00 +0100
      Re: Java packages and autopkgtest Paul Wise <pabs@debian.org> - 2020-12-06 04:20 +0100
    Re: Java packages and autopkgtest Roger Shimizu <rosh@debian.org> - 2020-12-05 20:00 +0100

csiph-web