You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2022/10/14 11:56:50 UTC

[uima-uimafit] 01/01: Issue #195: Detect descriptors via SPI

This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch bugfix/195-Detect-descriptors-via-SPI
in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git

commit ac951d4ec61f84ca1ae23149dce7523583613beb
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Fri Oct 14 13:56:42 2022 +0200

    Issue #195: Detect descriptors via SPI
    
    - Complete SPI declarations
    - Add SPI declarations in assertj module where the CAS validators are used
---
 uimafit-assertj/pom.xml | 78 +++++++++++++++++++++++++++++++------------------
 uimafit-core/pom.xml    |  5 +++-
 2 files changed, 53 insertions(+), 30 deletions(-)

diff --git a/uimafit-assertj/pom.xml b/uimafit-assertj/pom.xml
index 6274b3b..203fed3 100644
--- a/uimafit-assertj/pom.xml
+++ b/uimafit-assertj/pom.xml
@@ -17,33 +17,53 @@
   specific language governing permissions and limitations
   under the License.
 -->
-<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.apache.uima</groupId>
-    <artifactId>uimafit-parent</artifactId>
-    <version>3.4.0-SNAPSHOT</version>
-    <relativePath>../uimafit-parent</relativePath>
-  </parent>
-  
-  <artifactId>uimafit-assertj</artifactId>
-  <packaging>bundle</packaging>
-  
-  <name>Apache UIMA uimaFIT - AssertJ support</name>
-  
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.uima</groupId>
-      <artifactId>uimafit-core</artifactId>
-      <version>3.4.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.uima</groupId>
-      <artifactId>uimaj-core</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>org.assertj</groupId>
-      <artifactId>assertj-core</artifactId>
-    </dependency>
-  </dependencies>
+<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.apache.uima</groupId>
+		<artifactId>uimafit-parent</artifactId>
+		<version>3.4.0-SNAPSHOT</version>
+		<relativePath>../uimafit-parent</relativePath>
+	</parent>
+
+	<artifactId>uimafit-assertj</artifactId>
+	<packaging>bundle</packaging>
+
+	<name>Apache UIMA uimaFIT - AssertJ support</name>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.uima</groupId>
+			<artifactId>uimafit-core</artifactId>
+			<version>3.4.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.uima</groupId>
+			<artifactId>uimaj-core</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.assertj</groupId>
+			<artifactId>assertj-core</artifactId>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-bundle-plugin</artifactId>
+				<configuration>
+					<instructions>
+						<Bundle-RequiredExecutionEnvironment>JavaSE-1.8</Bundle-RequiredExecutionEnvironment>
+						<Require-Capability>
+							osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)";resolution:=optional,
+							osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.uima.fit.validation.ValidationCheck)";cardinality:=multiple;resolution:=optional
+						</Require-Capability>
+					</instructions>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
 </project>
\ No newline at end of file
diff --git a/uimafit-core/pom.xml b/uimafit-core/pom.xml
index 6fef6cf..58d36f5 100644
--- a/uimafit-core/pom.xml
+++ b/uimafit-core/pom.xml
@@ -113,7 +113,10 @@
             </Export-Package>
             <Require-Capability>
             	osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)";resolution:=optional,
-            	osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.uima.spi.TypeSystemDescriptionProvider)";cardinality:=multiple;resolution:=optional
+            	osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.uima.spi.TypeSystemDescriptionProvider)";cardinality:=multiple;resolution:=optional,
+            	osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.uima.spi.TypePrioritiesProvider)";cardinality:=multiple;resolution:=optional,
+            	osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.uima.spi.FsIndexCollectionProvider)";cardinality:=multiple;resolution:=optional,
+            	osgi.serviceloader;filter:="(osgi.serviceloader=org.apache.uima.fit.validation.ValidationCheck)";cardinality:=multiple;resolution:=optional
             </Require-Capability>
           </instructions>
         </configuration>