Project template to bootstrap UIMA Ruta annotators and package them as a PEAR package.
- JDK 1.8 or later
- Maven
There is no need to clone this repo to generate a new Ruta annotator project. Just execute the following command:
mvn archetype:generate -DarchetypeGroupId=de.averbis.textanalysis -DarchetypeArtifactId=ruta-pear-archetype -DarchetypeVersion=2.0.0
You need to define a groupId, artifactId and version for your UIMA Ruta annotator project.
- Specify a
groupId
for the project. It must follow Java's package name rules.
Define value for property 'groupId': com.example
- Define an
artifactId
for the project. It should consist of lowercase letters and must not contain special characters or dots.
Define value for property 'artifactId': my-ruta-annotator
- Define a
version
for your Ruta annotator.
Define value for property 'version' 1.0-SNAPSHOT: 1.0
- Define a
package
for your Ruta annotator. It must follow Java's package name rules.
Define value for property 'package': com.example.nlp
- Define a
rutaScriptName
for your Ruta annotator. It should always begin with a capital letter and must not contain any special characters or space characters. If there are multiple words in therutaScriptName
, then each word should start with a capital letter.
Define value for property 'rutaScriptName' Myrutaannotator: MyAnnotator
- Review and confirm the Ruta annotator configuration:
Confirm properties configuration:
groupId: com.example
artifactId: my-ruta-annotator
version: 1.0
package: com.example.nlp
rutaScriptName: MyAnnotator
Y: : y
This will generate a Ruta annotator project structure within the my-ruta-annotator
directory:
my-ruta-annotator/
├── pom.xml
└── src
├── main
│ ├── java
│ │ └── com
│ │ └── example
│ │ └── nlp
│ │ └── GenerateConfiguredDescriptorTemplate.java
│ ├── resources
│ │ ├── descriptor
│ │ │ └── GeneratedBasicEngine.xml
│ │ └── META-INF
│ │ └── org.apache.uima.fit
│ │ └── types.txt
│ └── ruta
│ └── com
│ └── example
│ └── nlp
│ └── MyRutaAnnotator.ruta
└── test
└── java
└── com
└── example
└── nlp
└── PearPackageIT.java
Navigate into the project directory:
cd my-ruta-annotator
Build the Ruta annotator project with maven:
mvn clean install
This will assemble a PEAR package in the target directory.
target/my-ruta-annotator-1.0.pear