• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Could not authenticate to server: rejected Basic challenge

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building MYProject 1.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (read-properties-file) @ MI-Lsvn ---
[INFO]
[INFO] --- maven-scm-plugin:1.8.1:checkout (update-source) @ MI-Lsvn ---
[INFO] Removing C:\Users\80929\.hudson\jobs\TEST_LSVN\workspace\buildme
[INFO] Executing: cmd.exe /X /C "svn --username 80929 --password ***** --no-auth-cache --non-interactive checkout -r HEAD http://........../CodeBase/ C:\Users\80929\.hudson\jobs\TEST_LSVN\workspace\buildme"
[INFO] Working directory: C:\Users\i80929\.hudson\jobs\TEST_LSVN\workspace
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E170001: PROPFIND of '/svn/lsvn/!svn/vcc/default': authorization failed: Could not authenticate to server: rejected Basic challenge (http://lsvn)

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

I had encountered above message while creating build from Jenkins featuring maven.

In maven i had used maven-scm-plugin plugins to checkout/update codebase. I came to know that although i had set correct username and password in plugins configuration, Jenkins User credential overwrites scm authentication provided on plugins configuration or Jenkins is not able to read credential define on maven-scm-plugins. Because if i put pom.xml file from outside .jenkins job directory and hit maven goal mvn scm:checkout or scm:update, it will succeed to do assign goal

Here below is scm plugins implementation in my pom.xml file
<!-- Plugins for source code management -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.8.1</version>
<configuration>
....
<username>...</username>
<password>${svn.password}</password>
......
</configuration>
<executions>
<execution>
<id>update-source</id>
<phase>prepare-package</phase>
<goals>
<goal>checkout</goal>
<goal>update</goal>
</goals>
</execution>
</executions>
</plugin>

Any suggestion there to solve this problem?


Another solution i got is run scm piror to build by defining repo url and credential on jenkins interface but my aim is to get it done from maven(pom.xml).

Help me!!!




 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!