Greetings The project really need to use the library xws-security: 3.0. But when added to dependecies it gives out

Could not find javax.xml.crypto:xmldsig:1.0. Searched in the following locations: file:/C:/Users/s.slavin/.m2/repository/javax/xml/crypto/xmldsig/1.0/xmldsig-1.0.pom file:/C:/Users/s.slavin/.m2/repository/javax/xml/crypto/xmldsig/1.0/xmldsig-1.0.jar http://192.168.1.8:8081/nexus/content/groups/public/javax/xml/crypto/xmldsig/1.0/xmldsig-1.0.pom http://192.168.1.8:8081/nexus/content/groups/public/javax/xml/crypto/xmldsig/1.0/xmldsig-1.0.jar Required by: com.company.project:pp-project:1.0-SNAPSHOT > com.sun.xml.wss:xws-security:3.0 

How to fix it? UPD. I found where the American is fixing it using maven, if that, here's the link https://stackoverflow.com/questions/31740919/how-do-you-replace-the-class-of-a-maven-dependency . Now the question is more how to implement it with gradle. Maybe someone knows a link with a fixed link?

UPD Let's go the other way. An underlined word like it is not used anywhere, otherwise there would be problems with the classes, but there are none. The problem is only in the gradle, which does not allow the project to fail. How can I exclude this? tried to exclude, but something somehow did not work.

enter image description here

  • Try to download the original library and install it in a local repository. Source of - enzo
  • @enzo need to gradle itself downloaded from some repository. - exStas
  • It seems that your prehistoric artifact was lost from Maven Central, and for a long time. So this is luck that somewhere there is a link to the jarnik. But if you got the repository at you, it's up to you. Good luck searching. :) - enzo

2 answers 2

 // http://mvnrepository.com/artifact/com.sun.xml.wss/xws-security compile group: 'com.sun.xml.wss', name: 'xws-security', version: '3.0' 

Took from http://mvnrepository.com/artifact/com.sun.xml.wss/xws-security/3.0 Gradle tab

  • I took it from there. So it does not fit. - exStas

Everything turned out to be simple. In build.gradle we register:

 repositories { mavenCentral() maven { url 'https://svn.code.sf.net/p/springframework/svn/repos/repo-ext/' } } compile group: 'javax.xml.crypto', name: 'xmldsig', version: '1.0'