You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jan Lisse <li...@neofonie.de> on 2007/06/13 13:06:04 UTC

Unable to download artifact from internal repository

Hi,

In my pom.xml i have configured an internal repository to be used by maven:

<repositories>
    <repository>
      <id>mycompany</id>
      <name>internal maven repository</name>
      <url>https://repo.mycompany.com/m2repo</url>
    </repository>
  </repositories>

and in my settings.xml i have configured the server information:

<servers>
<server>
      <id>neofonie</id>
      <username>user</username>
      <password>password</password>
    </server>
</servers>

When building a project website with mvn site:site, maven tries to 
download a custom jar
with skin files. This jar resides on the internal repository. But maven 
somehow fails in downloading
the jar file. From the debug log:

Downloading: 
https://repo.mycompany.com/m2repo/com/mycompany/mycompany-maven-skin/1.0
/mycompany-maven-skin-1.0.jar
[DEBUG] Unable to get resource 
'com.mycompany:mycompany-maven-skin:jar:1.0' from re
pository mycompany (https://repo.mycompany.com/m2repo)

Manually downloading the jar file from the url works fine however. 
Running maven with -X or -e
options didn't show more information about what is going wrong. I would 
be glad for any help!

Regards,
Jan


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


Re: Unable to download artifact from internal repository

Posted by Jan Lisse <li...@neofonie.de>.
Hi Maria,

no they do match, i just forgot to change the id in both locations of my 
posting ;)
But i found the cause of my problem to be a SSLHandshakeException, because
the server sends a selfsigned certificate. After inserting the server 
certificate in the jdk's keystore
everything works fine now! It was trial and error because in the maven 
stacktrace the
root cause with the SSLHandshakeException was cut off...||

regards,
jan

Maria Odea Ching schrieb:
> Hi,
>
> Your repository id and server id does not match so maven couldn't get 
> the username and password for the internal repository :)
>
> -Deng
>
> Jan Lisse wrote:
>> Hi,
>>
>> In my pom.xml i have configured an internal repository to be used by 
>> maven:
>>
>> <repositories>
>>    <repository>
>>      <id>mycompany</id>
>>      <name>internal maven repository</name>
>>      <url>https://repo.mycompany.com/m2repo</url>
>>    </repository>
>>  </repositories>
>>
>> and in my settings.xml i have configured the server information:
>>
>> <servers>
>> <server>
>>      <id>neofonie</id>
>>      <username>user</username>
>>      <password>password</password>
>>    </server>
>> </servers>
>>
>> When building a project website with mvn site:site, maven tries to 
>> download a custom jar
>> with skin files. This jar resides on the internal repository. But 
>> maven somehow fails in downloading
>> the jar file. From the debug log:
>>
>> Downloading: 
>> https://repo.mycompany.com/m2repo/com/mycompany/mycompany-maven-skin/1.0
>> /mycompany-maven-skin-1.0.jar
>> [DEBUG] Unable to get resource 
>> 'com.mycompany:mycompany-maven-skin:jar:1.0' from re
>> pository mycompany (https://repo.mycompany.com/m2repo)
>>
>> Manually downloading the jar file from the url works fine however. 
>> Running maven with -X or -e
>> options didn't show more information about what is going wrong. I 
>> would be glad for any help!
>>
>> Regards,
>> Jan
>>
>>
>> ---------------------------------------------------------------------
>> 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
>


-- 
--------------------------------
Jan Lisse
F&E

neofonie GmbH
Robert-Koch-Platz 4
10115 Berlin
fon: +49.30 24627 533
fax: +49.30 24627 120

Handelsregister
Berlin-Charlottenburg: HRB 67460

Geschaeftsfuehrung
Helmut Hoffer von Ankershoffen
Nurhan Yildirim
--------------------------------



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


Re: Unable to download artifact from internal repository

Posted by Maria Odea Ching <oc...@exist.com>.
Hi,

Your repository id and server id does not match so maven couldn't get 
the username and password for the internal repository :)

-Deng

Jan Lisse wrote:
> Hi,
>
> In my pom.xml i have configured an internal repository to be used by 
> maven:
>
> <repositories>
>    <repository>
>      <id>mycompany</id>
>      <name>internal maven repository</name>
>      <url>https://repo.mycompany.com/m2repo</url>
>    </repository>
>  </repositories>
>
> and in my settings.xml i have configured the server information:
>
> <servers>
> <server>
>      <id>neofonie</id>
>      <username>user</username>
>      <password>password</password>
>    </server>
> </servers>
>
> When building a project website with mvn site:site, maven tries to 
> download a custom jar
> with skin files. This jar resides on the internal repository. But 
> maven somehow fails in downloading
> the jar file. From the debug log:
>
> Downloading: 
> https://repo.mycompany.com/m2repo/com/mycompany/mycompany-maven-skin/1.0
> /mycompany-maven-skin-1.0.jar
> [DEBUG] Unable to get resource 
> 'com.mycompany:mycompany-maven-skin:jar:1.0' from re
> pository mycompany (https://repo.mycompany.com/m2repo)
>
> Manually downloading the jar file from the url works fine however. 
> Running maven with -X or -e
> options didn't show more information about what is going wrong. I 
> would be glad for any help!
>
> Regards,
> Jan
>
>
> ---------------------------------------------------------------------
> 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