Your setting.xml file contains a mirror that directs all maven requests to
the remote-repos virtual repository.
I assume that this virtual repo doesn't contain the libs-releases-local
repository. Try to remove the mirror and see if it works. (If you still want
to use a mirror you can change it to point to the "global" virtual repo
which always contains all repositories:
http://ct-repo01.commtouch.com:8081/artifactory/remote-repos)

Yossi

On Tue, Jan 12, 2010 at 4:03 PM, Tranquil <[email protected]> wrote:

>
> i'm trying to run a build on hudson server, but maven fails when trying to
> retrieve an artifact from artifactory.
>
> here's the log:
>
> [r...@ct-repo01 DbUtil]# mvn test
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building DbUtil
> [INFO]    task-segment: [test]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory
> /var/lib/hudson/jobs/DbUtil/workspace/DbUtil/src/main/resources
> Downloading:
>
> http://ct-repo01.commtouch.com:8081/artifactory/remote-repos/com/microsoft/sqlserver/jdbc/sqljdbc/2.0/sqljdbc-2.0.pom
> [INFO] Unable to find resource
> 'com.microsoft.sqlserver.jdbc:sqljdbc:pom:2.0' in repository central
> (http://ct-repo01.commtouch.com:8081/artifactory/libs-releases)
> Downloading:
>
> http://ct-repo01.commtouch.com:8081/artifactory/remote-repos/com/microsoft/sqlserver/jdbc/sqljdbc/2.0/sqljdbc-2.0.pom
> [INFO] Unable to find resource
> 'com.microsoft.sqlserver.jdbc:sqljdbc:pom:2.0' in repository snapshots
> (http://ct-repo01.commtouch.com:8081/artifactory/libs-snapshots)
> Downloading:
>
> http://ct-repo01.commtouch.com:8081/artifactory/remote-repos/com/microsoft/sqlserver/jdbc/sqljdbc/2.0/sqljdbc-2.0.pom
> [INFO] Unable to find resource
> 'com.microsoft.sqlserver.jdbc:sqljdbc:pom:2.0' in repository ct-repo01
> (http://ct-repo01.commtouch.com:8081/artifactory/)
> Downloading:
>
> http://ct-repo01.commtouch.com:8081/artifactory/remote-repos/com/microsoft/sqlserver/jdbc/sqljdbc/2.0/sqljdbc-2.0.jar
> [INFO] Unable to find resource
> 'com.microsoft.sqlserver.jdbc:sqljdbc:jar:2.0' in repository central
> (http://ct-repo01.commtouch.com:8081/artifactory/libs-releases)
> Downloading:
>
> http://ct-repo01.commtouch.com:8081/artifactory/remote-repos/com/microsoft/sqlserver/jdbc/sqljdbc/2.0/sqljdbc-2.0.jar
> [INFO] Unable to find resource
> 'com.microsoft.sqlserver.jdbc:sqljdbc:jar:2.0' in repository snapshots
> (http://ct-repo01.commtouch.com:8081/artifactory/libs-snapshots)
> Downloading:
>
> http://ct-repo01.commtouch.com:8081/artifactory/remote-repos/com/microsoft/sqlserver/jdbc/sqljdbc/2.0/sqljdbc-2.0.jar
> [INFO] Unable to find resource
> 'com.microsoft.sqlserver.jdbc:sqljdbc:jar:2.0' in repository ct-repo01
> (http://ct-repo01.commtouch.com:8081/artifactory/)
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
>
> Missing:
> ----------
> 1) com.microsoft.sqlserver.jdbc:sqljdbc:jar:2.0
>
>  Try downloading the file manually from the project website.
>
>  Then, install it using the command:
>      mvn install:install-file -DgroupId=com.microsoft.sqlserver.jdbc
> -DartifactId=sqljdbc -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file
>
>  Alternatively, if you host your own repository you can deploy the file
> there:
>      mvn deploy:deploy-file -DgroupId=com.microsoft.sqlserver.jdbc
> -DartifactId=sqljdbc -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file
> -Durl=[url] -DrepositoryId=[id]
>
>  Path to dependency:
>        1) com.commtouch.sql:DbUtil:jar:0.0.3
>        2) com.microsoft.sqlserver.jdbc:sqljdbc:jar:2.0
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
>  com.commtouch.sql:DbUtil:jar:0.0.3
>
> from the specified remote repositories:
>  remote-repos
> (http://ct-repo01.commtouch.com:8081/artifactory/remote-repos)
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Jan 12 15:54:46 IST 2010
> [INFO] Final Memory: 11M/68M
> [INFO]
> ------------------------------------------------------------------------
> [r...@ct-repo01 DbUtil]#
>
> http://old.nabble.com/file/p27127993/artifact.png
> the artifact is inside artifactory...
> attached is the maven settings.xml :
> http://old.nabble.com/file/p27127993/settings.xml settings.xml
> --
> View this message in context:
> http://old.nabble.com/can%27t-retrieve-artifact-from-artifactory-in-hudson-ci-server-tp27127993p27127993.html
> Sent from the Artifactory-Users mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to