Hi

On Tue, Feb 26, 2013 at 2:29 AM, Reto Bachmann-Gmür <[email protected]> wrote:
>           <plugin>
>               <groupId>org.apache.maven.plugins</groupId>
>               <artifactId>maven-surefire-plugin</artifactId>
>               <configuration>
>                   <skipTests>false</skipTests>
>               </configuration>
>           </plugin>

I think this in unintended. Maybe it is even a left over from the
original contribution.

>
> Anyway, so I got the following test failure:
>
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.63 sec
> <<< FAILURE!
> testCompleteMorphoAnalysis(org.apache.stanbol.enhancer.engines.celi.lemmatizer.impl.CeliLemmatizerEnhancementEngineTest)
> Time elapsed: 0.305 sec  <<< ERROR!
> java.lang.IllegalStateException: Unable to instantiate PosTagwith String
> tag 'NOUN'!

  [..]

> Caused by: java.lang.NoSuchMethodException:
> org.apache.stanbol.enhancer.nlp.pos.PosTag.<init>(java.lang.String)
>     at java.lang.Class.getConstructor0(Class.java:2721)
>     at java.lang.Class.getConstructor(Class.java:1674)
>     at
> org.apache.stanbol.enhancer.engines.celi.CeliTagSetRegistry.getTag(CeliTagSetRegistry.java:354)
>     ... 35 more
>
> Anyone has an idea why this fails? I don't see a test failure on Jenkins.

No because the PosTag class defines the constructor

    public PosTag(String tag){
        this(tag,(LexicalCategory[])null);
    }

and also

    <dependency>
      <groupId>org.apache.stanbol</groupId>
      <artifactId>org.apache.stanbol.enhancer.nlp</artifactId>
      <version>0.10.0</version>
    </dependency>

in the pom.xml looks fine

best
Rupert


--
| Rupert Westenthaler             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to