sonatype / nexus-public

Sonatype Nexus Repository Open-source codebase mirror
https://www.sonatype.com/products/repository-oss-download
Eclipse Public License 1.0
1.96k stars 579 forks source link

Dependencies in 3.74.0-05 not in public Maven repos #525

Open nathanagood opened 4 days ago

nathanagood commented 4 days ago

I am trying to build using the command ./mvn clean install -Dpublic as mentioned in the documentation here: https://github.com/sonatype/nexus-public?tab=readme-ov-file#building-from-source on tag release-3.74.0-05. I get the following error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.949 s
[INFO] Finished at: 2024-11-22T11:56:56-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project nexus-testsupport: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile failed: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.groovy:groovy-eclipse-batch:jar:3.0.13-02 (absent): org.codehaus.groovy:groovy-eclipse-batch:jar:3.0.13-02 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]

The project that fails is nexus-testsupport:

[INFO] org.sonatype.nexus:nexus-testsupport ............... FAILURE [  0.198 s]

I would expect the Maven project to build successfully.

mpiggott commented 15 hours ago

Unfortunately recent release of the Groovy Eclipse Compiler aren't published to central. You can find documentation about the project: https://github.com/groovy/groovy-eclipse/wiki/groovy-eclipse-maven-plugin

nathanagood commented 14 hours ago

I understand. Perhaps someone could document the last known tag that works with -Dpublic so we don't have to find it by trial and error?