Home
> audience-is-language-learning-center-manager, service-is-learning-materials-creation > Java IDE for NLP with DkPro – A running log.
Java IDE for NLP with DkPro – A running log.
- UPDATE: dkPro has been updated, see the comment below by the dkPro Project Lead.
- MyLyn Web Connector 3.8 for Eclipse Indigo
- I next got an error (“Cannot complete the install because one or more required items could not be found.
Software being installed: Mylyn Incubator SDK (Incubation) 3.8.0.I20120414-0402 (org.eclipse.mylyn.experimental_sdk_feature.feature.group 3.8.0.I20120414-0402)
Missing requirement: Mylyn Tasks Connector: Web Templates (Advanced) (Incubation) 3.8.0.I20120414-0402 (org.eclipse.mylyn.web.tasks_feature.feature.group 3.8.0.I20120414-0402) requires ‘org.eclipse.mylyn_feature.feature.group [3.8.0,4.0.0)’ but it could not be found
Cannot satisfy dependency:
From: Mylyn Incubator SDK (Incubation) 3.8.0.I20120414-0402 (org.eclipse.mylyn.experimental_sdk_feature.feature.group 3.8.0.I20120414-0402)
To: org.eclipse.mylyn.web.tasks_feature.feature.group [3.8.0,4.0.0)”), but starting over and updating my MyLyn installations form menu: Help / Install Updates fixed that. - Show Task repositories window:
- Error: “Query Synchronization Failed _______ Q Failed to parse RSS feed: “Invalid XML: Error on line 114: The element type “meta” must be terminated by the matching end-tag “«meta>”,””
- . Well, the Google Code integration is anyways only for users that cannot run Maven. Maybe I can
- Install Fails also (“Missing requirement”, again: this time it is “org.sonatype.m2e.subclipse.feature.feature.group 0.13.0.201107071330”), and here we are up the creek with no paddle: You do not want to read a thread on the developer site that ends in ”this must be a bad joke”.
- Then there are the heroes (as opposed to process) who make it work nevertheless: To bring back back the SVN SCM handler, extract this to your Eclipse dropins folder.
- Unless of course you suffer from extremely bad timing:
- Now to the real getting started
- Wait: “First Programming Steps with DKPro Core: This page is currently outdated. We are working on a new DKPro Core release which makes several steps of this tutorial obsolete and changes others (Updated May 8, 2012)”. Can referring to the help provided on the mailing list may bridge that gap for you? Or may this “Setting up Maven and Eclipse for DKPro Core development (Updated May 10, 2012)” currently be the best instruction?
- “Go to the Package Explorer in Eclipse [Window->Show View->Other…->Java->Package Explorer] and create new a Maven Project”:
-
- Other potential sources of confusion:
- settings.xml: There are 2, one in your Maven install directory and one in your .m2e directory – it seems the latter which counts
- my .m2e recursed (think ~/.m2e/.m2e) – did I cause this when trying to change its location (which supposedly you can)?
- file: nexus-maven-repository-index, in various forms of compression: What is this, and what prevents it from getting downloaded?
- maven repositories:
- the expansion option for the ukp-oss-releases comes and goes. if I right-click / rebuild index, I even get an error “Unable to update index for ukp-oss-releases”, but afterwards, the expansion option reappears.
- You are provided a settings.xml for Maven (m2eclipse) that points to the dkPro online Maven repository.
- Which looks like it needs an update to include a pluginrepository for snapshots.
- Check you are loading it alright by going to Menu: Window / Preferences / Maven / User Settings:
- You are advised “to check if your Maven and Eclipse are configured correctly, try opening the “Maven Repositories” view in Eclipse, open “Global Repositories” and check if there is a “ukp-oss” folder in it with contents”, like so:
, or else fix your /m2e/settings.xml or Eclipse:
- Show Maven Repositories View by going to Menu:Windows/ Show View / Maven Repository:
- Like so:
- You get an overview of updating
- You are advised “to check if your Maven and Eclipse are configured correctly, try opening the “Maven Repositories” view in Eclipse, open “Global Repositories” and check if there is a “ukp-oss” folder in it with contents”, like so:
- and finally:
- TBA: what causes the central maven repository to not get resolved?
- Build your own project, with guidance from a variety of documents (some need updating) and mailing lists
- My attempts to “browse” for the parent when creating my own project have remained unsuccessful:
- I could however use as a model an existing POM.xml that loads a parent:
- Which seems to work, at least if you click “open parent pom”,
- it connects you to the dependency:
- Afterwards, the search feature started working when selecting dependencies:
- For the DkPro version updated 05-28, I also could not browse for parents or dependencies from m2eclipse, but needed to first manually add to my pom.xml (the syntax of which is explained here and here)
- the <parent> entry
- Managing dependencies from within m2eclipse started to work for me only once I had added manually the <dependencyManagement> entries. This allows for autodiscovery of the snapshot-version (1.4.0 currently) version, whether you add a <dependency> into the pom.xml without <version>, like here:
, or browse for and select the latest released version (1.3.0 – I cannot browse for snapshots). like here:
- the <parent> entry
- While I still can only browse for release versions (1.3 currently), the <dependencymanagement> updates
- Reminder: Given the current transitional status of DkPro, you need to first enable snapshots like in my settings.xml.
- HINTS
- You cannot “remove” through the gui-button a dependency that you erroneously added as empty.
Open the pom.xml with a text/xml editor and remove it there, then have the GUI reload the pom.
- See here for some tools that helped me debug my project setup in Eclipse.
- You cannot “remove” through the gui-button a dependency that you erroneously added as empty.
- If you cannot use the built-in javadoc help for stanford-corenlp, and/or, when trying to set up, get “Can’t download JavaDoc for edu.stanford.nlp:stanford-corenlp:1.3.2:javadoc”, this is a known issue, seems to have no resolution currently, but may have one in the future.
Workaround: browse the source elsewhere…
- My attempts to “browse” for the parent when creating my own project have remained unsuccessful:
Nice article 🙂 Fortunately, the Maven tooling in Eclipse keeps on improving and since DKPro Core 1.4.0, most stuff is available on Maven Central.
Many thanks for your comment, and for the update. I have seen it, and am about to give it a spin.