Compile version 23.0.1


#1

Hi, I downloaded the sources of opennms … I’m following the developer guide but the compilation is not successful. Is this the right place to ask for help?
Thank you very much
Gian Piero


#2

Maybe this will help: https://wiki.opennms.org/wiki/Installation:Source


#3

Yes! I’m following this guide. But compile.pl gives me errors …


#4

Hmm, did you also follow the steps with the dependencies (for example: jicmp and jicmp6)? And if so, are there any clues in the error messages of the compile script?


#5

mm I’m trying to understand …
Yes I followed all the steps (at least I think)
I launch ./compile.pl compile - debug --log-file log.txt without modifying any of the files I downloaded with git and I have these errors that seem to be related to the license parsing.
thank you very much

[DEBUG] URLResourceLoader: Exception when looking for ‘AGPL-LICENSE.regexp.txt’ at ‘’

java.net.MalformedURLException: no protocol: AGPL-LICENSE.regexp.txt

at java.net.URL.<init> (URL.java:593)

at java.net.URL.<init> (URL.java:490)

at java.net.URL.<init> (URL.java:439)

at org.codehaus.plexus.resource.loader.URLResourceLoader.getResource (URLResourceLoader.java:71)

at org.apache.maven.plugin.checkstyle.resource.LicenseResourceManager.getResource (LicenseResourceManager.java:75)

at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsFile (DefaultResourceManager.java:91)

at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.getOverridingProperties (DefaultCheckstyleExecutor.java:564)

at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.getConfiguration (DefaultCheckstyleExecutor.java:379)

at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.executeCheckstyle (DefaultCheckstyleExecutor.java:217)

at org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:538)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)

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:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)

at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)

at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)

at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

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)

[DEBUG] URLResourceLoader: Exception when looking for 'AGPL-LICENSE.regexp.tx

ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (check-license) on project opennms: Failed during checkstyle execution: Failed during checkstyle configuration: unable to parse configuration stream: Property ${checkstyle.header.file} has not been set -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (check-license) on project opennms: Failed during checkstyle execution

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)

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:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)

at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)

at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)

at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

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 during checkstyle execution

at org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:547)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)

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:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)

at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)

at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)

at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

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.checkstyle.exec.CheckstyleExecutorException: Failed during checkstyle configuration

at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.getConfiguration (DefaultCheckstyleExecutor.java:449)

at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.executeCheckstyle (DefaultCheckstyleExecutor.java:217)

at org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:538)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)

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:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)

at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)

at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)

at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

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: com.puppycrawl.tools.checkstyle.api.CheckstyleException: unable to parse configuration stream

at com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration (ConfigurationLoader.java:239)

at com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration (ConfigurationLoader.java:181)

at com.puppycrawl.tools.checkstyle.ConfigurationLoader.loadConfiguration (ConfigurationLoader.java:162)

at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.getConfiguration (DefaultCheckstyleExecutor.java:380)

at org.apache.maven.plugin.checkstyle.exec.DefaultCheckstyleExecutor.executeCheckstyle (DefaultCheckstyleExecutor.java:217)

at org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.execute (CheckstyleViolationCheckMojo.java:538)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)

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:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)

at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)

at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)

at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)

at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)

at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)

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)

#6

Hmm, that looks strange… Which branch are you trying to build, and what os, java(maven)-version are you running?


#7

Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00)
Maven home: /home/gian/opennms/opennms_23.0.1/maven
Java version: 1.8.0_191, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: it_IT, platform encoding: UTF-8
OS name: “linux”, version: “4.15.0-20-generic”, arch: “amd64”, family: “unix”
linux mint-cinnamon

i downloaded opennms with this command
git clone -b “opennms-23.0.1-1” https://github.com/OpenNMS/opennms.git


#8

I tried it myself now and it compiles.
Could you try the following command?
./compile.pl -DskipTests=true


#9

Now it works ( it compiles) Thanks a lot.


#10

actually now in launching the script ./assemble.pl -Dopennms.home = / opt / opennms I have a problem on the makensis program … do you have any idea? thanks a lot

INFO] Reactor Summary:
[INFO]
[INFO] OpenNMS Installation Utilities … SUCCESS [ 7.908 s]
[INFO] OpenNMS Remote Poller … FAILURE [ 0.076 s]
[INFO] OpenNMS Assemblies … SKIPPED
[INFO] OpenNMS HTTP Remoting Backend … SKIPPED
[INFO] OpenNMS Remote Poller (One Jar) … SKIPPED
[INFO] OpenNMS Remote Poller (Standalone) … SKIPPED
[INFO] OpenNMS Base Assembly … SKIPPED
[INFO] OpenNMS Minion … SKIPPED
[INFO] OpenNMS Sentinel … SKIPPED
[INFO] OpenNMS Version Information … SKIPPED
[INFO] OpenNMS Web Application (Full) … SKIPPED
[INFO] OpenNMS Schema Definitions … SKIPPED
[INFO] OpenNMS :: Documentation … SKIPPED
[INFO] OpenNMS :: Documentation :: Guide Install … SKIPPED
[INFO] OpenNMS :: Documentation :: Guide Administrator … SKIPPED
[INFO] OpenNMS :: Documentation :: Guide Development … SKIPPED
[INFO] OpenNMS :: Documentation :: Releasenotes … SKIPPED
[INFO] OpenNMS :: Documentation :: All Guides … SKIPPED
[INFO] OpenNMS Full Assembly … SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.796 s
[INFO] Finished at: 2019-01-18T10:44:50+01:00
[INFO] Final Memory: 53M/273M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:nsis-maven-plugin:1.0-alpha-1:make (default) on project opennms-remote-poller-windows: Unable to execute makensis: Cannot run program “makensis” (in directory “/home/gian/opennms/opennms_23.0.1/opennms-assemblies/remote-poller-nsis”): error=2, No such file or directory -> [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 <goals> -rf :opennms-remote-poller-windows
[ERROR] child exited with value 1


#11

Did you try -DskipTests=true again?


#12

now it works … but I forgot what I did … :-)))) I took guides of older versions…I installed other packages…etc. The only thing that I have not been able to do is install opennms in a directory different from the one where I compile it . I had many path errors…
But next week I’ll redo everything in order and I’ll tell you
Thank you very much