First, I want to report that they asked the same question about the dependencies of grails plugins with classifiers , but they do not answer.
I am trying to add the jar "json-lib.jar" and its dependency with the BuildConfig.groovy file. This dependency has an element called because of this, I cannot load the dependency.
dependencies {runtime group:'net.sf.json-lib', name:'json-lib', classifier:'jdk15',version:'2.4'}
But that does not help.
I tried it too
`dependencies {runtime 'net.sf.json-lib: json-lib: 2.4: jdk15'}
This one doesn't help either
Even tried to create a pOM file maven and added a "json-lib.jar" dependency on the pom file, but get the same, but if you try to use the same dependency in my java maven project, it works fine
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<type>jar</type>
<classifier>jdk15</classifier>
<scope>compile</scope>
</dependency>
But that didn't help either.
( STS)
WARNINGS
[FAILED ] net.sf.json-lib
==== grailsHome: tried
C:\Users\Target\.grails\2.1.1\cached-installed-plugins/json-lib-2.4.jar
==== grailsHome: tried
C:\Users\Target\Software\Groovy -STS\Installed Directory\grails-2.1.1/plugins/json-lib-2.4.jar
==== grailsCentral: tried
http://grails.org/plugins/grails-json-lib/tags/RELEASE_2.4/grails-json-lib-2.4.jar
==== http://repo.grails.org/grails/core: tried
http://repo.grails.org/grails/core/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== localMavenResolver: tried
C:\Users\Target/.m2/repository/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== mavenCentral: tried
http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== ebrRelease: tried
http://repository.springsource.com/maven/bundles/release/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== ebrExternal: tried
http://repository.springsource.com/maven/bundles/external/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== http://download.java.net/maven/2/: tried
http://download.java.net/maven/2/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== localMavenResolver: tried
C:\Users\Target/.m2/repository/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: FAILED DOWNLOADS ::
:: ^ see resolution messages for details ^ ::
::::::::::::::::::::::::::::::::::::::::::::::
:: net.sf.json-lib
::::::::::::::::::::::::::::::::::::::::::::::
:: problems summary ::
:::: WARNINGS
[FAILED ] net.sf.json-lib
==== grailsHome: tried
C:\Users\Target\Software\Groovy -STS\Installed Directory\grails-2.1.1/lib/net.sf.json-lib/json-lib/jars/json-lib-2.4.jar
C:\Users\Target\Software\Groovy -STS\Installed Directory\grails-2.1.1/lib/net.sf.json-lib/json-lib/bundles/json-lib-2.4.jar
==== grailsHome: tried
C:\Users\Target\Software\Groovy -STS\Installed Directory\grails-2.1.1\src\libs/json-lib-2.4.jar
==== grailsHome: tried
C:\Users\Target\Software\Groovy -STS\Installed Directory\grails-2.1.1\dist/json-lib-2.4.jar
==== grailsHome: tried
C:\Users\Target\.grails\2.1.1\cached-installed-plugins/json-lib-2.4.jar
==== grailsHome: tried
C:\Users\Target\Software\Groovy -STS\Installed Directory\grails-2.1.1/plugins/json-lib-2.4.jar
==== grailsCentral: tried
http://grails.org/plugins/grails-json-lib/tags/RELEASE_2.4/grails-json-lib-2.4.jar
==== http://repo.grails.org/grails/core: tried
http://repo.grails.org/grails/core/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== localMavenResolver: tried
C:\Users\Target/.m2/repository/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== mavenCentral: tried
http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== ebrRelease: tried
http://repository.springsource.com/maven/bundles/release/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== ebrExternal: tried
http://repository.springsource.com/maven/bundles/external/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== http://download.java.net/maven/2/: tried
http://download.java.net/maven/2/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
==== localMavenResolver: tried
C:\Users\Target/.m2/repository/net/sf/json-lib/json-lib/2.4/json-lib-2.4.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: FAILED DOWNLOADS ::
:: ^ see resolution messages for details ^ ::
::::::::::::::::::::::::::::::::::::::::::::::
:: net.sf.json-lib
::::::::::::::::::::::::::::::::::::::::::::::
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- net.sf.json-lib:json-lib:2.4
.