You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Olivier Lamy (JIRA)" <ji...@apache.org> on 2011/04/18 17:36:05 UTC

[jira] [Issue Comment Edited] (INFRA-3583) Add Tika to Sonar

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

Olivier Lamy edited comment on INFRA-3583 at 4/18/11 3:34 PM:
--------------------------------------------------------------

I have some issues with a unit test ForkParserTest see [https://analysis.apache.org/jenkins/job/tika/4/console] which looks to break the cobertura classloader.
Sorry didn't investigate more.
A fast solution is to add a maven profile called sonar to exclude this test.
See patch  attached.


      was (Author: olamy):
    I have some issues with a unit test ForkParserTest see [https://analysis.apache.org/jenkins/job/tika/4/console] which looks to break the cobertura classloader.
Sorry didn't investigate more.
A fast solution is to add a maven profile called sonar to exclude this test.
See patch 
{code}
Index: tika-parent/pom.xml
===================================================================
--- tika-parent/pom.xml (revision 1094530)
+++ tika-parent/pom.xml (working copy)
@@ -245,6 +245,11 @@
           <artifactId>maven-bundle-plugin</artifactId>
           <version>2.1.0</version>
         </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-surefire-plugin</artifactId>
+          <version>2.8.1</version>
+        </plugin>
       </plugins>
     </pluginManagement>
   </build>
@@ -288,5 +293,21 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>sonar</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <excludes>
+                <exclude>**/ForkParserTest.java</exclude>
+              </excludes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
 </project>

{code}

  
> Add Tika to Sonar
> -----------------
>
>                 Key: INFRA-3583
>                 URL: https://issues.apache.org/jira/browse/INFRA-3583
>             Project: Infrastructure
>          Issue Type: Task
>      Security Level: public(Regular issues) 
>          Components: Analysis
>            Reporter: Jukka Zitting
>            Assignee: Olivier Lamy
>            Priority: Minor
>         Attachments: INFRA-3583
>
>
> Details based on the template from INFRA-3402:
> * svnurl : http://svn.apache.org/repos/asf/tika/trunk/ 
> * pom path : (blank as svnurl/pom.xml) 
> * maven version : 2 or higher
> * jdk version : 1.5 or higher
> * maven profiles to use : 
> * maven build properties : 

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