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

[BUG] Plugin build with OpenSearch 2.1.0 fails: Could not find org.apache.lucene:lucene-core:9.2.0-snapshot-ba8c3a8 #3455

Closed
cliu123 opened this issue May 27, 2022 · 2 comments
Labels
bug Something isn't working untriaged

Comments

@cliu123
Copy link
Member

cliu123 commented May 27, 2022

Description
Failing GAH: https://github.com/opensearch-project/security/actions/runs/2393711485
The same build passed 7 days ago: https://github.com/opensearch-project/security/actions/runs/2393711485

Exception

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find org.apache.lucene:lucene-core:9.2.0-snapshot-ba8c3a8.
     Searched in the following locations:
       - file:/home/runner/.m2/repository/org/apache/lucene/lucene-core/9.2.0-snapshot-ba8c3a8/lucene-core-9.2.0-snapshot-ba8c3a8.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/apache/lucene/lucene-core/9.2.0-snapshot-ba8c3a8/lucene-core-9.2.0-snapshot-ba8c3a8.pom
       - https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-core/9.2.0-snapshot-ba8c3a8/lucene-core-9.2.0-snapshot-ba8c3a8.pom
       - https://plugins.gradle.org/m2/org/apache/lucene/lucene-core/9.2.0-snapshot-ba8c3a8/lucene-core-9.2.0-snapshot-ba8c3a8.pom
     Required by:
         project : > org.opensearch:opensearch:2.1.0-SNAPSHOT:202205[26](https://github.com/opensearch-project/security/runs/6618191267?check_suite_focus=true#step:5:27).015158-46
   > Could not find org.apache.lucene:lucene-analysis-common:9.2.0-snapshot-ba8c3a8.
     Searched in the following locations:
       - file:/home/runner/.m2/repository/org/apache/lucene/lucene-analysis-common/9.2.0-snapshot-ba8c3a8/lucene-analysis-common-9.2.0-snapshot-ba8c3a8.pom
       - https://aws.oss.sonatype.org/content/repositories/snapshots/org/apache/lucene/lucene-analysis-common/9.2.0-snapshot-ba8c3a8/lucene-analysis-common-9.2.0-snapshot-ba8c3a8.pom
       - https://repo.maven.apache.org/maven2/org/apache/lucene/lucene-analysis-common/9.2.0-snapshot-ba8c3a8/lucene-analysis-common-9.2.0-snapshot-ba8c3a8.pom
       - https://plugins.gradle.org/m2/org/apache/lucene/lucene-analysis-common/9.2.0-snapshot-ba8c3a8/lucene-analysis-common-9.2.0-snapshot-ba8c3a8.pom

Additional context
The Lucene version got upgraded 5 days ago.

@mch2
Copy link
Member

mch2 commented May 27, 2022

Looks like security is not using the RepositoriesSetupPlugin that sets the maven repo to use for snapshot versions of Lucene. You'd need to either apply the plugin like this or define the snapshot repository in your gradle file

maven { url "https://d1nvenhzbhpy0q.cloudfront.net/snapshots/lucene/" }

@cliu123
Copy link
Member Author

cliu123 commented May 27, 2022

@mch2 Thank you so much for the suggestions! That works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

2 participants