Bug#874579: hibernate-validator: incomplete packaging, missing classes make r-deps unusable

2017-09-19 Thread Markus Koschany
Control: tags -1 pending

tl;dr

I'm going to upload a new revision of libhibernate-validator-java. I
have spent several hours investigating the issue and found out that the
annotation processor of jboss-logging-tools 2.1.0 behaves somehow
differently and the translationFilesPath option is currently not
recognized. (I have checked that the option exists in 2.1.0) I have
built the source files with version 1.0.1.Final of jboss-logging-tools
on my local machine, implemented some missing methods and patched
libhibernate-validator-java. Finally PDFsam works.


I have read the documentation at [1] and [2] and searched the internet
for further information about the problem but did not manage to find a
working solution with jboss-logging-tools 2.1.0. The relevant part in
pom.xml is:



org.bsc.maven
maven-processor-plugin
2.0.2


${project.build.directory}/generated-sources/logging


org.jboss.logging.processor.apt.LoggingToolsProcessor

-AloggingVersion=3.0
-AtranslationFilesPath=${project.basedir}/src/main/resources -source 1.6
-target 1.6 -sourcepath
${project.build.directory}/generated-sources/jaxb -encoding
UTF-8



process
generate-sources

process





org.jboss.logging
jboss-logging-processor
1.0.1.Final





With version 1.0.1.Final of jboss-logging-tools the translationFilesPath
option is recognized but for unknown reasons this doesn't work with
2.1.0 anymore. I have also added jboss-logging-annotations and
jboss-logging-processor as build-dependencies but also to no avail. The
processor org.jboss.logging.processor.apt.LoggingToolsProcessor seems
correct to me.

I have explored some other routes but eventually decided that I want to
do something else for a change again.

[1] https://jboss-logging.github.io/jboss-logging-tools/#example-use-cases
[2] https://bsorrentino.github.io/maven-annotation-plugin/usage.html



signature.asc
Description: OpenPGP digital signature
__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Bug#874579: hibernate-validator: incomplete packaging, missing classes make r-deps unusable

2017-09-07 Thread Markus Koschany
Package: libhibernate-validator-java
Version: 4.3.3-1
Severity: serious

Hi,

as discussed in #874372 Michael Weghorn discovered that
the hibernate-validator.jar in libhibernate-validator-java is missing
some important files that prevent PDFsam to function properly.

The logging directory should contain the following files.

$ ls -l /tmp/extracted/manual/org/hibernate/validator/internal/util/logging/
total 144
-rw-r--r-- 1 user user 21057 Sep  6 19:11 Log.class
-rw-r--r-- 1 user user   944 Sep  6 19:11 LoggerFactory.class
-rw-r--r-- 1 user user 22029 Sep  6 19:11 Log.i18n.properties
-rw-r--r-- 1 user user 75030 Sep  6 19:11 Log_$logger.class
-rw-r--r-- 1 user user  4964 Sep  6 19:11 Messages_$bundle.class
-rw-r--r-- 1 user user  1894 Sep  6 19:11 Messages.class
-rw-r--r-- 1 user user  2142 Sep  6 19:11 Messages.i18n.properties

Apparently the missing files are autogenerated at build-time. This
requires libjboss-logging-tools-java to be present which seems to be
the case. At the moment I can't find out what exactly prevents the
processing but it might be related to the maven-processor-plugin or
the disabled annotation module of hibernate-validator. Any way PDFsam
is not usuable due to the absence of these files.

Markus

__
This is the maintainer address of Debian's Java team
. 
Please use
debian-j...@lists.debian.org for discussions and questions.