This was added for the other remote repositories, because they were just 
skipping the other remote repositories and were not actually trying to resolve 
from their locations. 

-- 
Joe Ocaba 

----- Original Message ----- 
From: "Brett Porter" <[email protected]> 
To: [email protected] 
Sent: Friday, January 7, 2011 3:00:29 PM 
Subject: Re: svn commit: r1045023 - 
/incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
 

Isn't this called later on? 

I recall too much resolution caused performance problems before - I'm not sure 
why this needed to be added as well earlier on? 

- Brett 

On 13/12/2010, at 5:48 PM, [email protected] wrote: 

> Author: jocaba 
> Date: Mon Dec 13 06:48:54 2010 
> New Revision: 1045023 
> 
> URL: http://svn.apache.org/viewvc?rev=1045023&view=rev 
> Log: 
> [NPANDAY-351] NPanday does not respect the configured repository in the pom 
> 
> Added artifact resolver to look up to remote repos for the dependencies that 
> were skipped and could not be resolved from the local repositories 
> 
> Modified: 
> incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
>  
> 
> Modified: 
> incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
>  
> URL: 
> http://svn.apache.org/viewvc/incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java?rev=1045023&r1=1045022&r2=1045023&view=diff
>  
> ==============================================================================
>  
> --- 
> incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
>  (original) 
> +++ 
> incubator/npanday/trunk/components/dotnet-dao-project/src/main/java/npanday/dao/impl/ProjectDaoImpl.java
>  Mon Dec 13 06:48:54 2010 
> @@ -496,6 +496,30 @@ public final class ProjectDaoImpl 
> 
> snapshotVersion = null; 
> 
> + if(!assembly.getFile().exists()) 
> + { 
> + 
> + try 
> + { 
> + ArtifactRepository localArtifactRepository = 
> + new DefaultArtifactRepository( "local", "file://" + localRepository, 
> + new DefaultRepositoryLayout() ); 
> + 
> + artifactResolver.resolve( assembly, artifactRepositories, 
> + localArtifactRepository ); 
> + } 
> + catch ( ArtifactNotFoundException e ) 
> + { 
> + logger.info( "NPANDAY-181-121: Problem in resolving assembly: " + 
> assembly.toString() 
> + + ", Message = " + e.getMessage() ); 
> + } 
> + catch ( ArtifactResolutionException e ) 
> + { 
> + logger.info( "NPANDAY-181-122: Problem in resolving assembly: " + 
> assembly.toString() 
> + + ", Message = " + e.getMessage() ); 
> + } 
> + } 
> + 
> logger.info( "NPANDAY-180-011: Project Dependency: Artifact ID = " 
> + projectDependency.getArtifactId() + ", Group ID = " + 
> projectDependency.getGroupId() 
> + ", Version = " + projectDependency.getVersion() + ", Artifact Type = " 
> 
> 

-- 
Brett Porter 
[email protected] 
http://brettporter.wordpress.com/ 
http://au.linkedin.com/in/brettporter 




Reply via email to