uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <...@uima.apache.org>
Subject [jira] Commented: (UIMA-2003) WhitespaceTokenizerPerfTest failure in sandbox Last Changed Rev: 1056535
Date Mon, 07 Mar 2011 20:07:59 GMT

    [ https://issues.apache.org/jira/browse/UIMA-2003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003550#comment-13003550
] 

Marshall Schor commented on UIMA-2003:
--------------------------------------

Other things to look at, if Maven version upgrade doesn't work:

The way this is supposed to work:

Running the test involves running the maven "process-resources" phase, which should be copying
the desc/WhitespaceTokenizer.xml to the projects target/classes directory.  After you see
this failure, can you check that directory to see if has this file there?  If not, then run
debug this by:

1) running mvn clean   - should remove the target/ directory

2) run mvn compile -X

This should run maven with debugging output, and you should see some output that looks like:

[INFO] Copying 1 resource
[DEBUG] file WhitespaceTokenizer.xml has a filtered file extension
[DEBUG] copy D:\mavenAlign\sandbox-trunk-data\WhitespaceTokenizer\desc\WhitespaceTokenizer.xml
to D:\mavenAlign\sandbox-trunk-data\WhitespaceTokenizer\target\classes\WhitespaceToke
nizer.xml

These lines are the result of this part of the pom:
{noformat}
<!-- add the contents of desc if it exists to the jar.  
                   This puts the things like the WhitespaceTokenizer.xml file into the Jar
                   and makes it easier for users to run this, without installing a pear. 
                   The Tagger project uses this technique, for instance -->
              <execution>
                <id>copy desc so its contents can be found in Jar</id>
                <goals><goal>copy-resources</goal></goals>
                <phase>process-resources</phase>  <!-- required -->
                <configuration>
                  <outputDirectory>${project.build.outputDirectory}</outputDirectory>
                  <resources>
                    <resource>
                      <directory>desc</directory>
                      <includes><include>**</include></includes>
                    </resource>
                  </resources>
                </configuration>
              </execution>
{noformat}

This part of the pom is in a profile that is triggered by the presence of the file:

{noformat}
      <activation>
        <file>
          <exists>marker-file-identifying-standard-pear</exists>
        </file>
      </activation>
{noformat}

Please insure this file exists in the WhitespaceTokenizer svn checkout.

Please let us know what you find out...

> WhitespaceTokenizerPerfTest failure in sandbox Last Changed Rev: 1056535
> ------------------------------------------------------------------------
>
>                 Key: UIMA-2003
>                 URL: https://issues.apache.org/jira/browse/UIMA-2003
>             Project: UIMA
>          Issue Type: Bug
>          Components: Sandbox
>            Reporter: Florent ANDRE
>
> === error
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.uima.annotator.WhitespaceTokenizerPerfTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec <<<
FAILURE!
> Running org.apache.uima.annotator.WhitespaceTokTest
> Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.181 sec <<<
FAILURE!
> Results :
> Failed tests: 
>   testEnglishProcessingTest(org.apache.uima.annotator.WhitespaceTokenizerPerfTest)
> Tests in error: 
>   testAnnotatorSpecial(org.apache.uima.annotator.WhitespaceTokTest)
>   testAnnotatorEnglish(org.apache.uima.annotator.WhitespaceTokTest)
>   testAnnotatorTabs(org.apache.uima.annotator.WhitespaceTokTest)
> Tests run: 4, Failures: 1, Errors: 3, Skipped: 0
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] There are test failures.
> == command : 
> - cd sandbox/aggregate-addons
> - mvn install
> == svn info : 
> URL: http://svn.apache.org/repos/asf/uima/sandbox/trunk
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 1058796
> Node Kind: directory
> Schedule: normal
> Last Changed Author: tommaso
> Last Changed Rev: 1056535
> Last Changed Date: 2011-01-07 23:15:36 +0100 (Fri, 07 Jan 2011)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message