./compile.pl fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

./compile.pl fails

Gurman Grewal

Hi All

On Debian using ONMS-18, when I try to perform ./compile.pl, I get this error:

[ERROR] Failed to execute goal org.codehaus.mojo:keytool-maven-plugin:1.5:generateKeyPair (default) on project jasper-extensions: Failed executing '/bin/sh -c cd /opt/onms/integrations/opennms-jasper-extensions/target && /usr/lib/jvm/java-8-oracle/jre/../bin/keytool -genkeypair -keystore /opt/onms/integrations/opennms-jasper-extensions/target/test-keystore.jks -storepass '*****' -alias localhost -dname 'CN=localhost, OU=Measurement API Wire Mock, O=The OpenNMS Group, C=US' -validity 2 -keysize 2048' - exitcode 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:keytool-maven-plugin:1.5:generateKeyPair (default) on project jasper-extensions: Failed executing '/bin/sh -c cd /opt/onms/integrations/opennms-jasper-extensions/target && /usr/lib/jvm/java-8-oracle/jre/../bin/keytool -genkeypair -keystore /opt/onms/integrations/opennms-jasper-extensions/target/test-keystore.jks -storepass '*****' -alias localhost -dname 'CN=localhost, OU=Measurement API Wire Mock, O=The OpenNMS Group, C=US' -validity 2 -keysize 2048' - exitcode 1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed executing '/bin/sh -c cd /opt/onms/integrations/opennms-jasper-extensions/target && /usr/lib/jvm/java-8-oracle/jre/../bin/keytool -genkeypair -keystore /opt/onms/integrations/opennms-jasper-extensions/target/test-keystore.jks -storepass '*****' -alias localhost -dname 'CN=localhost, OU=Measurement API Wire Mock, O=The OpenNMS Group, C=US' -validity 2 -keysize 2048' - exitcode 1
    at org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo.consumeResult(AbstractKeyToolRequestMojo.java:196)
    at org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo.execute(AbstractKeyToolRequestMojo.java:130)
    at org.codehaus.mojo.keytool.GenerateKeyPairMojo.execute(GenerateKeyPairMojo.java:160)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more

Can anyone advice a solution?


Thank you
Gurman Grewal


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ./compile.pl fails

David Hustace

> On Jul 13, 2016, at 2:56 PM, Gurman Grewal <[hidden email]> wrote:
>
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed executing '/bin/sh -c cd /opt/onms/integrations/opennms-jasper-extensions/target && /usr/lib/jvm/java-8-oracle/jre/../bin/keytool -genkeypair -keystore /opt/onms/integrations/opennms-jasper-extensions/target/test-keystore.jks -storepass '*****' -alias localhost -dname 'CN=localhost, OU=Measurement API Wire Mock, O=The OpenNMS Group, C=US' -validity 2 -keysize 2048' - exitcode 1
>     at org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo.consumeResult(AbstractKeyToolRequestMojo.java:196)
>     at org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo.execute(AbstractKeyToolRequestMojo.java:130)
>     at org.codehaus.mojo.keytool.GenerateKeyPairMojo.execute(GenerateKeyPairMojo.java:160)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
>     ... 20 more
>
> Can anyone advice a solution?
Is this your first attempt at compiling OpenNMS?  It seems not based on the paths visible in the Mojo exception.  If not, what’s different about this compile than previous compiles.  If so, did you try executing those commands, manually?


:David



David Hustace
The OpenNMS Group, Inc.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

signature.asc (858 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: ./compile.pl fails

Gurman Grewal
In reply to this post by Gurman Grewal

Hi


Actually I found the solution to my problem in the one of the commits (https://github.com/OpenNMS/opennms/commit/bfed6c51052a9123789ad4fe2328b604e77bac9a


Thank you

Gurman Grewal



From: Gurman Grewal
Sent: Wednesday, July 13, 2016 2:56:55 PM
To: [hidden email]
Subject: ./compile.pl fails
 

Hi All

On Debian using ONMS-18, when I try to perform ./compile.pl, I get this error:

[ERROR] Failed to execute goal org.codehaus.mojo:keytool-maven-plugin:1.5:generateKeyPair (default) on project jasper-extensions: Failed executing '/bin/sh -c cd /opt/onms/integrations/opennms-jasper-extensions/target && /usr/lib/jvm/java-8-oracle/jre/../bin/keytool -genkeypair -keystore /opt/onms/integrations/opennms-jasper-extensions/target/test-keystore.jks -storepass '*****' -alias localhost -dname 'CN=localhost, OU=Measurement API Wire Mock, O=The OpenNMS Group, C=US' -validity 2 -keysize 2048' - exitcode 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:keytool-maven-plugin:1.5:generateKeyPair (default) on project jasper-extensions: Failed executing '/bin/sh -c cd /opt/onms/integrations/opennms-jasper-extensions/target && /usr/lib/jvm/java-8-oracle/jre/../bin/keytool -genkeypair -keystore /opt/onms/integrations/opennms-jasper-extensions/target/test-keystore.jks -storepass '*****' -alias localhost -dname 'CN=localhost, OU=Measurement API Wire Mock, O=The OpenNMS Group, C=US' -validity 2 -keysize 2048' - exitcode 1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed executing '/bin/sh -c cd /opt/onms/integrations/opennms-jasper-extensions/target && /usr/lib/jvm/java-8-oracle/jre/../bin/keytool -genkeypair -keystore /opt/onms/integrations/opennms-jasper-extensions/target/test-keystore.jks -storepass '*****' -alias localhost -dname 'CN=localhost, OU=Measurement API Wire Mock, O=The OpenNMS Group, C=US' -validity 2 -keysize 2048' - exitcode 1
    at org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo.consumeResult(AbstractKeyToolRequestMojo.java:196)
    at org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo.execute(AbstractKeyToolRequestMojo.java:130)
    at org.codehaus.mojo.keytool.GenerateKeyPairMojo.execute(GenerateKeyPairMojo.java:160)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more

Can anyone advice a solution?


Thank you
Gurman Grewal


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

OutlookEmoji-1457380651409_image002.png.png (9K) Download Attachment
Loading...