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

mvn clean install fails #2465

Closed
sszuev opened this issue May 12, 2024 · 8 comments · Fixed by #2476
Closed

mvn clean install fails #2465

sszuev opened this issue May 12, 2024 · 8 comments · Fixed by #2476
Assignees
Labels

Comments

@sszuev
Copy link
Contributor

sszuev commented May 12, 2024

Version

5.0.0

Question

Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /opt/mvn/apache-maven-3.8.6
Java version: 17.0.6, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-17.0.6
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.5.0-28-generic", arch: "amd64", family: "unix"

last commit: cf3a140

INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  16:45 min
[INFO] Finished at: 2024-05-12T19:22:41+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project jena-integration-tests: Could not resolve dependencies for project org.apache.jena:jena-integration-tests:jar:5.1.0-SNAPSHOT: org.apache.jena:jena-cmds:jar:tests:5.1.0-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots 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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :jena-integration-tests

image

@kinow
Copy link
Member

kinow commented May 12, 2024

(just passing by to say I will try to reduce the total time for tests int he UI -- hadn't noticed it was taking so long)

@afs
Copy link
Member

afs commented May 13, 2024

The UI tests don't take that long on my machine.

The time is the whole step which includes downloading node and yarn which can be a bit variable in time taken.

@afs
Copy link
Member

afs commented May 13, 2024

This happened elsewhere in the last few days for me as well. This maven issue should go away - somewhere a fetch of jena-cmds failed which get recorded in the local maven repo and it does not try again.

You can delete the local maven repo entry for jena-cmds:5.1.0-SNAPSHOT. Or manually delete "target/" and build locally with "install".

@sszuev
Copy link
Contributor Author

sszuev commented May 13, 2024

This happened elsewhere in the last few days for me as well. This maven issue should go away - somewhere a fetch of jena-cmds failed which get recorded in the local maven repo and it does not try again.

You can delete the local maven repo entry for jena-cmds:5.1.0-SNAPSHOT. Or manually delete "target/" and build locally with "install".

this was a clean installation on a machine where Jena had not been installed before. Also, I observe the same behavior in windows machine, in WSL and without WSL.

@afs
Copy link
Member

afs commented May 13, 2024

Then it may be an upstream issue which we have very little control over.

There is a deployment build of Jena running at the moment (Monday, 07:52 UTC) which should reproduce all the snapshot artifacts.

https://ci-builds.apache.org/job/Jena/

(Your maven 3.8.6 is little behind but I doubt that is related)

I've successfully built Jena locally today.

@afs
Copy link
Member

afs commented May 16, 2024

@sszuev has the problem resolved itself?

@sszuev
Copy link
Contributor Author

sszuev commented May 16, 2024

unfortunately the error is reproduced every time

deleting .m2/repository/org/apache/jena/jena-cmds/5.1.0-SNAPSHOT/ & jena/jena-cmds/target/ (and -U) did not help.

When running mvn clean install -pl -jena-integration-tests the error occurred in a different place:

[INFO] Apache Jena - Benchmarks JMH ....................... SUCCESS [  2.970 s]
[INFO] Apache Jena - Distribution ......................... FAILURE [  0.005 s]
[INFO] Apache Jena - Security Permissions ................. SKIPPED
[INFO] Apache Jena - Extras ............................... SKIPPED
[INFO] Apache Jena - Extras - Query Builder ............... SKIPPED
[INFO] Apache Jena - CommonsRDF for Jena .................. SKIPPED
[INFO] Apache Jena - Extras - Service Enhancer ............ SKIPPED
[INFO] Apache Jena - Code Examples ........................ SKIPPED
[INFO] Apache Jena - BOM .................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11:56 min
[INFO] Finished at: 2024-05-16T20:11:44+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project apache-jena: Could not resolve dependencies for project org.apache.jena:apache-jena:pom:5.1.0-SNAPSHOT: org.apache.jena:jena-cmds:jar:sources:5.1.0-SNAPSHOT was not found in https://repository.apache.org/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of apache.snapshots 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
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :apache-jena

but mvn clean install -pl -jena-integration-tests, -apache-jena - success

@afs
Copy link
Member

afs commented May 16, 2024

Found the problem - jena-integration-test has an unnecessary dependency on jena-cmds tests. A recent POM change stopped producing that unnecessary artifact.

The apache-jena "Distribution" is from the same POM change - no sources are being produced which isn't right.

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

Successfully merging a pull request may close this issue.

3 participants