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

building zenoh-java using mvn #15

Open
rinelb opened this issue Oct 10, 2023 · 0 comments
Open

building zenoh-java using mvn #15

rinelb opened this issue Oct 10, 2023 · 0 comments

Comments

@rinelb
Copy link

rinelb commented Oct 10, 2023

I been trying to build

make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i386-pc-mingw32

mvn -h
Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
Maven home: C:\Users\RinelBhownath\apache-maven-3.8.7\apache-maven-3.8.7-bin\apache-maven-3.8.7
Java version: 17.0.7, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-17
Default locale: en_ZA, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

D:\work\zenoh\java\zenoh\zenoh-java>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Zenoh parent-pom                                                   [pom]
[INFO] Zenoh                                                              [jar]
[INFO] Zenoh examples                                                     [jar]
[INFO] Zenoh-net examples                                                 [jar]
[INFO] Zenoh main pom                                                     [pom]
[INFO] Zenoh examples pom                                                 [pom]
[INFO]
[INFO] --------------------< org.eclipse.zenoh:parent-pom >--------------------
[INFO] Building Zenoh parent-pom 0.4.2-M1                                 [1/6]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent-pom ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ parent-pom ---
[INFO] Installing D:\work\zenoh\java\zenoh\zenoh-java\parent-pom\pom.xml to C:\Users\RinelBhownath\.m2\repository\org\eclipse\zenoh\parent-pom\0.4.2-M1\parent-pom-0.4.2-M1.pom
[INFO]
[INFO] ----------------------< org.eclipse.zenoh:zenoh >-----------------------
[INFO] Building Zenoh 0.4.2-M1                                            [2/6]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ zenoh ---
[INFO]
[INFO] --- exec-maven-plugin:1.6.0:exec (make-natives) @ zenoh ---
process_begin: CreateProcess(NULL, uname -s, ...) failed.
process_begin: CreateProcess(NULL, uname -m, ...) failed.
process_begin: CreateProcess(NULL, rm -fr target/zenoh-c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [target/zenoh-c/Makefile] Error 2
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2)
    at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
    at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:804)
    at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:751)
    at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:313)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:298)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Zenoh main pom 0.4.2-M1:
[INFO]
[INFO] Zenoh parent-pom ................................... SUCCESS [  0.207 s]
[INFO] Zenoh .............................................. FAILURE [  0.539 s]
[INFO] Zenoh examples ..................................... SKIPPED
[INFO] Zenoh-net examples ................................. SKIPPED
[INFO] Zenoh main pom ..................................... SKIPPED
[INFO] Zenoh examples pom ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.858 s
[INFO] Finished at: 2023-10-10T10:21:58+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (make-natives) on project zenoh: Command execution failed.: Process exited with an error: 2 (Exit value: 2) -> [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 :zenoh
D:\work\zenoh\java\zenoh\zenoh-java>mvn -Prelease clean install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.eclipse.zenoh:zenoh:jar:0.4.2-M1
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 205, column 19
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] Inspecting build with total of 6 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 4 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Zenoh parent-pom                                                   [pom]
[INFO] Zenoh                                                              [jar]
[INFO] Zenoh examples                                                     [jar]
[INFO] Zenoh-net examples                                                 [jar]
[INFO] Zenoh main pom                                                     [pom]
[INFO] Zenoh examples pom                                                 [pom]
[INFO]
[INFO] --------------------< org.eclipse.zenoh:parent-pom >--------------------
[INFO] Building Zenoh parent-pom 0.4.2-M1                                 [1/6]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent-pom ---
[INFO]
[INFO] --- maven-gpg-plugin:1.6:sign (sign-artifacts) @ parent-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Zenoh main pom 0.4.2-M1:
[INFO]
[INFO] Zenoh parent-pom ................................... FAILURE [  0.180 s]
[INFO] Zenoh .............................................. SKIPPED
[INFO] Zenoh examples ..................................... SKIPPED
[INFO] Zenoh-net examples ................................. SKIPPED
[INFO] Zenoh main pom ..................................... SKIPPED
[INFO] Zenoh examples pom ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.849 s
[INFO] Finished at: 2023-10-10T14:38:41+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.6:sign (sign-artifacts) on project parent-pom: Unable to execute gpg command: Error while executing process. Cannot run program "gpg.exe": CreateProcess error=2, The system cannot find the file specified -> [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

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

No branches or pull requests

1 participant