Dnia 29-08-2010 o godz. 9:30 Yossi Shaul napisał(a):
> Hi, maven does know how download artifacts from repositories that
require authentication.
> It just does it on the second request (non-preemptive).
> Make sure that the repository ids (for both download and upload
repositories) matches
> the is of the servers in the settings.xml.
I tried:
<servers>
<server>
<id>repo-id</id>
<username>user</username>
<password>password</password>
(...)
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>repo-id</id>
<name>repo-id</name>
<url>...</url>
(...)
Maven shows:
[INFO] snapshot my-group-id:my-artifact-id:1.2.0-SNAPSHOT checking for
updates from repo-id
Downloading:
http://url/.../1.2.0-SNAPSHOT/my-artifact-id-1.2.0-SNAPSHOT.jar
[INFO] Unable to find resource
'my-group-id:my-artifact-id:1.2.0-SNAPSHOT' in repository repo-id (url)
In Artifactory access.og I have:
2010-08-30 17:55:01,700 [DENIED DOWNLOAD]
repo-id:url/.../1.2.0-SNAPSHOT/my-artifact-1.2.0-SNAPSHOT.jar for
anonymous/192.168.0.10.
There is no a second try.
Is it required to define deploy repository to make read access work with
password?
I tried with repo-id being virtual repo name as well a local repository
name. With no success. Do you have any suggestion what more can I do to
get know why it doesn't work?
> Currently the anonymous access is global and there's no way to activate
authentication
> for selected repositories.
I see, if Maven should ask twice (the second one with user/password)
there a global switch is enough.
Regards
Marcin
> 2010/8/27 Marcin Zajączkowski <[email protected]>
>
> > Hi,
> >
> >
> > Regarding situation mentioned in [1] I was able to download artifact
> > from password protected repository only after "Allow Anonymous Access"
> > is unchecked. But it's a global switch. When anonymous access in general
> > is granted, nevertheless that repository is not accessible for anonymous
> > users (they don't have permissions) Maven interprets reply as "not
> > found" (not as "use password from config").
> >
> > Is it possible to switch only *selected* repositories into
> > "authenticated-user-only-access"?
> > (or maybe I can force Maven to use password for selected repos at a
> > client side?)
> >
> >
> > [1] -
> >
> > http://forums.jfrog.org/Working-with-password-protected-repositories-in-read-mode-with-Maven-client-td5457453.html
> >
> >
> > Regards
> > Marcin
> >
> >
> >
> >
> > --
> > Ad...
> >
> >
> >
> >
> > ------------------------------------------------------------------------------
> > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> > Be part of this innovative community and reach millions of netbook users
> > worldwide. Take advantage of special opportunities to increase revenue and
> > speed time-to-market. Join now, and jumpstart your future.
> > http://p.sf.net/sfu/intel-atom-d2d
> > _______________________________________________
> > Artifactory-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
--
To poniżej to reklama i nie ma konieczności jej czytania.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users