Hi guys! I am still trying to get this Ivy repository support. Its been
on and of working with it, but...

I have some problem understand where in the code the choice of the
repository gets taken.
It seems to me that there is somewhat hard coded to choose the 'default'
(which is maven2) different places in the code.

I have added so that it is possible to configure the repository layout
to be configured to be 'ivy'.
So I though I should try to get it to show artifacts using the classes
in the new ivy plugin, but it always uses the classes/beans in the
maven2 plugin.
Any one care to hint me in the correct direction?

I tried to trace it from this stack trace:
     java.lang.IllegalArgumentException: Not a valid artifact path in a
Maven 2 repository, filename 'ivy-3.0.0.129.xml' doesn't start with
artifact ID 'avr8-utils'
    
org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryPathTranslator.getArtifactFromId(Maven2RepositoryPathTranslator.java:190)
    
org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryStorage.getArtifactFromFile(Maven2RepositoryStorage.java:586)
    
org.apache.archiva.metadata.repository.storage.maven2.Maven2RepositoryStorage.readArtifactsMetadata(Maven2RepositoryStorage.java:566)
    
org.apache.archiva.metadata.repository.DefaultMetadataResolver.resolveArtifacts(DefaultMetadataResolver.java:367)
    
org.apache.archiva.web.action.ShowArtifactAction.getProjectVersionMetadata(ShowArtifactAction.java:197)
    
org.apache.archiva.web.action.ShowArtifactAction.handleArtifact(ShowArtifactAction.java:133)
    
org.apache.archiva.web.action.ShowArtifactAction.artifact(ShowArtifactAction.java:121)

>From this it seems to me that it makes a choice somewhere in
DefaultMetadataResolver.java
Or in 'ShowArtifact.jsp' i find:
<c:set var="mavenFacet"
value="${model.facets['org.apache.archiva.metadata.repository.storage.maven2.project']}"
/>
That seems to hardcode mave2 project. I am a little unsure of the facets
role in the big picture yet and how that possible controls the choice of
repository.

Also there seems to be some comments her  and there in different modules
about 'FIXME' to support different repos.

Have I just taken on a to big task here or?

Regards
Per A.

-- 
Per Arnold BlÄsmo
Senior Design Engineer, Atmel Norway


Reply via email to