In Artifactory, there are two types of deployment which are sometimes
easy to confuse:
The first type is the deployment failure that you've faced in your
initial post -
When Maven requests an artifact that doesn't exist in your repository,
Artifactory (if configured) will fetch it for you from a remote
repository and "deploy" it to the respective cache. If the anonymous
user is given deploy permissions, it will be deployed by it, since Maven
initially performs requests without credentials (even if defined), and
will supply them only on demand.
The second type of deployment -
When a Maven project actually deploys an artifact to your repository. In
this case the credentials you have supplied will be used to perform the
deployment.
HTH,
Noam
newfield wrote:
Hi Noam,
Thank you for answer, but the question is - why the user counted as
anonymous if he have suppled credentials ?
I can configure permissions for anonymous user, but I would like know who
deploy an artifact.
Thank you in advance.
Michael.
Noam Tenne wrote:
Hi
At seems like your anonymous user doesn't have the needed deploy
permissions to retrieve remote artifacts.
You can check that in the UI permission configuration (via
Admin->Security->Permissions).
By default, the permission target "Any Remote" should be configured with
deploy permissions for anonymous.
If not, simply create a new permission target that includes all the
remote repositories (or use the existing one) and provide anonymous with
deploy permissions
Also covered in our wiki -
http://wiki.jfrog.org/confluence/display/RTF/Managing+Permissions
HTH,
Noam
newfield wrote:
Hi,
I've unable configure setting.xml that will be accepted by Artifactory
(2.1.1) as known user.
In log I've see :
2009-11-02 11:03:10,137 [DENIED DEPLOY]
repo1-cache:org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom for
anonymous/175.70.105.181.
and settings.xml looks like this (mostly generated by Artifactory):
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>file://d:\maven_repository</localRepository>
<servers>
<server>
<id>bmr008-01</id>
<username>Michael</username>
<password>{DESede}erYBTtl0dlc=</password>
</server>
</servers>
<mirrors>
<mirror>
<mirrorOf>*</mirrorOf>
<name>bmr008-01</name>
<url>http://bmr008-01:8080/artifactory/repo</url>
<id>bmr008-01</id>
</mirror>
</mirrors>
<profiles>
<profile>
<repositories>
<repository>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>bmr008-01</id>
<name>bmr008-01</name>
<url>http://bmr008-01:8080/artifactory/repo</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-releases</name>
<url>http://bmr008-01:8080/artifactory/libs-releases</url>
</repository>
<repository>
<snapshots />
<id>snapshots</id>
<name>libs-snapshots</name>
<url>http://bmr008-01:8080/artifactory/libs-snapshots</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>plugins-releases</name>
<url>http://bmr008-01:8080/artifactory/plugins-releases</url>
</pluginRepository>
<pluginRepository>
<snapshots />
<id>snapshots</id>
<name>plugins-snapshots</name>
<url>http://bmr008-01:8080/artifactory/plugins-snapshots</url>
</pluginRepository>
</pluginRepositories>
<id>artifactory</id>
</profile>
</profiles>
<activeProfiles>
<activeProfile>artifactory</activeProfile>
</activeProfiles>
</settings>
The question is - how I have to configure it ?
(I was able configure it for Artifactory 2.0.9 but not now)
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Artifactory-users mailing list
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users