Commit 46941991 authored by jcorvi's avatar jcorvi
Browse files

Merge branch 'gate_oncloud_version' into 'master'

Gate oncloud version

See merge request !5
parents 951e14a6 6639e48c
Pipeline #24877 passed with stage
in 2 minutes and 28 seconds
......@@ -13,7 +13,6 @@ tomcat
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
......
FROM alpine:3.9
FROM alpine:3.14
WORKDIR /usr/local/share/dictionary_annotation
ARG DICT_TAGGER_VERSION=1.0
COPY docker-build.sh /usr/local/bin/docker-build.sh
COPY src src
COPY pom.xml .
COPY gate_application .
RUN mkdir logs
RUN chmod u=rwx,g=rwx,o=r /usr/local/share/dictionary_annotation -R
......
......@@ -13,20 +13,21 @@ if [ $# -ge 1 ] ; then
fi
if [ -f /etc/alpine-release ] ; then
# Installing OpenJDK 8
apk add --update openjdk8-jre
# Installing OpenJDK 11
apk add --update openjdk11-jre
# dict tagger development dependencies
apk add openjdk8 git maven
apk add openjdk11 git maven
else
# Runtime dependencies
apt-get update
apt-get install openjdk-8-jre
apt-get install openjdk-11-jre
# The development dependencies
apt-get install openjdk-8-jdk git maven
apt-get install openjdk-11-jdk git maven
fi
mvn clean install -DskipTests
#rename jar
......@@ -46,10 +47,10 @@ apk add bash
if [ -f /etc/alpine-release ] ; then
# Removing not needed tools
apk del openjdk8 git maven
#apk del openjdk11 git maven
rm -rf /var/cache/apk/*
else
apt-get remove openjdk-8-jdk git maven
apt-get remove openjdk-11-jdk git maven
rm -rf /var/cache/dpkg
fi
<?xml version="1.0" encoding="UTF-8"?>
<gate.util.persistence.GateApplication>
<urlList class="gate.util.persistence.CollectionPersistence">
<localList>
<gate.creole.Plugin-Maven>
<group>uk.ac.gate.plugins</group>
<artifact>annie</artifact>
<version>8.6</version>
</gate.creole.Plugin-Maven>
<gate.creole.Plugin-Maven>
<group>uk.ac.gate.plugins</group>
<artifact>tools</artifact>
<version>8.6</version>
<downloadListeners />
</gate.creole.Plugin-Maven>
</localList>
<collectionType>java.util.Collections$UnmodifiableSet</collectionType>
</urlList>
<application class="gate.util.persistence.ControllerPersistence">
<prList class="gate.util.persistence.CollectionPersistence">
<localList>
<gate.util.persistence.ConditionalSerialAnalyserControllerPersistence>
<strategiesList class="gate.util.persistence.CollectionPersistence">
<localList>
<gate.util.persistence.AnalyserRunningStrategyPersistence>
<runMode>1</runMode>
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.annotdelete.AnnotationDeletePR</resourceType>
<resourceName>Document Reset PR</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</pr>
</gate.util.persistence.AnalyserRunningStrategyPersistence>
<gate.util.persistence.AnalyserRunningStrategyPersistence>
<runMode>1</runMode>
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.tokeniser.DefaultTokeniser</resourceType>
<resourceName>ANNIE English Tokeniser</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</pr>
</gate.util.persistence.AnalyserRunningStrategyPersistence>
<gate.util.persistence.AnalyserRunningStrategyPersistence>
<runMode>1</runMode>
<featureName />
<featureValue />
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.gazetteer.DefaultGazetteer</resourceType>
<resourceName>ANNIE Gazetteer</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</pr>
</gate.util.persistence.AnalyserRunningStrategyPersistence>
<gate.util.persistence.AnalyserRunningStrategyPersistence>
<runMode>1</runMode>
<featureName />
<featureValue />
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.splitter.SentenceSplitter</resourceType>
<resourceName>ANNIE Sentence Splitter</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</pr>
</gate.util.persistence.AnalyserRunningStrategyPersistence>
<gate.util.persistence.AnalyserRunningStrategyPersistence>
<runMode>1</runMode>
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.POSTagger</resourceType>
<resourceName>ANNIE POS Tagger</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</pr>
</gate.util.persistence.AnalyserRunningStrategyPersistence>
<gate.util.persistence.AnalyserRunningStrategyPersistence>
<runMode>1</runMode>
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.ANNIETransducer</resourceType>
<resourceName>ANNIE NE Transducer</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</pr>
</gate.util.persistence.AnalyserRunningStrategyPersistence>
<gate.util.persistence.AnalyserRunningStrategyPersistence>
<runMode>1</runMode>
<featureName />
<featureValue />
<pr class="gate.util.persistence.LanguageAnalyserPersistence">
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.orthomatcher.OrthoMatcher</resourceType>
<resourceName>ANNIE OrthoMatcher</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</pr>
</gate.util.persistence.AnalyserRunningStrategyPersistence>
</localList>
<collectionType>java.util.ArrayList</collectionType>
</strategiesList>
<prList class="gate.util.persistence.CollectionPersistence">
<localList>
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[2]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[3]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[4]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[5]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[6]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[7]/pr" />
</localList>
<collectionType>java.util.ArrayList</collectionType>
</prList>
<resourceType>gate.creole.ConditionalSerialAnalyserController</resourceType>
<resourceName>ANNIE</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap>
<entry>
<string>gate.app.MetadataURL</string>
<gate.util.persistence.PersistenceManager-URLHolder>
<urlString>jar:file:/home/javi/.m2/repository/uk/ac/gate/plugins/annie/8.6/annie-8.6.jar!/resources/.annie-defaults-metadata/metadata.xml</urlString>
</gate.util.persistence.PersistenceManager-URLHolder>
</entry>
<entry>
<string>gate.gui.icon</string>
<string>annie-application</string>
</entry>
</localMap>
</features>
</gate.util.persistence.ConditionalSerialAnalyserControllerPersistence>
<gate.util.persistence.LanguageAnalyserPersistence reference="../gate.util.persistence.ConditionalSerialAnalyserControllerPersistence/strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[2]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../gate.util.persistence.ConditionalSerialAnalyserControllerPersistence/strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[3]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../gate.util.persistence.ConditionalSerialAnalyserControllerPersistence/strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[6]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../gate.util.persistence.ConditionalSerialAnalyserControllerPersistence/strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[7]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../gate.util.persistence.ConditionalSerialAnalyserControllerPersistence/strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[5]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../gate.util.persistence.ConditionalSerialAnalyserControllerPersistence/strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[4]/pr" />
<gate.util.persistence.LanguageAnalyserPersistence reference="../gate.util.persistence.ConditionalSerialAnalyserControllerPersistence/strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence/pr" />
<gate.util.persistence.LanguageAnalyserPersistence>
<runtimeParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</runtimeParams>
<resourceType>gate.creole.gazetteer.FlexibleGazetteer</resourceType>
<resourceName>Flexible Gazetteer 0000C</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</gate.util.persistence.LanguageAnalyserPersistence>
</localList>
<collectionType>java.util.ArrayList</collectionType>
</prList>
<resourceType>gate.creole.SerialController</resourceType>
<resourceName>Pipeline Batch</resourceName>
<initParams class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</initParams>
<features class="gate.util.persistence.MapPersistence">
<mapType>gate.util.SimpleFeatureMapImpl</mapType>
<localMap />
</features>
</application>
</gate.util.persistence.GateApplication>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>uk.ac.gate</groupId>
<artifactId>gate-compiler-jdt</artifactId>
<packaging>jar</packaging>
<name>Repackaged version of the Eclipse JDT compiler for GATE</name>
<version>4.3.2-P20140317-1600</version>
<description>Repackaged version of the Eclipse JDT compiler for GATE</description>
<url>http://gate.ac.uk</url>
<scm>
<url>http://sourceforge.net/p/gate/code/HEAD/tree/gate/trunk</url>
<connection>scm:svn:http://svn.code.sf.net/p/gate/code/gate/trunk</connection>
</scm>
<developers>
<developer>
<id>gate-team</id>
<name>GATE Team</name>
<email>gate-developers@lists.sourceforge.net</email>
</developer>
</developers>
<licenses>
<license>
<name>Eclipse Public License</name>
<url>http://www.eclipse.org/legal/epl-v10.html</url>
<distribution>repo</distribution>
</license>
</licenses>
</project>
<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">
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<gate-core.version>8.6</gate-core.version>
</properties>
<modelVersion>4.0.0</modelVersion>
<groupId>uk.ac.gate</groupId>
<artifactId>gate-plugin-base</artifactId>
<version>8.6</version>
<packaging>pom</packaging>
<name>GATE Plugin Base</name>
<description>Parent POM for any GATE plugin project, to include the maven plugin that will generate the correct CREOLE metadata.</description>
<url>http://gate.ac.uk/</url>
<organization>
<name>GATE</name>
<url>http://gate.ac.uk</url>
</organization>
<developers>
<developer>
<id>gate-team</id>
<name>GATE Team</name>
<email>gate-developers@lists.sourceforge.net</email>
</developer>
</developers>
<licenses>
<license>
<name>GNU Lesser General Public License (LGPL), Version 3</name>
<url>http://www.gnu.org/licenses/lgpl.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git://github.com/GateNLP/gate-top.git</connection>
<developerConnection>scm:git:git@github.com:GateNLP/gate-top.git</developerConnection>
<url>https://github.com/GateNLP/gate-top</url>
</scm>
<dependencies>
<dependency>
<groupId>uk.ac.gate</groupId>
<artifactId>gate-core</artifactId>
<version>${gate-core.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>uk.ac.gate</groupId>
<artifactId>gate-plugin-test-utils</artifactId>
<version>8.6</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<testResources>
<!-- this adds the maven coordinates into the test resource file creole.properties
which is used to help load this plugin for testing -->
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>creole.properties</include>
</includes>
</testResource>
<!-- copy all the other resources without altering them so we don't accidentally
corrupt datastores or other binary formats -->
<testResource>
<directory>src/test/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>creole.properties</exclude>
</excludes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<compilerArgs>
<arg>-Xlint:all</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>uk.ac.gate</groupId>
<artifactId>gate-maven-plugin</artifactId>
<version>8.6</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>DumpCreoleToXML</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>eu.openminted.share.annotations</groupId>
<artifactId>omtd-share-annotations-maven-plugin</artifactId>
<version>3.0.2.6</version>
<dependencies>
</dependencies>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>generate</goal>
</goals>
<inherited>true</inherited>
</execution>
</executions>
<configuration>
<skip>true</skip>
</configuration>
<inherited>false</inherited>
</plugin>
-->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.1</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>creole</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<classifier>creole</classifier>
<includes>
<include>META-INF/gate/creole.xml</include>
<include>resources</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<xmlOutput>true</xmlOutput>
<effort>Max</effort>
<threshold>Low</threshold>
<excludes>
<!-- exclude auto-generated files -->
<exclude>**/svg/**/*</exclude>
</excludes>
<maxHeap>1024</maxHeap>
<!-- for now ignore issues with default encoding -->
<omitVisitors>DefaultEncodingDetector</omitVisitors>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.1</version>
<configuration>
<excludes>
<!-- this excludes known GUI code from the code coverage results as
we know we aren't testing them so will likely have a 0% coverage -->
<exclude>**/gui/**/*</exclude>
<exclude>**/swing/**/*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
<configuration>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
<systemPropertyVariables>
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<failOnError>false</failOnError>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
</plugin>
</plugins>
</reporting>
<distributionManagement>
<repository>
<id>gate-oss</id>
<name>Sonatype OSS staging</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
<layout>default</layout>