thienbui / language-detection

Automatically exported from code.google.com/p/language-detection
1 stars 0 forks source link

maven integration #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
here's some static jar to install language-detection for use with maven:
https://github.com/renaud/maven_deps/tree/master/language_detection

Original issue reported on code.google.com by renaud.r...@gmail.com on 19 Jan 2011 at 9:19

GoogleCodeExporter commented 9 years ago
I see. No problem.
Thanks for your announce.

Original comment by nakatani.shuyo on 20 Jan 2011 at 2:00

GoogleCodeExporter commented 9 years ago
Hi Nakatani,

Thanks for the work you have done. Out of open-sourced language guessers I 
guess :) your library guesses the best.

Attached I assembled a Maven project for the 05-09-2011 version. It contains 
the core library only, no Nutch plugin. If you would be interested in a full 
Maven build, I could contribute it for your project. Someone else can put it on 
a public repository.

Cheers,
Sergei

Original comment by vasilievsi@gmail.com on 7 Jul 2011 at 8:50

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Sergei,

Thanks!
I'm awfully wanting to make langdetect a Maven project, but I don't have enough 
time to research how to use Google code project as Maven public repository...

Original comment by nakatani.shuyo on 11 Jul 2011 at 5:53

GoogleCodeExporter commented 9 years ago
Thanks for the build maven.
For some reason in the Jar supplied with the regular download source the 
DetectorFactory.setSeed(long seed) was unavailable - and now it does :)

Original comment by Lich...@gmail.com on 13 Jul 2011 at 8:21

GoogleCodeExporter commented 9 years ago
Do you plan to add pom.xml to svn and refactor this to standard maven project? 
So that anyone can simply build this as library using maven and put it to his 
own repo or wherever else? It is just necessary to follow structure of attached 
maven project (just it is static snapshot). It just requires some svn move 
commands. If you give me access to svn I can do it.

Original comment by sote...@gmail.com on 3 Jan 2012 at 1:04

GoogleCodeExporter commented 9 years ago
I am just supporting pom.xml on this project.
But now, I wonder what interface it should demand selection profiles with...
So wait more some moment, please :D

Original comment by nakatani.shuyo on 4 Jan 2012 at 4:01

GoogleCodeExporter commented 9 years ago
I updated original maven project attached above:
1.Latest svn snapshot
2.Fix src, target version for javac to 1.6.
3.Changed version in pom.xml to 1.0 (original was date string)
4.Updated jsonic dep to 1.2.8 but you must add jsonic to some repo first. 
(Original dep had groupId net.arnx.jsonic instead of correct net.arnx.)
5.Added dep on log4j so that it is possible to log.
6.Added method DetectorFactory.loadProfile which loads profiles bundled in 
library jar (so everything is packed together in one jar).

Let me know if you need any help with merging this with current trunk or create 
branch for it so it can be merged later. It is now possible to build self 
contained library jar using command mvn package.

Original comment by sote...@gmail.com on 4 Jan 2012 at 11:33

Attachments:

GoogleCodeExporter commented 9 years ago
Updated version. I just found that 
DetectorFactory.class.getProtectionDomain().getCodeSource().getLocation().getPat
h() does not work when library is bundled in web app on application server. So 
I had to use getResourceAsStream but as Class does not provide API to enumerate 
package I had to add simple text file 'content' with list of resources which is 
used instead of enumerator. I added new method loadProfileJBoss to distinguish 
from previous. This should cover all use cases (app server, standalone and even 
non jar usage as resource should be always on classpath) so probably original 
method can be replace by new one and renamed to loadProfile() without any 
parameters. I also incremented library version to 1.1.

Original comment by sote...@gmail.com on 5 Jan 2012 at 5:27

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your code.
I'm supporting multi profile-sets now.
I may refer your JBoss support!

Original comment by nakatani.shuyo on 11 Jan 2012 at 10:19

GoogleCodeExporter commented 9 years ago
Hi,

I appreciate time constraints but I contribute to a project that makes use of 
this project and we really need a Maven release.  Would you be prepared to make 
a release following the steps outlined at 
https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage
+Guide ?

Original comment by gento...@gmail.com on 30 Mar 2012 at 10:18

GoogleCodeExporter commented 9 years ago
I've cloned the language-detection repository and checked out the mavenize 
branch.
Can I work from there? Is it production ready?

Original comment by rein...@gmail.com on 29 Dec 2012 at 11:42