[ http://jira.codehaus.org/browse/MRM-226?page=all ]

Tom Huybrechts updated MRM-226:
-------------------------------

    Attachment: archiva-discoverer-226-patch.txt

attached a patch - explicit check for test-sources
junit test included

> indexer throws exception on test-sources jar
> --------------------------------------------
>
>                 Key: MRM-226
>                 URL: http://jira.codehaus.org/browse/MRM-226
>             Project: Archiva
>          Issue Type: Bug
>          Components: indexing
>         Environment: Windows
>            Reporter: Tom Huybrechts
>         Attachments: archiva-discoverer-226-patch.txt
>
>
> While indexing a repo for the first time, Archiva throws this exception and 
> indexing stops.
> The exception refers to a -test.jar. The repository contains many artifacts 
> in this directory, but not with classifier test. The closest things are 
> -tests and -test-sources.
> edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: 
> java.lang.IllegalStateException: Couldn't find artifact  
> C:\maven-repo\group\artifact\1.0.0.v20060823\artifact-1.0.0.v20060823-test.jar
>         at 
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.getResult(FutureTask.java:299)
>         at 
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.get(FutureTask.java:118)
>         at 
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.waitForTask(ThreadedTaskQueueExecutor.java:159)
>         at 
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:127)
> Caused by: java.lang.IllegalStateException: Couldn't find artifact 
> C:\maven-repo\group\artifact\1.0.0.v20060823\artifact-1.0.0.v20060823-test.jar
>         at 
> org.apache.maven.archiva.reporting.LocationArtifactReportProcessor.processArtifact(LocationArtifactReportProcessor.java:143)
>         at 
> org.apache.maven.archiva.reporting.AbstractReportGroup.processArtifact(AbstractReportGroup.java:53)
>         at 
> org.apache.maven.archiva.reporting.DefaultReportExecutor.runArtifactR...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to