Closed kumarniti4 closed 8 months ago
Also, is this project not available on maven repo: If I create a new maven project and add this to the pom.xml
<dependency>
<groupId>com.sap.olingo</groupId>
<artifactId>odata-jpa-processor</artifactId>
<version>2.0.2</version>
</dependency>
It is not able to download, the error:
[INFO] Scanning for projects...
[INFO]
[INFO] -----------------< com.general.nitin:olingov4-spring >------------------
[INFO] Building olingov4-spring 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.sap.olingo:odata-jpa-processor:jar:2.0.2 is missing, no dependency information available
[WARNING] The POM for com.sap.olingo:odata-jpa-spring-support:jar:2.0.2 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.600 s
[INFO] Finished at: 2024-02-01T10:08:44+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project olingov4-spring: Could not resolve dependencies for project com.general.nitin:olingov4-spring:jar:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.sap.olingo:odata-jpa-processor:jar:2.0.2 (absent), com.sap.olingo:odata-jpa-spring-support:jar:2.0.2 (absent): com.sap.olingo:odata-jpa-processor:jar:2.0.2 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [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
With lots of difficulty, I was able to get it to work. However, I still don't understand why there isn't a simple library present in the MVN Repo that one can just add to the POM and start working.
Following the Spring Quick Start guide: https://github.com/SAP/olingo-jpa-processor-v4/blob/main/jpa-tutorial/QuickStart/QuickStart.adoc
and getting this error