I tried to use this plugin but it doesn´t changed the admin credentials 
used to deploy artifacts (I configured the credentials in Manage Jenkins -> 
Configure System), see the line of erros bellow:

[DEBUG] Using connector WagonRepositoryConnector with priority 0 for 
http://170.20.105.25:8080/artifactory/repo as admin
Downloading: 
http://170.20.105.25:8080/artifactory/repo/org/codehaus/mojo/aspectj-maven-plugin/1.2/aspectj-maven-plugin-1.2.pom

.
.
.

Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: 
Could not transfer artifact org.codehaus.mojo:aspectj-maven-plugin:pom:1.2 
from/to repositorio-fucapi (http://170.20.105.25:8080/artifactory/repo): 
Not authorized, ReasonPhrase:Unauthorized.

The same error as before, if I set Anonymous user with deploy permissions, 
I can but it is not the goal.



Em domingo, 8 de julho de 2012 16h25min33s UTC-4, Yoav Landman escreveu:
>
> Or better yet, use the Jenkins Artifactory Plugin [1], so you don't need 
> to rely on external maven settings at all, but instead have resolution and 
> deployment definitions as part of the plugin configuration.
>
> Yoav
>
> [1] https://wiki.jenkins-ci.org/display/JENKINS/Artifactory+Plugin
>
> On Friday, July 6, 2012 8:49:23 PM UTC+3, Noam Y. Tenne wrote:
>>
>> Hi, 
>>
>> What version of Maven do you use?
>> Try running within the same environment "*mvn help:effective-settings*" 
>> and make sure that the configuration you expect actually applies.
>>
>> -Noam
>>
>> On Thursday, July 5, 2012 9:27:25 PM UTC+3, José Ricardo wrote:
>>>
>>> Hello,
>>>
>>> I´m using Artifactory 2.4.0 and Jenkins 1.438 and I have maven project 
>>> with several modules. Need to deploy all modules(jars and one resulting 
>>> war) 
>>> into remote Artifactory server by Jenkins.
>>>
>>> My user admin for artifactory was with default password (password) and 
>>> all builds that I tried to execute on jenkins works fine.  So when I 
>>> resolved to change de Artifactory admin password and update my settings 
>>> with the new credentials of admin, I had the following error on jenkins 
>>> build log:
>>>
>>> Failed to execute goal 
>>> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on 
>>> project pilotoExemplo: Failed to deploy artifacts: 
>>> Could not transfer artifact 
>>> br.com.pilotoExemplo:pilotoExemplo:pom:2.1.0.11-20120705.160113-1 from/to 
>>> snapshot 
>>> (http://170.20.105.25:8080/artifactory/libs-snapshot-local): Failed to 
>>> transfer file: 
>>>
>>> http://170.20.105.25:8080/artifactory/libs-snapshot-local/br/com/pilotoExemplo/pilotoExemplo/2.1.0.11-SNAPSHOT/pilotoExemplo-2.1.0.11-20120705.160113-1.pom.
>>>  
>>>
>>> Return code is: 401 
>>>
>>> Anyone already saw this problem before? I don´t found anything like this 
>>> search on the google.
>>>
>>> Here is my settings.xml:
>>>
>>> <proxies>
>>>       <proxy>
>>>        <active>false</active>
>>>        <protocol>http</protocol>
>>>     <host>172.10.0.145</host>
>>>     <port>3120</port>
>>>     </proxy>
>>>   </proxies>
>>>  
>>>   <mirrors>
>>>     <mirror>
>>>       <mirrorOf>*</mirrorOf>
>>>       <name>repositorio</name>
>>>       <url>http://170.20.105.25:8080/artifactory/repo</url>
>>>       <id>repositorio</id>
>>>     </mirror>
>>>   </mirrors>
>>>  
>>>   <profiles>
>>>     <profile>
>>>       <repositories>
>>>         <repository>
>>>           <snapshots>
>>>             <enabled>true</enabled>
>>>           </snapshots>
>>>           <id>central</id>
>>>           <name>libs-release</name>
>>>           <url>http://170.20.105.25:8080/artifactory/libs-release/</url>
>>>         </repository>
>>>         <repository>
>>>           <snapshots />
>>>           <id>snapshots</id>
>>>           <name>libs-snapshot</name>
>>>           <url>http://170.20.105.25:8080/artifactory/libs-snapshot/
>>> </url>
>>>         </repository>
>>>       </repositories>
>>>       <pluginRepositories>
>>>         <pluginRepository>
>>>           <snapshots>
>>>             <enabled>false</enabled>
>>>           </snapshots>
>>>           <id>central</id>
>>>           <name>plugins-release</name>
>>>           <url>http://170.20.105.25:8080/artifactory/plugins-release
>>> </url>
>>>         </pluginRepository>
>>>       </pluginRepositories>
>>>       <id>artifactory</id>
>>>       <distributionManagement>
>>>     <repository>
>>>         <id>release</id>
>>>         <url>http://170.20.105.25:8080/artifactory/libs-release-local/
>>> </url>
>>>     </repository>
>>>     <snapshotRepository>
>>>         <id>snapshot</id>
>>>         <url>http://170.20.105.25:8080/artifactory/libs-snapshot-local/
>>> </url>
>>>     </snapshotRepository>
>>>       </distributionManagement>
>>>     </profile>
>>>   </profiles>
>>>  
>>>   <activeProfiles>
>>>     <activeProfile>artifactory</activeProfile>
>>>   </activeProfiles>
>>>  
>>>   <servers>
>>>     <server>
>>>       <id>snapshot</id>
>>>        <username>admin</username>
>>>       <password>newPassword</password>
>>>     </server>
>>>  
>>>     <server>
>>>       <id>release</id>
>>>       <username>admin</username>
>>>       <password>newPassword</password>
>>>     </server>
>>>  
>>>     <server>
>>>       <id>repositorio</id>
>>>        <username>admin</username>
>>>       <password>newPassword</password>
>>>     </server>
>>>  
>>>   </servers>
>>>  
>>>
>>>
>>>

Reply via email to