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

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

Open
nathanagood opened this issue Nov 22, 2024 · 4 comments
Open

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

nathanagood opened this issue Nov 22, 2024 · 4 comments
Assignees
Labels

Comments

@nathanagood
Copy link

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
Copy link

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
Copy link
Author

nathanagood commented Nov 26, 2024

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?

@mpiggott
Copy link

mpiggott commented Dec 2, 2024

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?

The Eclipse compiler is publicly available - you can make use of that repository while compiling. We're also in the process of removing classes written with Groovy but I don't know yet when that will be completed

@ChriFo
Copy link

ChriFo commented Dec 15, 2024

Adding a profile containing the missing plugin repository to my pom.xml based on org.sonatype.nexus.plugins:nexus-plugins:3.75.1-01 works for me:

<!--
    Because fof missing dependencies on Maven Central for latest nexus-plugins
    see https://github.com/sonatype/nexus-public/issues/525
-->
<profiles>
    <profile>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <pluginRepositories>
            <pluginRepository>
                <id>groovy-plugins-release</id>
                <url>https://groovy.jfrog.io/artifactory/plugins-release</url>
            </pluginRepository>
        </pluginRepositories>
    </profile>
</profiles>

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

No branches or pull requests

4 participants