Artifactory 2.0.6 repo1-cache does not retrieve artifacts

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Artifactory 2.0.6 repo1-cache does not retrieve artifacts

JasonSouthern
I just installed Artifactory and changed my Ant/Ivy build system to
invoke the Artifactory libs-releases repository when trying retrieve
dependencies. After executing the ivy:retrieve command in my Ant build
script, I can see directories in repo1-cache and maven-metadata.xml
files in these directories, but I don't see version folders or
artifacts. I checked all the artifactory logs and didn't see any
errors. I searched the mailing list on Nabble and didn't see anyone
with a similar error, so I'm now asking for help. I'm hoping this
isn't a n00b issue.

TIA,
Jason Southern

Here's the particulars:

I am accessing Artifactory anonymously from my build script. However,
after reading the Wiki I would assume that Artifactory would go out
and cache the dependencies from repo1. I also changed the repo1-cache
missed retrieval cache period to 30 seconds. Still not seeing any
artifacts in the repository.

My project has explicit dependencies declared in the project's Ivy
file. Here's the list of dependencies that I would have expected to
see cached in repo1-cache:
        <dependency org="commons-lang" name="commons-lang"
force="true" rev="[2.0,3.0["/>
        <dependency org="log4j" name="log4j" force="true" rev="1.2.+"/>
        <dependency org="junit" name="junit" force="true" rev="[4.0,5.0["/>

Here's a redacted copy of my Ivy settings file:

<ivysettings>
    <settings defaultResolver="default-builds"/>
    <property name="default.artifactory.ivy.pattern"
value="[organisation]/[module]/[revision]/[module]-[revision]-ivy.xml"
override="false"/>
    <property name="default.artifactory.artifact.pattern"
value="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
    <property name="ivy.local.default.root"
value="${ivy.default.ivy.user.dir}/local" override="false"/>
    <property name="ivy.local.default.ivy.pattern"
value="${default.artifactory.ivy.pattern}" override="false"/>
    <property name="ivy.local.default.artifact.pattern"
value="${default.artifactory.artifact.pattern}" override="false"/>
    <property name="artifactory.libs-releases.root.url"
value="<a href="http://HOSTNAME:PORT/artifactory/libs-releases/">http://HOSTNAME:PORT/artifactory/libs-releases/"/>

    <caches
        resolutionCacheDir="${ivy.default.ivy.user.dir}/temp"
        repositoryCacheDir="${ivy.default.ivy.user.dir}/cache"
        ivyPattern="${default.artifactory.ivy.pattern}"
        artifactPattern="${default.artifactory.artifact.pattern}"/>

    <resolvers>
        <filesystem name="local">
            <ivy
pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}"
/>
            <artifact
pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}"
/>
        </filesystem>

        <ibiblio name="artifactory.libs-releases" m2compatible="true"
root="${artifactory.libs-releases.root.url}"/>
        <ibiblio name="maven2" m2compatible="true"
root="http://repo1.maven.org/maven2/"/>
        <ibiblio name="jboss" m2compatible="true"
root="http://repository.jboss.com/maven2"/>
        <ibiblio name="java.net" m2compatible="true"
root="http://download.java.net/maven/2/"/>
        <ibiblio name="maven2-mirror" m2compatible="true"
root="http://mirrors.ibiblio.org/pub/mirrors/maven2/"/>

        <chain name="remote-repos" returnFirst="true">
            <resolver ref="artifactory.libs-releases"/>
            <resolver ref="maven2"/>
            <resolver ref="jboss"/>
            <resolver ref="java.net"/>
            <resolver ref="maven2-mirror"/>
        </chain>

        <chain name="snapshot-builds" returnFirst="true">
            <resolver ref="local"/>
            <resolver ref="remote-repos"/>
        </chain>

        <chain name="default-builds" returnFirst="true">
            <resolver ref="local"/>
            <resolver ref="remote-repos"/>
        </chain>
    </resolvers>
</ivysettings>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artifactory 2.0.6 repo1-cache does not retrieve artifacts

Yoav Landman
Administrator

Jason,

