Re: Re: jar missing in /usr/share/maven-repo/

"Andreas B. Mundt" <[email protected]>
Newsgroups gmane.linux.debian.devel.java
Message-ID <20230705181735.rlrfljiqyp7goazt@flashgordon>
Hi Pierre,

many thanks for your quick reply!

> […]
>
> You could try to change the contents of d/libhtmlparser-java.poms to
> 
> debian/pom.xml --no-parent --java-lib --artifact=src/lib/libhtmlparser.jar
> 
> and also to remove d/libhtmlparser-java.jlibs.
> 
> The latter will prevent the installation of the jar in
> /usr/share/java while the former will install it in the relevant
> subdir of /usr/share/maven-repo and put a symlink in /usr/share/java
> (or the contrary, not sure). 
> 
> Let us know if this works!

Great, it works now!  To get the version right, I added:

  debian/pom.xml --no-parent --java-lib --artifact=src/lib/libhtmlparser.jar --usj-name=libhtmlparser --usj-version=1.6.20060610

Diff of the files' list in the package looks good:

--- /tmp/libhtmlparser-java-orig	2023-07-05 19:54:55.340310037 +0200
+++ /tmp/libhtmlparser-java-repo	2023-07-05 19:57:20.964737387 +0200
@@ -3,4 +3,8 @@
 /usr/share/doc/libhtmlparser-java/changelog.gz
 /usr/share/doc/libhtmlparser-java/copyright
 /usr/share/java/libhtmlparser-1.6.20060610.jar
+/usr/share/maven-repo/org/htmlparser/htmlparser/1.6/htmlparser-1.6.pom
+/usr/share/maven-repo/org/htmlparser/htmlparser/debian/htmlparser-debian.pom
 /usr/share/java/libhtmlparser.jar
+/usr/share/maven-repo/org/htmlparser/htmlparser/1.6/htmlparser-1.6.jar
+/usr/share/maven-repo/org/htmlparser/htmlparser/debian/htmlparser-debian.jar

In addition I packaged (draft) libsemantic-version-java with mh_make
which worked fine too.

I installed the new packages and all other dependencies and was able
to run mh_make on the filius sources.  Building the package worked
after that.  However, when I try to start it, I get:

  $ java -jar /usr/share/java/filius.jar
  Error: Unable to initialize main class filius.Main
  Caused by: java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException

So far I have no idea what's wrong, I'll have to investigate further.
Again, any help/hint is appreciated!

Best regards,

  Andi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.