package init

This commit is contained in:
maminjie 2020-08-25 14:13:33 +08:00
parent ffabfd14f4
commit 1e48dd8b1d
4 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,20 @@
diff -Nru uimaj-2.8.1/uimaj-json/src/main/java/org/apache/uima/json/impl/JsonContentHandlerJacksonWrapper.java uimaj-2.8.1.jackson/uimaj-json/src/main/java/org/apache/uima/json/impl/JsonContentHandlerJacksonWrapper.java
--- uimaj-2.8.1/uimaj-json/src/main/java/org/apache/uima/json/impl/JsonContentHandlerJacksonWrapper.java 2015-08-04 17:06:42.000000000 +0200
+++ uimaj-2.8.1.jackson/uimaj-json/src/main/java/org/apache/uima/json/impl/JsonContentHandlerJacksonWrapper.java 2016-08-25 10:57:52.780477994 +0200
@@ -37,6 +37,7 @@
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.PrettyPrinter;
+import com.fasterxml.jackson.core.util.DefaultIndenter;
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter.FixedSpaceIndenter;
@@ -351,7 +352,7 @@
public void withNl() {
if (isFormattedOutput) {
- uimaPrettyPrinter.indentObjectsWith(DefaultPrettyPrinter.Lf2SpacesIndenter.instance);
+ uimaPrettyPrinter.indentObjectsWith(DefaultIndenter.SYSTEM_LINEFEED_INSTANCE);
}
}

Binary file not shown.

105
uimaj.spec Normal file
View File

@ -0,0 +1,105 @@
Name: uimaj
Version: 2.8.1
Release: 1
Summary: Apache UIMA is an implementation of the OASIS-UIMA specifications
License: ASL 2.0
URL: http://uima.apache.org/
Source0: http://archive.apache.org/dist/uima/%{name}-%{version}/%{name}-%{version}-source-release.zip
Patch0: uimaj-2.8.1-jackson2.7.patch
BuildRequires: maven-local mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core) mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit) mvn(log4j:log4j:1.2.17) mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api) mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.ant:ant-apache-regexp)
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.uima:parent-pom:pom:)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api) mvn(xmlunit:xmlunit)
BuildArch: noarch
%description
Apache UIMA is an implementation of the OASIS-UIMA specifications.
OASIS UIMA Committee: <http://www.oasis-open.org/committees/uima/>.
Unstructured Information Management applications are software systems
that analyze large volumes of unstructured information in order to
discover knowledge that is relevant to an end user.
An example UIM application might ingest plain text and identify
entities, such as persons, places, organizations; or relations,
such as works-for or located-at.
%package -n jcasgen-maven-plugin
Summary: Apache UIMA Maven JCasGen Plugin
%description -n jcasgen-maven-plugin
A Maven Plugin for using JCasGen to generate Java classes from
XML type system descriptions.
%package -n uima-pear-maven-plugin
Summary: Apache UIMA Maven Pear Plugin
%description -n uima-pear-maven-plugin
This is a maven plugin that produces a pear artifact.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
find . -name "*.jar" -delete
find . -name "*.bat" -delete
find . -name "*.class" -delete
find . -name "*.cmd" -delete
%patch0 -p1
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_disable_module ../aggregate-%{name}-eclipse-plugins aggregate-%{name}
%pom_remove_dep org.apache.uima:%{name}-ep-cas-editor
%pom_remove_dep org.apache.uima:%{name}-ep-configurator
%pom_remove_dep org.apache.uima:%{name}-ep-debug
%pom_remove_dep org.apache.uima:%{name}-ep-jcasgen
%pom_remove_dep org.apache.uima:%{name}-ep-pear-packager
%pom_remove_dep org.apache.uima:%{name}-ep-runtime
%pom_remove_dep org.apache.uima:%{name}-ep-cas-editor-ide
%pom_remove_dep org.apache.uima:%{name}-ep-launcher
%pom_remove_dep org.apache.uima:%{name}-examples
%pom_disable_module ../%{name}-examples aggregate-%{name}
%pom_disable_module ../%{name}-adapter-soap aggregate-%{name}
%pom_remove_dep org.apache.uima:%{name}-adapter-soap
%pom_disable_module ../aggregate-%{name}-docbooks aggregate-%{name}
rm -r %{name}-core/src/test/java/org/apache/uima/internal/util/UIMAClassLoaderTest.java \
%{name}-core/src/test/java/org/apache/uima/cas/test/SofaTest.java \
%{name}-core/src/test/java/org/apache/uima/analysis_engine/impl/AnalysisEngine_implTest.java \
%{name}-core/src/test/java/org/apache/uima/util/impl/JSR47Logger_implTest.java \
jcasgen-maven-plugin/src/test/java/org/apache/uima/tools/jcasgen/maven/JCasGenMojoTest.java
rm -r %{name}-tools/src/test/java/org/apache/uima/tools/viewer/CasAnnotationViewerTest.java
%pom_remove_plugin :maven-invoker-plugin jcasgen-maven-plugin
sed -i 's/\r//' NOTICE README
%pom_xpath_set "pom:dependency[pom:artifactId = 'log4j']/pom:version" 1.2.17 %{name}-core
%mvn_package :PearPackagingMavenPlugin uima-pear-maven-plugin
%mvn_package :jcasgen-maven-plugin jcasgen-maven-plugin
%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%doc README RELEASE_NOTES.html
%license LICENSE NOTICE
%files -n jcasgen-maven-plugin -f .mfiles-jcasgen-maven-plugin
%license LICENSE NOTICE
%files -n uima-pear-maven-plugin -f .mfiles-uima-pear-maven-plugin
%license LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog
* Wed Aug 19 2020 maminjie <maminjie1@huawei.com> - 2.8.1-1
- package init

4
uimaj.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: apache/uima-uimaj
tag_prefix: "uimaj-"
seperator: "."