Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

NullPointerException when running the generator on the openhab-distro repository #31

Open
nagisa opened this issue Feb 20, 2023 · 0 comments

Comments

@nagisa
Copy link

nagisa commented Feb 20, 2023

  1. Checkout github:openhab/openhab-distro/00e00fa5bf105aa554ab2cf44e7a8cebfcd046bb;
  2. Run mvn org.nixos.mvn2nix:mvn2nix-maven-plugin:mvn2nix -B

Observe mvn2nix fail with a NullPointerException.

Output
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] openHAB Distribution                                               [pom]
[INFO] openHAB Features                                                   [pom]
[INFO] openHAB Distro Feature                                         [feature]
[INFO] openHAB Distro Feature KAR                                         [kar]
[INFO] openHAB Add-ons                                                [feature]
[INFO] openHAB Distributions                                              [pom]
[INFO] openHAB Add-ons Aggregator                                         [kar]
[INFO] openHAB Demo                                                       [pom]
[INFO] openHAB Distribution                                    [karaf-assembly]
[INFO] openHAB Feature Verification                                       [pom]
[INFO] 
[INFO] -----------------------< org.openhab.distro:pom >-----------------------
[INFO] Building openHAB Distribution 4.0.0-SNAPSHOT                      [1/10]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ pom ---
[INFO] 
[INFO] ------------------< org.openhab.distro:pom-features >-------------------
[INFO] Building openHAB Features 4.0.0-SNAPSHOT                          [2/10]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ pom-features ---
[INFO] 
[INFO] ---------------------< org.openhab.distro:distro >----------------------
[INFO] Building openHAB Distro Feature 4.0.0-SNAPSHOT                    [3/10]
[INFO] ------------------------------[ feature ]-------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ distro ---
[INFO] 
[INFO] -------------------< org.openhab.distro:distro-kar >--------------------
[INFO] Building openHAB Distro Feature KAR 4.0.0-SNAPSHOT                [4/10]
[INFO] --------------------------------[ kar ]---------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ distro-kar ---
[INFO] 
[INFO] ---------------------< org.openhab.distro:addons >----------------------
[INFO] Building openHAB Add-ons 4.0.0-SNAPSHOT                           [5/10]
[INFO] ------------------------------[ feature ]-------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ addons ---
[INFO] 
[INFO] ----------------< org.openhab.distro:pom-distributions >----------------
[INFO] Building openHAB Distributions 4.0.0-SNAPSHOT                     [6/10]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ pom-distributions ---
[INFO] 
[INFO] -----------------< org.openhab.distro:openhab-addons >------------------
[INFO] Building openHAB Add-ons Aggregator 4.0.0-SNAPSHOT                [7/10]
[INFO] --------------------------------[ kar ]---------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ openhab-addons ---
[INFO] 
[INFO] ------------------< org.openhab.distro:openhab-demo >-------------------
[INFO] Building openHAB Demo 4.0.0-SNAPSHOT                              [8/10]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ openhab-demo ---
[INFO] 
[INFO] ---------------------< org.openhab.distro:openhab >---------------------
[INFO] Building openHAB Distribution 4.0.0-SNAPSHOT                      [9/10]
[INFO] ---------------------------[ karaf-assembly ]---------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ openhab ---
[INFO] 
[INFO] -----------------< org.openhab.distro:openhab-verify >------------------
[INFO] Building openHAB Feature Verification 4.0.0-SNAPSHOT             [10/10]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] --- mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) @ openhab-verify ---
[WARNING] The POM for org.openhab.core.features.karaf:org.openhab.core.features.karaf.openhab-tp:xml:features:4.0.0-20230219.162241-34 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for openHAB Distribution 4.0.0-SNAPSHOT:
[INFO] 
[INFO] openHAB Distribution ............................... SUCCESS [  0.112 s]
[INFO] openHAB Features ................................... SUCCESS [  0.003 s]
[INFO] openHAB Distro Feature ............................. SUCCESS [  0.035 s]
[INFO] openHAB Distro Feature KAR ......................... SUCCESS [  0.012 s]
[INFO] openHAB Add-ons .................................... SUCCESS [  0.002 s]
[INFO] openHAB Distributions .............................. SUCCESS [  0.002 s]
[INFO] openHAB Add-ons Aggregator ......................... SUCCESS [  0.002 s]
[INFO] openHAB Demo ....................................... SUCCESS [  0.003 s]
[INFO] openHAB Distribution ............................... SUCCESS [  0.004 s]
[INFO] openHAB Feature Verification ....................... FAILURE [ 39.629 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  40.894 s
[INFO] Finished at: 2023-02-20T19:43:06+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.nixos.mvn2nix:mvn2nix-maven-plugin:1.2.0:mvn2nix (default-cli) on project openhab-verify: Execution default-cli of goal org.nixos.mvn2nix:mvn2nix-maven-plugin:1.2.0:mvn2nix failed. NullPointerException -> [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/PluginExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :openhab-verify
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant