Skip to content

Commit

Permalink
HSEARCH-3000 Pick Jigsaw Automatic Module names for all published mod…
Browse files Browse the repository at this point in the history
…ules
  • Loading branch information
Sanne committed May 3, 2018
1 parent 9898bd9 commit 6d11e37
Show file tree
Hide file tree
Showing 10 changed files with 68 additions and 10 deletions.
3 changes: 3 additions & 0 deletions backends/jgroups/pom.xml
Expand Up @@ -162,6 +162,9 @@
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.clustering.jgroups</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
Expand Down
3 changes: 3 additions & 0 deletions backends/jms/pom.xml
Expand Up @@ -76,6 +76,9 @@
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.clustering.jms</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
Expand Down
10 changes: 6 additions & 4 deletions elasticsearch-aws/pom.xml
Expand Up @@ -42,9 +42,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<!-- Elasticsearch integration currently not supported in OSGi;
This section commented out to not make it appear it might work.
If you need this to work in OSGi, please see and vote for: https://hibernate.atlassian.net/browse/HSEARCH-2524
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -57,12 +54,17 @@
</goals>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.backend.elasticsearch.aws</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<!-- Elasticsearch integration currently not supported in OSGi;
This section commented out to not make it appear it might work.
If you need this to work in OSGi, please see and vote for: https://hibernate.atlassian.net/browse/HSEARCH-2524
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down
10 changes: 6 additions & 4 deletions elasticsearch/pom.xml
Expand Up @@ -121,9 +121,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<!-- Elasticsearch integration currently not supported in OSGi;
This section commented out to not make it appear it might work.
If you need this to work in OSGi, please see and vote for: https://hibernate.atlassian.net/browse/HSEARCH-2524
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -136,12 +133,17 @@
</goals>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.backend.elasticsearch</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<!-- Elasticsearch integration currently not supported in OSGi;
This section commented out to not make it appear it might work.
If you need this to work in OSGi, please see and vote for: https://hibernate.atlassian.net/browse/HSEARCH-2524
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down
3 changes: 3 additions & 0 deletions engine/pom.xml
Expand Up @@ -162,6 +162,9 @@
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.engine</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
Expand Down
4 changes: 2 additions & 2 deletions integrationtest/jdk9-modules/src/main/java/module-info.java
@@ -1,7 +1,7 @@
module hibernate.search.integrationtest.jdk9.modules.client {
exports org.hibernate.search.test.integration.jdk9_modules.client.service;
requires hibernate.search.engine;
requires hibernate.search.orm;
requires org.hibernate.search.engine;
requires org.hibernate.search.orm;
requires java.persistence;
requires org.hibernate.orm.core;
requires lucene.analyzers.common;
Expand Down
15 changes: 15 additions & 0 deletions jsr352/core/pom.xml
Expand Up @@ -80,8 +80,23 @@
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.jsr352.core</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
<execution>
<goals>
<goal>test-jar</goal>
Expand Down
24 changes: 24 additions & 0 deletions jsr352/jberet/pom.xml
Expand Up @@ -41,4 +41,28 @@
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.jsr352.jberet</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
3 changes: 3 additions & 0 deletions orm/pom.xml
Expand Up @@ -170,6 +170,9 @@
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.orm</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
Expand Down
3 changes: 3 additions & 0 deletions serialization/avro/pom.xml
Expand Up @@ -107,6 +107,9 @@
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
<manifestEntries>
<Automatic-Module-Name>org.hibernate.search.serialization.avro</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</execution>
Expand Down

0 comments on commit 6d11e37

Please sign in to comment.