Hi, this is quite doable, I do it all the time. UIMA fit would be of help here, it has some nice helper methods to load annotators (and readers and consumers) by name, i.e. by a descriptor on the class path. As to how to create the JAR, I nice way might be to set up a maven project and use the RUTA Maven plugin. It will automatically generate the AnalysisEngine and TypeSystem descriptors out of your .ruta script. The resulting JAR should then already be enough for your needs.
Hope this helps, but feel free to ask more questions for more pointers or examples. Best, Erik > On 19. Apr 2021, at 13:21, Michael Bach <ap...@m-ba.ch> wrote: > > Hi, > > I’m looking for a way to integrate a few RUTA annotators into an existing > application. It’s being packaged as a bundle/feature and deployed via OSGI, > so ideally, I’d like to package the whole RUTA project as a fat jar and just > import it as a dependency, exposing the Annotator via a single class that > handles input and returns Annotations. > > Does anyone know how this might work? Having a hard time getting UIMA to > resolve descriptors and such from the class path… > > Cheers, > Michael