[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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


Reply to: