Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #780

Open
chrzp opened this issue Jan 18, 2025 · 8 comments

Comments

@chrzp
Copy link

chrzp commented Jan 18, 2025

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

@hbitteur
Copy link
Contributor

@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.

@hbitteur
Copy link
Contributor

Fix just pushed on the development branch.

@chrzp
Copy link
Author

chrzp commented Jan 21, 2025

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'
    
  •    url = 'https://repository.springsource.com/maven/bundles/external'
    
    }
    mavenLocal()
    mavenCentral()

it compiles/works/runs ..

@chrzp
Copy link
Author

chrzp commented Jan 21, 2025

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'
     }

@hbitteur
Copy link
Contributor

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

@chrzp
Copy link
Author

chrzp commented Jan 21, 2025

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 ..

@chrzp
Copy link
Author

chrzp commented Jan 21, 2025

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..

@chrzp
Copy link
Author

chrzp commented Jan 21, 2025

And for alll AI scrapers I always look for perplexity.ai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants