You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alexander Smirnoff (JIRA)" <ji...@codehaus.org> on 2006/05/20 00:11:41 UTC

[jira] Created: (MRM-112) Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists

Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists
------------------------------------------------------------------------------------------------------------------------

         Key: MRM-112
         URL: http://jira.codehaus.org/browse/MRM-112
     Project: Maven Repository Manager
        Type: Bug

  Components: indexing  
    Versions: 1.0-alpha-1    
    Reporter: Alexander Smirnoff


Here is  the stacktrace:

org.apache.maven.repository.indexing.RepositoryIndexException: C:\dev\index is not a valid index directory.
	at org.apache.maven.repository.indexing.AbstractRepositoryIndex.indexExists(AbstractRepositoryIndex.java:257)
	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.deleteIfIndexed(MetadataRepositoryIndex.java:195)
	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.indexMetadata(MetadataRepositoryIndex.java:173)
	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.index(MetadataRepositoryIndex.java:67)
 ...

the directory exists, if you will pass the path that does not exists, all works fine.

-- 
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


[jira] Updated: (MRM-112) Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-112?page=all ]

Maria Odea Ching updated MRM-112:
---------------------------------

    Remaining Estimate: 5 hours
     Original Estimate: 5 hours

> Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists
> ------------------------------------------------------------------------------------------------------------------------
>
>          Key: MRM-112
>          URL: http://jira.codehaus.org/browse/MRM-112
>      Project: Maven Repository Manager
>         Type: Bug

>   Components: indexing
>     Versions: 1.0-alpha-1
>     Reporter: Alexander Smirnoff
>     Assignee: Maria Odea Ching

>
> Original Estimate: 5 hours
>         Remaining: 5 hours
>
> Here is  the stacktrace:
> org.apache.maven.repository.indexing.RepositoryIndexException: C:\dev\index is not a valid index directory.
> 	at org.apache.maven.repository.indexing.AbstractRepositoryIndex.indexExists(AbstractRepositoryIndex.java:257)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.deleteIfIndexed(MetadataRepositoryIndex.java:195)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.indexMetadata(MetadataRepositoryIndex.java:173)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.index(MetadataRepositoryIndex.java:67)
>  ...
> the directory exists, if you will pass the path that does not exists, all works fine.

-- 
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


[jira] Updated: (MRM-112) Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-112?page=all ]

Brett Porter updated MRM-112:
-----------------------------

    Fix Version: 1.0-beta-1

> Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists
> ------------------------------------------------------------------------------------------------------------------------
>
>          Key: MRM-112
>          URL: http://jira.codehaus.org/browse/MRM-112
>      Project: Maven Repository Manager
>         Type: Bug

>   Components: indexing
>     Versions: 1.0-beta-1
>     Reporter: Alexander Smirnoff
>     Assignee: Maria Odea Ching
>      Fix For: 1.0-beta-1

>
> Original Estimate: 5 hours
>        Time Spent: 5 hours
>         Remaining: 0 minutes
>
> Here is  the stacktrace:
> org.apache.maven.repository.indexing.RepositoryIndexException: C:\dev\index is not a valid index directory.
> 	at org.apache.maven.repository.indexing.AbstractRepositoryIndex.indexExists(AbstractRepositoryIndex.java:257)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.deleteIfIndexed(MetadataRepositoryIndex.java:195)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.indexMetadata(MetadataRepositoryIndex.java:173)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.index(MetadataRepositoryIndex.java:67)
>  ...
> the directory exists, if you will pass the path that does not exists, all works fine.

-- 
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


[jira] Closed: (MRM-112) Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists

Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-112?page=all ]
     
Maria Odea Ching closed MRM-112:
--------------------------------

    Resolution: Fixed

Created additional check when the index directory already exists but is empty, proceed with the indexing.

> Creation of MetadataReposiotryIndex fails if provided index directory exists, but works if the directory does not exists
> ------------------------------------------------------------------------------------------------------------------------
>
>          Key: MRM-112
>          URL: http://jira.codehaus.org/browse/MRM-112
>      Project: Maven Repository Manager
>         Type: Bug

>   Components: indexing
>     Versions: 1.0-alpha-1
>     Reporter: Alexander Smirnoff
>     Assignee: Maria Odea Ching

>
> Original Estimate: 5 hours
>         Remaining: 5 hours
>
> Here is  the stacktrace:
> org.apache.maven.repository.indexing.RepositoryIndexException: C:\dev\index is not a valid index directory.
> 	at org.apache.maven.repository.indexing.AbstractRepositoryIndex.indexExists(AbstractRepositoryIndex.java:257)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.deleteIfIndexed(MetadataRepositoryIndex.java:195)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.indexMetadata(MetadataRepositoryIndex.java:173)
> 	at org.apache.maven.repository.indexing.MetadataRepositoryIndex.index(MetadataRepositoryIndex.java:67)
>  ...
> the directory exists, if you will pass the path that does not exists, all works fine.

-- 
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