[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
Re: [tycho-user] Building with Tycho offline
 | 
| 
  
  
     I made a small reproducible example
      project for my own testing and thought I'd share in case it's
      useful for someone else. Using this bundle I'm able to reproduce
      the failing issue on build.eclipse.org using Maven 3.0.5 and JDK
      1.7.0_25 in /shared/common. I've also attached my Tycho patch with
      adds the print statement. 
       
      Steps I used to reproduce are: 
       
      1. mvn clean verify 
      2. mvn clean verify -o 
       
       
      As for reproducing a working build I'm not sure but it works on my
      Laptop which is running Arch Linux with Maven 3.0.5 and JDK
      1.7.0_25. 
       
       
      Thanh 
       
       
      On 25/07/13 03:05 PM, Thanh Ha wrote: 
     
    
      
      
      
        
        On 24/07/13 10:57 AM, Jeff MAURY
          wrote: 
         
        
          Can you try on your failing machine after you
            deleted the local Maven repo ?
              
             
           
         
         
        I tried this but it did not help. I even tried zipping up the
        local repo from the working machine and copying it over but that
        didn't seem to affect anything either. 
         
         
        Thanh 
         
         
        
          
          
         
       
     
     
  
 | 
Attachment:
p2example.zip
Description: Zip archive
diff --git a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/remote/RemoteRepositoryCacheManager.java b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/remote/RemoteRepositoryCacheManager.java
index 707b1c5..cf720a4 100644
--- a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/remote/RemoteRepositoryCacheManager.java
+++ b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/remote/RemoteRepositoryCacheManager.java
@@ -48,6 +48,9 @@ class RemoteRepositoryCacheManager extends CacheManager {
     @Override
     public File createCache(URI repositoryLocation, String prefix, IProgressMonitor monitor) throws IOException,
             ProvisionException {
+        
+        System.out.println("+++++++++++++ " + prefix + " -- " + repositoryLocation.toString() + " -- ");
+        
         File cacheFile = getCache(repositoryLocation, prefix);
         if (offline) {
             if (cacheFile != null) {