maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Colin de Verdière <tdeverdi...@scort.com>
Subject Re: Mutliple Repositories inheritance
Date Tue, 27 Feb 2007 10:48:15 GMT
Hello,
can anyone help,
I don't understand how playing with multiple repositories particularly 
if i set a repository into a profile into the settings.xml.
Suppose i want to seach for release in this repository but still have 
access to the maven repo, how can i do :

 <repositories>
   <repository>
     <releases>
       <enabled>true</enabled>
     </releases>
     <id>SCORT-INTERNAL-REP-LIB</id>
     <name>Local Repository Lib</name>
     <url>http://localhost:8080/repositorylib</url>
     <layout>default</layout>
   </repository>
 </repositories>

Thanks,
Thomas

Thomas Colin de Verdière a écrit :
> Hello,
> Is it possible to use multiple repositories ?
> For example :
> "test3" is a module with "jar" packaging.
> It has the following dependencies :
>  <dependencies>
>    <dependency>
>      <groupId>commons-logging</groupId>
>      <artifactId>commons-logging</artifactId>
>      <version>1.0.3</version>
>    </dependency>
>    <dependency>
>      <groupId>junit</groupId>
>      <artifactId>junit</artifactId>
>      <version>3.8.1</version>
>      <scope>test</scope>
>    </dependency>
>    <dependency>
>        <groupId>com.scort.abstractsyntax</groupId>
>        <artifactId>scortabstractsyntax</artifactId>
>        <version>1.1.0</version>
>    </dependency>
>  </dependencies>
>
> So there are "commons-logging" and "scortabstractsyntax" needed for 
> compilation.
> And scortabstractsyntax is an artifact which is hosted on my internal 
> repository, it is on my machine.
> So i set the repositories element into the POM file :
>
>  <repositories>
>    <repository>
>      <id>SCORT-INTERNAL-REP-LIB</id>
>      <name>Local Repository Lib</name>
>      <url>http://localhost:8080/repositorylib</url>
>      <layout>default</layout>
>    </repository>
>  </repositories>
>
> When i execute the command : "mvn install", here is the log file :
>
> [INFO] Scanning for projects...
> [INFO] 
> ---------------------------------------------------------------------------- 
>
> [INFO] Building test3
> [INFO]    task-segment: [install]
> [INFO] 
> ---------------------------------------------------------------------------- 
>
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: 
> http://localhost:8080/repositorylib/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom

>
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: commons-logging:commons-logging
>
> Reason: Error getting POM for 'commons-logging:commons-logging' from 
> the repository: Error transferring file
>  commons-logging:commons-logging:pom:1.0.3
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  SCORT-INTERNAL-REP-LIB (http://localhost:8080/repositorylib)
>
>
>
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Mon Feb 26 18:59:33 CET 2007
> [INFO] Final Memory: 3M/6M
> [INFO] 
> ------------------------------------------------------------------------
>
>
> Now if i remove the <repositories> element and the scortabstractsyntax 
> dependency. It succeeds to download commons-logging.
> So why ??
>
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message