NixOS / mvn2nix-maven-plugin

Generate project-info.json for use with nix's Maven repository generation functions
https://github.com/fzakaria/mvn2nix
MIT License
31 stars 21 forks source link

Question: How to deal with Resource missing for a sh1 file (404) #22

Open doronbehar opened 4 years ago

doronbehar commented 4 years ago

I'm not experienced with maven at all, I'm just trying to package a project using maven for Nixpkgs. I ran:

mvn org.nixos.mvn2nix:mvn2nix-maven-plugin:mvn2nix

Inside that project's clone and I encountered this error:

[INFO] PDFsam ............................................. SUCCESS [  0.204 s]
[INFO] PDFsam i18n ........................................ SUCCESS [  0.006 s]
[INFO] PDFsam core ........................................ SUCCESS [  0.006 s]
[INFO] PDFsam JavaFx views ................................ SUCCESS [  0.007 s]
[INFO] PDFsam service ..................................... SUCCESS [  0.007 s]
[INFO] PDFsam merge module ................................ SUCCESS [  0.008 s]
[INFO] PDFsam simple split module ......................... SUCCESS [  0.008 s]
[INFO] PDFsam split by size module ........................ SUCCESS [  0.011 s]
[INFO] PDFsam split by bookmarks module ................... SUCCESS [  0.015 s]
[INFO] PDFsam alternate mix module ........................ SUCCESS [  0.006 s]
[INFO] PDFsam rotate module ............................... SUCCESS [  0.006 s]
[INFO] PDFsam extract module .............................. SUCCESS [  0.009 s]
[INFO] PDFsam desktop client application .................. SUCCESS [  0.009 s]
[INFO] PDFsam Basic Edition application ................... SUCCESS [  0.060 s]
[INFO] PDFsam docs ........................................ FAILURE [  2.962 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.760 s
[INFO] Finished at: 2020-03-28T20:14:15+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.nixos.mvn2nix:mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) on project pdfsam-docs: Downloading SHA-1 for org.sejda:sejda-model:test-jar:4.0.7: Resource missing at https://repo.maven.apache.org/maven2/org/sejda/sejda-model/4.0.7/sejda-model-4.0.7.test-jar.sha1 404 Not Found -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :pdfsam-docs

This is somewhat similar to https://github.com/NixOS/nixpkgs/issues/19741 ... Is there anything I can do? Can I skip that 'project''s inclusion in project-info.json? I'm not sure I'm using the right terms but I'm refering to the failing "project" - pdfsam-docs.

bezmuth commented 2 years ago

I think I have the same issue here:

[INFO] XWiki Platform - Wiki - User - Script .............. SUCCESS [  0.010 s]
[INFO] XWiki Platform - Wiki - UI - Parent POM ............ SUCCESS [  0.007 s]
[INFO] XWiki Platform - Wiki - UI - Common ................ SUCCESS [  0.007 s]
[INFO] XWiki Platform - Wiki - UI - Main Wiki ............. SUCCESS [  0.007 s]
[INFO] XWiki Platform - Wiki - UI - Wiki .................. SUCCESS [  0.006 s]
[INFO] XWiki Platform - Wiki - Workspaces Migrator ........ SUCCESS [  0.006 s]
[INFO] XWiki Platform - WYSIWYG Editor - Wiki Pages ....... SUCCESS [  0.007 s]
[INFO] XWiki Platform - XML - Script Service .............. SUCCESS [  0.006 s]
[INFO] XWiki Platform - ZIP Explorer ...................... FAILURE [01:35 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:55 min
[INFO] Finished at: 2022-08-09T12:49:05+01:00
[INFO] ------------------------------------------------------------------------
[INFO] 460 goals, 460 executed
[INFO] 
[INFO] A build scan was not published as you have not authenticated with server 'ge.xwiki.org'.
[ERROR] Failed to execute goal org.nixos.mvn2nix:mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) on project xwiki-platform-zipexplorer: Downloading SHA-1 for org.xwiki.commons:xwiki-commons-extension-api:test-jar:13.10.8: resource missing at https://repo.maven.apache.org/maven2/org/xwiki/commons/xwiki-commons-extension-api/13.10.8/xwiki-commons-extension-api-13.10.8.test-jar.sha1, status: 404 Not Found -> [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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :xwiki-platform-zipexplorer
--------------------------------------------------------
bezmuth commented 2 years ago

After a bit more investigation it looks like the last dependency always fails for the same reason. Removing ZIP Explorer from the dependencies causes XML - script service to fail, this behavior continues when removing other dependencies from the project pom.xml file.

bastiion commented 1 year ago

Same problem with a lot of repositories. any news on that or possible fixes?