The "libs-releases" repository is a hosted repository, containing only locally deployed artifacts.
To get remote artifacts, you either access a remote repository URL directly (e.g. http://HOSTNAME:PORT/artifactory/repo1), or the URL of a virtual repository, wrapping both local and remote repositories (e.g. http://HOSTNAME:PORT/artifactory/remote-repos).
You can try the URL manually first, then with Ivy, e.g. http://HOSTNAME:PORT/artifactory/remote-repos/commons-lang/commons-lang/2.4/commons-lang-2.4.pom.

HTH,

Yoav

On Thu, Jul 30, 2009 at 8:56 PM, Jason Southern <[hidden email]> wrote:
I just installed Artifactory and changed my Ant/Ivy build system to
invoke the Artifactory libs-releases repository when trying retrieve
dependencies. After executing the ivy:retrieve command in my Ant build
script, I can see directories in repo1-cache and maven-metadata.xml
files in these directories, but I don't see version folders or
artifacts. I checked all the artifactory logs and didn't see any
errors. I searched the mailing list on Nabble and didn't see anyone
with a similar error, so I'm now asking for help. I'm hoping this
isn't a n00b issue.

TIA,
Jason Southern

Here's the particulars:

I am accessing Artifactory anonymously from my build script. However,
after reading the Wiki I would assume that Artifactory would go out
and cache the dependencies from repo1. I also changed the repo1-cache
missed retrieval cache period to 30 seconds. Still not seeing any
artifacts in the repository.

My project has explicit dependencies declared in the project's Ivy
file. Here's the list of dependencies that I would have expected to
see cached in repo1-cache:
       <dependency org="commons-lang" name="commons-lang"
force="true" rev="[2.0,3.0["/>
       <dependency org="log4j" name="log4j" force="true" rev="1.2.+"/>
       <dependency org="junit" name="junit" force="true" rev="[4.0,5.0["/>

Here's a redacted copy of my Ivy settings file:

<ivysettings>
   <settings defaultResolver="default-builds"/>
   <property name="default.artifactory.ivy.pattern"
value="[organisation]/[module]/[revision]/[module]-[revision]-ivy.xml"
override="false"/>
   <property name="default.artifactory.artifact.pattern"
value="[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"/>
   <property name="ivy.local.default.root"
value="${ivy.default.ivy.user.dir}/local" override="false"/>
   <property name="ivy.local.default.ivy.pattern"
value="${default.artifactory.ivy.pattern}" override="false"/>
   <property name="ivy.local.default.artifact.pattern"
value="${default.artifactory.artifact.pattern}" override="false"/>
   <property name="artifactory.libs-releases.root.url"
value="http://HOSTNAME:PORT/artifactory/libs-releases/"/>

   <caches
       resolutionCacheDir="${ivy.default.ivy.user.dir}/temp"
       repositoryCacheDir="${ivy.default.ivy.user.dir}/cache"
       ivyPattern="${default.artifactory.ivy.pattern}"
       artifactPattern="${default.artifactory.artifact.pattern}"/>

   <resolvers>
       <filesystem name="local">
           <ivy
pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}"
/>
           <artifact
pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}"
/>
       </filesystem>

       <ibiblio name="artifactory.libs-releases" m2compatible="true"
root="${artifactory.libs-releases.root.url}"/>
       <ibiblio name="maven2" m2compatible="true"
root="http://repo1.maven.org/maven2/"/>
       <ibiblio name="jboss" m2compatible="true"
root="http://repository.jboss.com/maven2"/>
       <ibiblio name="java.net" m2compatible="true"
root="http://download.java.net/maven/2/"/>
       <ibiblio name="maven2-mirror" m2compatible="true"
root="http://mirrors.ibiblio.org/pub/mirrors/maven2/"/>

       <chain name="remote-repos" returnFirst="true">
           <resolver ref="artifactory.libs-releases"/>
           <resolver ref="maven2"/>
           <resolver ref="jboss"/>
           <resolver ref="java.net"/>
           <resolver ref="maven2-mirror"/>
       </chain>

       <chain name="snapshot-builds" returnFirst="true">
           <resolver ref="local"/>
           <resolver ref="remote-repos"/>
       </chain>

       <chain name="default-builds" returnFirst="true">
           <resolver ref="local"/>
           <resolver ref="remote-repos"/>
       </chain>
   </resolvers>
</ivysettings>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artifactory 2.0.6 repo1-cache does not retrieve artifacts

JasonSouthern
Yoav,

Thanks for the quick reply. However, after reading your e-mail and the
user guide, I guess I'm a little confused. I'm speaking of
libs-releases, the virtual repository that is automatically configured
with Artifactory 2.0.6. It was my hope that I could make use of this
virtual repository in Ivy to not only get access to my local libraries
published in libs-releases-local but also take advantage of
Artifactory's caching of remote repositories via the virtual
repository remote-repos.

However, it doesn't seem to be that Artifactory is caching anything
from remote repositories. See the attached screenshot.

I looked through the Artifactory logs and I don't see any attempts by
Artifactory to retrieve actual JARs. I did try by reconfiguring my Ivy
settings to call <a href="http://HOST:PORT/artifactory/remote-repos/">http://HOST:PORT/artifactory/remote-repos/. I still
don't see Artifactory retrieving JARs.

Is there another setting I'm missing? Maybe I'm misinterpreting what I'm seeing.

Thanks,
Jason

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

repo-browser-ss.jpg (353K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Artifactory 2.0.6 repo1-cache does not retrieve artifacts

Yoav Landman
Administrator

Jason,

Somehow I thought you were referring to the 'libs-releases-local' repo, hence my answer - sorry for the confusion, and, yes - it should definitely work via the libs-releases v-repo.
Could you try requesting the virtual URL directly via a browser/wget/curl etc. and see if it works (http://HOSTNAME:PORT/
artifactory/libs-releases/commons-lang/commons-lang/2.4/commons-lang-2.4.pom)?

Yoav

On Mon, Aug 3, 2009 at 6:38 PM, Jason Southern <[hidden email]> wrote:
Yoav,

Thanks for the quick reply. However, after reading your e-mail and the
user guide, I guess I'm a little confused. I'm speaking of
libs-releases, the virtual repository that is automatically configured
with Artifactory 2.0.6. It was my hope that I could make use of this
virtual repository in Ivy to not only get access to my local libraries
published in libs-releases-local but also take advantage of
Artifactory's caching of remote repositories via the virtual
repository remote-repos.

However, it doesn't seem to be that Artifactory is caching anything
from remote repositories. See the attached screenshot.

I looked through the Artifactory logs and I don't see any attempts by
Artifactory to retrieve actual JARs. I did try by reconfiguring my Ivy
settings to call http://HOST:PORT/artifactory/remote-repos/. I still
don't see Artifactory retrieving JARs.

Is there another setting I'm missing? Maybe I'm misinterpreting what I'm seeing.

Thanks,
Jason

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Artifactory-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/artifactory-users
Loading...