-1

I want to intergate the apache tika jar or source files into my grail application and how can i do it please ...

what about access source files into my groovy controller or something

Community
  • 1
  • 1
Develop4Life
  • 7,581
  • 8
  • 58
  • 76

3 Answers3

2

There are a lot's of way to include jar on a grails project, however i think that te best way is using maven.

<dependency>
    <groupId>org.apache.tika</groupId>
    <artifactId>tika-core</artifactId>
    <version>...</version>
 </dependency>

add on your BuildConfig.groovy file

dependencies {
  ...
  compile'org.apache.tika:tika-core:1.7'
  ...
}
Luca Farsetti
  • 257
  • 2
  • 14
1

try grails apache tika plugin http://grails.org/plugin/tika-parser

Rahul Winner
  • 430
  • 3
  • 16
1

there is a thrird option. you can put the downloaded .jar file into the /lib dir of your grails project. do grails package and it should get picked up. this of course is a much inferior solution, than just using a plug-in or dependencies, but might come handy.

cfrick
  • 35,203
  • 6
  • 56
  • 68