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:


<plugin>
                    <groupId>org.bsc.maven</groupId>
                    <artifactId>maven-processor-plugin</artifactId>
                    <version>2.0.2</version>
                    <configuration>

<defaultOutputDirectory>${project.build.directory}/generated-sources/logging</defaultOutputDirectory>
                        <processors>

<processor>org.jboss.logging.processor.apt.LoggingToolsProcessor</processor>
                        </processors>
                        <compilerArguments>-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</compilerArguments>
                    </configuration>
                    <executions>
                        <execution>
                            <id>process</id>
                            <phase>generate-sources</phase>
                            <goals>
                                <goal>process</goal>
                            </goals>
                        </execution>
                    </executions>
                    <dependencies>
                        <dependency>
                            <groupId>org.jboss.logging</groupId>
                            <artifactId>jboss-logging-processor</artifactId>
                            <version>1.0.1.Final</version>
                        </dependency>
                    </dependencies>
                </plugin>


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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to