On Fri, 28 Sep 2012, David Patterson wrote:
I want to process a maven pom.xml with special code.

I added the following to the existing xml file of mimetypes:

 <mime-type type="application/maven-pom">
   <glob pattern="pom.xml" />
 </mime-type>

You'll be much better off adding it to a custom mimetypes file, rather than hacking the built-in one. Call your file org/apache/tika/mime/custom-mimetypes.xml to have it auto-loaded

Also, as pom files are xml based, you might also want to add the xml root definition too. There should be some examples to crib from in the main file

Nick

Reply via email to