Hi Weitao,

On Sat, Nov 19, 2016 at 3:02 AM, Hou Weitao <[email protected]> wrote:

> This is Weitao. Thanks for your reply. I change the settings.xml of Maven
> and retried and finally made it.
> Still take a long time though :D
>

Excellent. yes, these artifacts are large so it is no mean feat.


>
> Another problem came which is similar to https://issues.apache.org/
> jira/browse/CTAKES-385
> I set the input and output file then run the code in Eclipse but got the
> Exception below.
>
>
> Exception in thread "main" java.lang.IllegalArgumentException: URI is not
> hierarchical
> at java.io.File.<init>(File.java:418)
> at org.apache.ctakes.lvg.ae.LvgAnnotator.createAnnotatorDescription(
> LvgAnnotator.java:565)
> at it.cnr.iac.CTAKESClinicalPipelineFactory.getTokenProcessingPipeline(
> CTAKESClinicalPipelineFactory.java:189)
> at it.cnr.iac.CTAKESClinicalPipelineFactory.getDefaultPipeline(
> CTAKESClinicalPipelineFactory.java:138)
> at it.cnr.iac.CTAKESClinicalPipelineFactory.getPipelineForProperty(
> CTAKESClinicalPipelineFactory.java:217)
> at it.cnr.iac.CTAKESClinicalPipelineFactory.main(
> CTAKESClinicalPipelineFactory.java:107)
>
> ExternalResourceFactory.createExternalResourceDescription(
>               LvgCmdApiResourceImpl.class,
>               new File(LvgCmdApiResourceImpl.class.getResource(
> 怡getResourceAsStream?怸
>                   "/org/apache/ctakes/lvg/data/
> config/lvg.properties").toURI()))
>           );
>
> I check the JIRA and download the latest version of ctakes-lvg.jar  from
> https://repository.apache.org/content/repositories/snapshots/org/
> apache/ctakes/ctakes-lvg/3.2.3-SNAPSHOT/
> and change the name to ctakes-lvg-3.2.2.jar directly but not work..and
> cannot find ctakes-lvg in pom.xml so that I cannot change the version
> legally.
>

This has nothing to do with the artifact version. It has to do with it's
location on disk. Make sure that the properties exists on disk at the
location /org/apache/ctakes/lvg/data/config/lvg.properties relative to the
location of LvgCmdApiResourceImpl.class.

hth
Lews

Reply via email to