Skip to content

Commit

Permalink
HSEARCH-798 Address eclipse compiler problem
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Nov 18, 2024
1 parent 6249c01 commit 0171b4f
Showing 1 changed file with 47 additions and 9 deletions.
56 changes: 47 additions & 9 deletions build/config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
SPDX-License-Identifier: Apache-2.0
Copyright Red Hat Inc. and Hibernate Authors
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.hibernate.search</groupId>
Expand All @@ -28,7 +29,8 @@
<format.skip>true</format.skip>
<enforcer.dependencyconvergence.skip>true</enforcer.dependencyconvergence.skip>

<tmpdir.dependencies-javadoc-packagelists>${project.build.directory}/dependencies-javadoc-packagelists</tmpdir.dependencies-javadoc-packagelists>
<tmpdir.dependencies-javadoc-packagelists>${project.build.directory}/dependencies-javadoc-packagelists
</tmpdir.dependencies-javadoc-packagelists>
<tmpdir.dependencies-to-parse>${project.build.directory}/dependencies-to-parse</tmpdir.dependencies-to-parse>
</properties>

Expand Down Expand Up @@ -133,39 +135,45 @@
<classifier>javadoc</classifier>
<type>jar</type>
<version>${version.org.hibernate.orm}</version>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/hibernate-core</outputDirectory>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/hibernate-core
</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<classifier>javadoc</classifier>
<type>jar</type>
<version>${version.org.apache.lucene}</version>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/lucene-core</outputDirectory>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/lucene-core
</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analysis-common</artifactId>
<classifier>javadoc</classifier>
<type>jar</type>
<version>${version.org.apache.lucene}</version>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/lucene-analyzers-common</outputDirectory>
<outputDirectory>
${tmpdir.dependencies-javadoc-packagelists}/lucene-analyzers-common
</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-queryparser</artifactId>
<classifier>javadoc</classifier>
<type>jar</type>
<version>${version.org.apache.lucene}</version>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/lucene-queryparser</outputDirectory>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/lucene-queryparser
</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>jakarta.batch</groupId>
<artifactId>jakarta.batch-api</artifactId>
<classifier>javadoc</classifier>
<type>jar</type>
<version>${version.jakarta.batch}</version>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/batch-api</outputDirectory>
<outputDirectory>${tmpdir.dependencies-javadoc-packagelists}/batch-api
</outputDirectory>
</artifactItem>
</artifactItems>
<includes>package-list,element-list</includes>
Expand Down Expand Up @@ -204,7 +212,8 @@
<goal>java</goal>
</goals>
<configuration>
<mainClass>org.hibernate.search.build.report.forbiddenapis.AnnotationReportGenerator</mainClass>
<mainClass>org.hibernate.search.build.report.forbiddenapis.AnnotationReportGenerator
</mainClass>
<arguments>
<!-- The location of classes to process: -->
<argument>${tmpdir.dependencies-to-parse}/hibernate-core</argument>
Expand Down Expand Up @@ -260,7 +269,8 @@
<goal>java</goal>
</goals>
<configuration>
<mainClass>org.hibernate.search.build.report.forbiddenapis.InternalReportGenerator</mainClass>
<mainClass>org.hibernate.search.build.report.forbiddenapis.InternalReportGenerator
</mainClass>
<arguments>
<!-- The location of classes to process: -->
<argument>${tmpdir.dependencies-to-parse}/hibernate-core</argument>
Expand Down Expand Up @@ -308,4 +318,32 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!--
Eclipse compiler attempts to apply the annotation processor from this module to itself ?!
> ReportGeneratorRules.java: Internal compiler error: java.util.ServiceConfigurationError: javax.annotation.processing.Processor:
> Provider org.hibernate.search.build.report.loggers.LoggerCategoriesProcessor not found at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
-->
<id>compiler-eclipse</id>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<proc>none</proc>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>

0 comments on commit 0171b4f

Please sign in to comment.