Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • 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
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

"Could not resolve dependencies" [noob]

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to package a web application with Maven. The build fails abysmally like this:

dspace@dstest:/opt/DSpace/dspace$ mvn package -U
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] DSpace Addon Modules                                               [pom]
[INFO] DSpace Kernel :: Additions and Local Customizations                [jar]
[INFO] DSpace Server Webapp:: Local Customizations                        [war]
[INFO] DSpace Assembly and Configuration                                  [pom]
[INFO]
[INFO] -------------------------< org.dspace:modules >-------------------------
[INFO] Building DSpace Addon Modules 7.0-beta4-SNAPSHOT                   [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-java) @ modules ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-versions) @ modules ---
[INFO]
[INFO] --- xml-maven-plugin:1.0.2:validate (validate-ALL-xml-and-xsl) @ modules ---
[INFO]
[INFO] --------------------< org.dspace.modules:additions >--------------------
[INFO] Building DSpace Kernel :: Additions and Local Customizations 7.0-beta4-SNAPSHOT [2/4]
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/maven-metadata.xml
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/maven-metadata.xml
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT.pom
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT.pom
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT.pom
[WARNING] The POM for org.dspace:dspace-api:jar:7.0-beta4-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.dspace:dspace-api:jar:tests:7.0-beta4-SNAPSHOT is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-api-lang/maven-metadata.xml
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api-lang/maven-metadata.xml
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-api-lang/maven-metadata.xml
Downloaded from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-api-lang/maven-metadata.xml (1.4 kB at 8.4 kB/s)
Downloaded from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api-lang/maven-metadata.xml (366 B at 578 B/s)
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/maven-metadata.xml
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/maven-metadata.xml
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/maven-metadata.xml
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/dspace-services-7.0-beta4-SNAPSHOT.pom
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/dspace-services-7.0-beta4-SNAPSHOT.pom
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/dspace-services-7.0-beta4-SNAPSHOT.pom
[WARNING] The POM for org.dspace:dspace-services:jar:7.0-beta4-SNAPSHOT is missing, no dependency information available
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT-tests.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/dspace-services-7.0-beta4-SNAPSHOT.jar
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT.jar
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT-tests.jar
Downloading from maven-snapshots: https://oss.sonatype.org/content/repositories/snapshots/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/dspace-services-7.0-beta4-SNAPSHOT.jar
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT.jar
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-api/7.0-beta4-SNAPSHOT/dspace-api-7.0-beta4-SNAPSHOT-tests.jar
Downloading from handle.net: https://handle.net/maven/org/dspace/dspace-services/7.0-beta4-SNAPSHOT/dspace-services-7.0-beta4-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for DSpace Assembly and Configuration 7.0-beta4-SNAPSHOT:
[INFO]
[INFO] DSpace Addon Modules ............................... SUCCESS [  3.281 s]
[INFO] DSpace Kernel :: Additions and Local Customizations  FAILURE [  7.469 s]
[INFO] DSpace Server Webapp:: Local Customizations ........ SKIPPED
[INFO] DSpace Assembly and Configuration .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.395 s
[INFO] Finished at: 2020-09-29T14:18:41+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project additions: Could not resolve dependencies for project org.dspace.modules:additions:jar:7.0-beta4-SNAPSHOT: The following artifacts co              uld not be resolved: org.dspace:dspace-api:jar:7.0-beta4-SNAPSHOT, org.dspace:dspace-api:jar:tests:7.0-beta4-SNAPSHOT, org.dspace:dspace-services:jar:7.0-beta4-SNAPSHOT: Could               not find artifact org.dspace:dspace-api:jar:7.0-beta4-SNAPSHOT in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :additions

Is it a problem with the authentication on the repository? Apologies, but my understanding of Maven is very limited. My .m2/settings.xml file is empty, and I do not know what to put in it.

I am not a programmer: I just need to get the WAR and deploy it on Tomcat.

Can someone help me with some spoonfeeding?

Thanks!
 
Saloon Keeper
Posts: 12419
269
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

Simply put, none of your configured repositories contain the 7.0-beta4 version of the various DSpace modules that you require.

How do you figure there's a 7.0-beta4 version at all? Can't you use version 7.0-beta3 or even better, version 6.3?
 
Diego Schiavon
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you basely insinuating that I might have wasted precious hours of my life trying to compile the wrong version?

Well, it seems you are right. I downloaded 6.3 and only had to adjust the Java version. And now:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:42 min
[INFO] Finished at: 2020-09-29T21:00:13+01:00
 
Thanks!
 
Marshal
Posts: 25946
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Diego Schiavon wrote:Are you basely insinuating that I might have wasted precious hours of my life trying to compile the wrong version?



Clearly you're not a programmer! Wasting precious hours wrestling with some picky technical detail is like a way of life for programmers.
 
reply
    Bookmark Topic Watch Topic
  • New Topic