Daniel Naber <list2...@danielnaber.de> wrote: > Hi everybody! > > As planned, we have now switched the LT source to a module-based Maven > structure. This mail contains important information about what that means > for developers. Please read this carefully if you're affected. > * languagetool-gui-commons (code shared by office extension and standalone > version)
There seem to be lots of questions after the Maven move. So I'd like to share how I build LT now with Maven on Ubuntu (maybe that can be useful to others) and ask a few questions. # install packages for Ubuntu (it not already installed) $ sudo apt-get install mvn subversion openjdk-7-jdk # Checkout LT code from svn (if not already checked-out) $ svn co https://languagetool.svn.sourceforge.net/svnroot/languagetool/trunk/languagetool # Build LanguageTool # This not only builds but also runs tests which is quite slow $ cd languagetool $ mvn package # or alternatively build without running tests (faster) $ mvn package -Dmaven.test.skip=true # Packaged files built are in a zip file (annoying but hopefully will be changed?) # so unzip them with: $ unzip ./languagetool-standalone/target/LanguageTool-2.1-SNAPSHOT.zip # Run LanguageTool in command line # There is no jar file for LT in command line (hopefully with be fixed soon?) # so run LT in command line with: $ echo "Test test" | \ java -cp LanguageTool-2.1-SNAPSHOT/languagetool-standalone.jar org.languagetool.commandline.Main -l en-US - Expected text language: English (US) Working on STDIN... 1.) Line 1, column 1, Rule ID: ENGLISH_WORD_REPEAT_RULE Message: Possible typo: you repeated a word Suggestion: Test Test test ^^^^^^^^^ Time: 161ms for 1 sentences (6.2 sentences/sec) Since the way to run the LT command line has changed, the Vim plugin that I use is currently broken. I could fix it, but I assume that running the command line as... $ java -cp LanguageTool-2.1-SNAPSHOT/languagetool-standalone.jar org.languagetool.commandline.Main -l en-US - ... is only a temporary solution anyway until a jar file is created for the command line of LT. Correct? Any estimated time when this will be fixed? I'm not very familiar with Maven, but why does it need to do so much work when everything is already built? For example, running... $ mvn package -Dmaven.test.skip=true ... always take >= 40 sec on my laptop even when nothing was changed since the last build. That's slow. I'm more familiar with GNU make where builds generally only takes a few milliseconds when everything is already up-to-date. Regards Dominique ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel