Hi,
We are in the process of setting up our maven repositories. We already 
installed Archiva and we have now 2 repositories: internal and 
internal.snapshots.

However, when we are deploying the application we get an error saying:

Uploading: 
file:///usr/local/ecc/maven-repo/snapshots//com/ourcomp/ecc/assemblies/ecc-installer/1.0.0-SNAPSHOT/ecc-installer-1.0.0-20080610.072418-3.pom
11K uploaded
[INFO] Retrieving previous metadata from internal.snapshots
[INFO] Uploading repository metadata for: 'artifact 
com.ourcomp.ecc.assemblies:ecc-installer'
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error installing artifact's metadata: Error while deploying metadata: 
Specified source file does not exist: 
/localdisk/users/continuum/.m2/repository/com/ourcomp/ecc/assemblies/ecc-installer/maven-metadata-internal.snapshots.xml

/usr/local/ecc/maven-repo/snapshots/com/ourcomp/ecc/assemblies/ecc-installer/maven-metadata.xml
 (Permission denied)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 20 seconds
[INFO] Finished at: Tue Jun 10 00:26:34 PDT 2008
[INFO] Final Memory: 21M/48M
[INFO] ------------------------------------------------------------------------
Here's the <distributionManagement> section from our main pom.xml:

   <distributionManagement>
      
<downloadUrl>${project.url}/download.html</downloadUrl>
      <repository>
         <id>internal</id>
         <name>Main Artifact 
Repository</name>
         
<url>file:///usr/local/ecc/maven-repo/releases/</url>
      </repository>
      <snapshotRepository>
         
<id>internal.snapshots</id>
         
<url>file:///usr/local/ecc/maven-repo/snapshots/</url>
      </snapshotRepository>
   </distributionManagement>

The problem gets solved when I comment the snapshotsRepository above, but I 
think this change will put all the snapshot artifacts in the internal 
repository. 

Can somebody help, please ?




      

Reply via email to