NixOS / mvn2nix-maven-plugin

Generate project-info.json for use with nix's Maven repository generation functions
MIT License
31 stars 21 forks source link

Plugin doesn't construct the right path for `test-jar` #29

Open knl opened 2 years ago

knl commented 2 years ago

When I try to create repository-info.json for hadoop 2.10.2, I get this error:

[INFO] Apache Hadoop Azure Data Lake support .............. SUCCESS [  0.000 s]
[INFO] Apache Hadoop Tools Dist ........................... SUCCESS [  0.001 s]
[INFO] Apache Hadoop Tools ................................ SUCCESS [  0.001 s]
[INFO] Apache Hadoop Distribution ......................... SUCCESS [  0.010 s]
[INFO] Apache Hadoop Cloud Storage ........................ SUCCESS [  0.000 s]
[INFO] Apache Hadoop Cloud Storage Project ................ FAILURE [  0.728 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.075 s
[INFO] Finished at: 2022-09-27T15:34:20+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.nixos.mvn2nix:mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) on project hadoop-cloud-storage-project: Downloading SHA-1 for org.apache.hadoop:hadoop-hdfs:test-jar:2.7.0: resource missing at https://repo.maven.apache.org/maven2/org/apache/hadoop/hadoop-hdfs/2.7.0/hadoop-hdfs-2.7.0.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 :hadoop-cloud-storage-project

The path that is being requested is wrong. There is no hadoop-hdfs-2.7.0.test-jar.sha1, but there is hadoop-hdfs-2.7.0-tests.jar.sha1.

The dependency in hadoop-project/pom.xml is this one:

      <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-hdfs</artifactId>
        <version>${project.version}</version>
        <type>test-jar</type>
      </dependency>