Hey Tranquil,

If you are trying to deploy you need to make sure that you have a servers
tag in your settings.xml for credentials and that the id of the server on
the servers tag must match the one in the distribution management.

When reading its a similar process, you need to have a servers tag in your
settings.xml and that the id matches the id in the one in the repository tag
from which you want to read from.

Example servers tag:

<servers>
<server>
    <id>Commtouch</id>
    <username>"username with permissions"</username>
    <password>"the password"</password>
</server>
</servers>

Tomer



Tranquil wrote:
> 
> i'm not sure if its a bug or not.. but it confused me.
> 
> when clicking on one of the repositories in artifactory:
> 
>  http://old.nabble.com/file/p27196971/artifact2.png 
> 
> it shows the needed section in the pom file for this repo (right?)
> 
> <distributionManagement>
>     <repository>
>         <id>Commtouch</id>
>         <name>Commtouch-releases</name>
>         <url>http://ct-repo01:8081/artifactory/libs-releases-local</url>
>     </repository>
> </distributionManagement>
> 
> when actually it isn't correct (i got a 401 msg).
> 
> it's not correspond to the auto generated maven settings in the home page.
> <?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";>
>   <profiles>
>     <profile>
>       <repositories>
>         <repository>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>           <id>central</id>
>           <name>libs-releases</name>
>           <url>http://ct-repo01:8081/artifactory/libs-releases</url>
>         </repository>
>         <repository>
>           <snapshots />
>           <id>snapshots</id>
>           <name>libs-snapshots</name>
>           <url>http://ct-repo01:8081/artifactory/libs-snapshots</url>
>         </repository>
>       </repositories>
>       <pluginRepositories>
>         <pluginRepository>
>           <snapshots>
>             <enabled>false</enabled>
>           </snapshots>
>           <id>central</id>
>           <name>plugins-releases</name>
>           <url>http://ct-repo01:8081/artifactory/plugins-releases</url>
>         </pluginRepository>
>         <pluginRepository>
>           <snapshots />
>           <id>snapshots</id>
>           <name>plugins-snapshots</name>
>           <url>http://ct-repo01:8081/artifactory/plugins-snapshots</url>
>         </pluginRepository>
>       </pluginRepositories>
>       <id>artifactory</id>
>     </profile>
>   </profiles>
>   <activeProfiles>
>     <activeProfile>artifactory</activeProfile>
>   </activeProfiles>
> </settings>
> 
> 
> when i changed the pom to this, it worked: (after looking in old poms)
> 
> <distributionManagement>
>     <repository>
>       <id>ct-repo01</id>
>       <name>ct-repo01-releases</name>
>      
> <url>http://ct-repo01.commtouch.com:8081/artifactory/libs-releases-local</url>
>     </repository>
>     <snapshotRepository>
>       <id>ct-repo01</id>
>       <name>ct-repo01-snapshots</name>
>      
> <url>http://ct-repo01.commtouch.com:8081/artifactory/libs-snapshots-local</url>
>     </snapshotRepository>
>   </distributionManagement>
>   <repositories>
>     <repository>
>       <id>ct-repo01</id>
>       <name>ct-repo01</name>
>       <url>http://ct-repo01.commtouch.com:8081/artifactory/</url>
>       <releases>
>         <updatePolicy>daily</updatePolicy>
>         <checksumPolicy>warn</checksumPolicy>
>       </releases>
>       <snapshots>
>         <updatePolicy>daily</updatePolicy>
>         <checksumPolicy>warn</checksumPolicy>
>       </snapshots>
>     </repository>
>   </repositories>
>   <pluginRepositories>
>     <pluginRepository>
>       <id>ct-repo01</id>
>       <name>ct-repo01</name>
>       <url>http://ct-repo01.commtouch.com:8081/artifactory/</url>
>       <releases>
>         <updatePolicy>daily</updatePolicy>
>       </releases>
>       <snapshots>
>         <updatePolicy>daily</updatePolicy>
>       </snapshots>
>     </pluginRepository>
>   </pluginRepositories>
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/suggested-%3CdisterbutionManagment%3E-section-for-repo-in-artifactory-is-wrong-tp27196971p27197092.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to