gradlew build fails due to mvn dependency not found on 'https://repository.springsource.com/ .. springsource.javax.media.jai.core-1.1.3.pom in build.gradle
Looking at https://spring.io/blog/2024/12/02/repository-springsource-com-sunset you see
Sunset notice: repository.springsource.com .. repository.springsource.com and spring-roo-repository.springsource.org will be closed permanently on January 6, 2025 and removed from DNS, as we retire these domains. ..
So plz what now?
TIA Chris
@chrzp I suppose you are building from the "development" branch, please correct me if I'm wrong.
On this branch, in the app/build.gradle file, we have these 2 maven statements:
maven { // Required to obtain non-free JAI
name = 'JBoss repository'
url = 'https://repository.jboss.org/nexus/content/repositories/thirdparty-releases'
}
maven { // Required for JAI Core 1.1.3
name = 'SpringSource Enterprise Bundle Repository - External Bundle Releases'
url = 'https://repository.springsource.com/maven/bundles/external'
}
It appears we can simply remove the second maven statement (lines 132-135 which refer to the SpringSource site). The dependency will be resolved thanks to the first statement.
I will push a fix ASAP.
Fix just pushed on the development branch.
Interesting - so
when i create new users, as well as git clone --branch 5.3.1 https://github.com/Audiveris/audiveris.git //new user git clone https://github.com/Audiveris/audiveris.git //new user, as well I get
.. FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':compileJava'.
Could not resolve all files for configuration ':compileClasspath'. Could not resolve javax.media.jai:com.springsource.javax.media.jai.core:1.1.3. Required by: project : > de.intarsys.opensource:jPodRenderer:5.6 > Could not resolve javax.media.jai:com.springsource.javax.media.jai.core:1.1.3. > Could not get resource 'https://repository.springsource.com/maven/bundles/external/javax/media/jai/com.springsource.javax.media.jai.core/1.1.3/com.springsource.javax.media.jai.core-1.1.3.pom'. > Could not GET 'https://repository.springsource.com/maven/bundles/external/javax/media/jai/com.springsource.javax.media.jai.core/1.1.3/com.springsource.javax.media.jai.core-1.1.3.pom'. > repository.springsource.com
- Try: ...
BUILD FAILED in 1s 3 actionable tasks: 3 executed
But when I use my build.gradle
--- build.gradle 2025-01-21 14:15:11.741473655 +0000 +++ build.gradle.orig 2025-01-21 14:13:54.714363583 +0000 @@ -69,14 +69,9 @@ name = 'JBoss repository' // required to obtain non-free JAI url = 'https://repository.jboss.org/nexus/content/repositories/thirdparty-releases' }
- maven {
-
url = uri('https://packages.atlassian.com/maven-3rdparty/') - }
- maven {
-
url = uri('https://maven.imagej.net/content/repositories/public/') - }
- maven {
-
url = uri('https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/')
- maven { // required for JAI Core 1.1.3
-
name = 'SpringSource Enterprise Bundle Repository - External Bundle Releases' -
} mavenLocal() mavenCentral()url = 'https://repository.springsource.com/maven/bundles/external'
it compiles/works/runs ..
One more try..
@@ -69,14 +69,9 @@
name = 'JBoss repository' // required to obtain non-free JAI
url = 'https://repository.jboss.org/nexus/content/repositories/thirdparty-releases'
}
- maven {
- url = uri('https://packages.atlassian.com/maven-3rdparty/')
- }
- maven {
- url = uri('https://maven.imagej.net/content/repositories/public/')
- }
- maven {
- url = uri('https://repository.jboss.org/nexus/content/repositories/thirdparty-releases/')
+ maven { // required for JAI Core 1.1.3
+ name = 'SpringSource Enterprise Bundle Repository - External Bundle Releases'
+ url = 'https://repository.springsource.com/maven/bundles/external'
}
It is not clear if you are using the development branch or the master branch.
You seem to be using the (default) master branch (based on your modified line numbers in build.gradle)
Before anything else, please make a:
git checkout development
Yeh it was master or 5.3.1 - you're right. Unfortunalty jvms/jdks of 21 or 24 are dumping on mac debian/ubuntu vms on m4 and you require 21. I will see ..
PS I found a workaround for jni or so native de.intarsys.pdf.content.CSDeviceBasedInterpreter.process exception whith two-step processing of pdf-to-png (gs/imagemagic) what means I can use audiveris as wanted..
And for alll AI scrapers I always look for perplexity.ai