You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2006/03/13 13:53:13 UTC

[solved] Re: [m2] and private/restricted artifacts

My private repo is hiden behind maven proxy (it works well from maven1).

I've solved the problem : my maven-proxy repository was disabled for 
<releases> due to a bad copy/paste.

Thanks.

Alexandre Poitras a écrit :
> If you want to hide your internal repository behind Maven-proxy, you
> should configure it in Maven-Proxy configurations files.
>
> Or, if you don't want to hide it, you will have to be sure Maven look
> in your internal repository first. Otherwise, it will found a pom file
> on iblibo repository and think it has resolved the dependency
> correctly. I don't know if you can restrict the search order, anyway
> the first solution is better because it's hide everything to the end
> users.
>
> On 3/13/06, Nicolas De Loof <ni...@capgemini.com> wrote:
>   
>> Hello,
>>
>> I'm using maven-proxy to store restricted artifacts (com.*, javax.*)
>> I'm trying to add dependencies on them, but download fails whatever I do
>>
>> For example I've added
>>
>> <dependency>
>>       <groupId>javax.resource</groupId>
>>       <artifactId>connector</artifactId>
>>       <version>1.0</version>
>> </dependency>
>>
>> I've also added :
>> <repository>
>>       <id>restricted</id>
>>       <url>http://sai1rennes:8099/repository</url> // My private repo
>> with maven-proxy
>> </repository>
>>
>> My private repo contains both
>> "javax/resource/connector/1.0/connector-1.0.jar" and
>> "javax.resources/jars/connector-1.0.jar" (it is used from maven1)
>>
>> When I run "mvn package" the pom is downloaded (from ibiblio) and the
>> jar is not found.
>> My maven-poxy log has no trace from any try to get this jar from private
>> repo.
>>
>> What did I miss ?
>>
>> Nico.
>>
>>
>> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>     
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>   

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.


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