ok so you have a mirror of "remote-repos" only which doesn't include your
local snapshot or release repos.

Change the mirror settings to point to

http://myserver:8080/artifactory/<http://myserver:8080/artifactory/remote-repos>
repo

and make sure you add 2 more repos in settings.xml:

Also check these match the the repository settings on your pom.

 <repository>
                                        <snapshots>
                                                <enabled>false</enabled>
                                        </snapshots>
                                        <id>central</id>
                                        <name>libs-releases</name>
                                        <url>http://myserver:port
/artifactory/libs-releases</url>
                                </repository>
                                <repository>
                                        <snapshots>

 <updatePolicy>daily</updatePolicy>
                                        </snapshots>
                                        <id>snapshots</id>
                                        <name>libs-snapshots</name>
                                        <url>http://myserver:port
/artifactory/libs-snapshots</url>
                                </repository>


Cheers,

Neil



On 23 August 2010 11:38, <[email protected]> wrote:

> I have changed by settings.xml based on the MavenSettings option in
> Artifactory
>
>
> <settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd"; xmlns="
> http://maven.apache.org/SETTINGS/1.0.0";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>   <mirrors>
>     <mirror>
>       <mirrorOf>central</mirrorOf>
>       <name>remote-repos</name>
>
>       <url>http://myserver:8080/artifactory/remote-repos</url>
>       <id>remote-repos</id>
>     </mirror>
>   </mirrors>
>   <profiles>
>     <profile>
>       <repositories>
>         <repository>
>           <snapshots>
>             <enabled>true</enabled>
>           </snapshots>
>       <releases>
>         <enabled>true</enabled>
>        </releases>
>           <id>fw-test</id>
>           <name>fw-test</name>
>           <url>http://myserver:8080/artifactory/fw-test</url>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>           <id>central</id>
>           <name>plugins-releases</name>
>           <url>http://myserver:8080/artifactory/plugins-releases</url>
>         </pluginRepository>
>         <pluginRepository>
>           <snapshots />
>           <id>snapshots</id>
>           <name>plugins-snapshots</name>
>           <url>http://myserver:8080/artifactory/plugins-snapshots</url>
>         </pluginRepository>
>       </pluginRepositories>
>       <id>artifactory</id>
>     </profile>
>   </profiles>
>
>   <activeProfiles>
>     <activeProfile>artifactory</activeProfile>
>   </activeProfiles>
> </settings>
>
>  which created the output I attached (by running mvn -X)
>
> I do have difficulties to understand
> a) does the virtual repository has to be the on in <repository>
> b) what has to be the values of <mirror> to mirror all remotes but not the
> locals
>
> The URL
> http://myserver:8080/artifactory/fw-test/de/test/company-pom/1.0/company-pom-1.0.pomfound
>  in the output is, as i said, valid and can be accessed via browser.
>
> Thanks for the help
>
>
>  -----Original Message-----
> From: Neil Tingley <[email protected]>
> To: artifactory-users <[email protected]>
> Sent: Mon, Aug 23, 2010 11:56 am
> Subject: Re: [Artifactory-users] Fwd: getting artifacts failed
>
>  Run
>
>  - mvn -X and post the results please.
>
>  and
>
>  - mvn help:effective:settings
>
>
>  Cheers,
>
> Neil
>
>
>
> On 23 August 2010 10:37, <[email protected]> wrote:
>
>>  > (currently I have nothing written in the project pom.xml)
>>   oh... nothing is a bit harsh ;-)
>>
>> I meant nothing concerning any repositories...
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>   
> ------------------------------------------------------------------------------
>
>
> This SF.net email is sponsored by
>
>
>
>
> Make an app they can't live without
>
>
> Enter the BlackBerry Developer Challenge
>
> http://p.sf.net/sfu/RIM-dev2dev
>
>   _______________________________________________
>
>
> Artifactory-users mailing list
>
> [email protected]
>
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to