Re: Help needed building source on Foundation branches
"Roskens, Ronald" <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <B6663E208B2DA14DBB3C6FABB9207F78ABC27A82@biusmb3> |
1. I would target against either the develop or master branch. New stuff should always be against develop. 2. Just run "./compile.pl". If you are looking for packages, then use either makerpm.sh or makedeb.sh. Ron > -----Original Message----- > From: Jonathan Heard [mailto:[email protected]] > Sent: Wednesday, October 25, 2017 9:36 AM > To: General OpenNMS Discussion > Subject: [opennms-discuss] Help needed building source on Foundation > branches > > Hi All, > > I'm trying to submit a patch for > https://issues.opennms.org/browse/NMS-9492 which I originally attached to > the ticket but was then advised that I the docs I'd followed were outdated > and that I need to fork the project on GitHub and then make a pull request. > That's all fine! However it looks like I need to submit against a foundation > branch and none of those will build for me :-( > > I originally built the 20.0.1 branch as it matched my version. I've also built > 20.0.2. Ultimately I want to submit a patch which will appear in a new 20.x.x > version if possible, therefore I think I need to submit to either foundation- > 2016 or foundation-2017 (the latter isn't mentioned in the docs). > > So... > > 1) Can somebody please advise me firstly, which branch should I be using > please? > > Then: > > 2) Can anyone please help me get the code building from these branches. > I've completely cleared my .m2 cache and started from scratch on > foundation-2017 (or whatever is the correct branch) > > The build fails at > > [INFO] OpenNMS :: Core :: IPC :: Sink :: Camel Impl. ...... FAILURE [ > 0.033 s] > > The details are quoted below... I'm on Ubuntu 17.04 and have got librrd-dev , > postgresql-server-dev-9.6 and openjdk-8-jdk packages installed. I've also > compiled and installed jicmp... > > Looking at the errors below, and at > https://mvnrepository.com/artifact/org.opennms.core it looks to me like this > dependency genuinely does not exist. Therefore I don't know how this > successfully builds on Bamboo :-/ ?? > > Many Thanks in advance > > Jonathan > > > [ERROR] Failed to execute goal on project > org.opennms.core.ipc.sink.camel-impl: Could not resolve dependencies for > project > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.camel- > impl:bundle:19.0.0-SNAPSHOT: > Could not find artifact > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.common:jar:tests:19.0 > .0-SNAPSHOT > -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal on project org.opennms.core.ipc.sink.camel-impl: Could not resolve > dependencies for project > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.camel- > impl:bundle:19.0.0-SNAPSHOT: > Could not find artifact > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.common:jar:tests:19.0 > .0-SNAPSHOT > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDepen > dencies(LifecycleDependencyResolver.java:221) > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolvePr > ojectDependencies(LifecycleDependencyResolver.java:128) > at > org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAre > Resolved(MojoExecutor.java:245) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja > va:199) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja > va:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja > va:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life > cycleModuleBuilder.java:116) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life > cycleModuleBuilder.java:80) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedB > uilder.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.j > ava:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch > er.java:289) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:22 > 9) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun > cher.java:415) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356 > ) > Caused by: org.apache.maven.project.DependencyResolutionException: > Could not resolve dependencies for project > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.camel- > impl:bundle:19.0.0-SNAPSHOT: > Could not find artifact > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.common:jar:tests:19.0 > .0-SNAPSHOT > at > org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(De > faultProjectDependenciesResolver.java:212) > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDepen > dencies(LifecycleDependencyResolver.java:195) > ... 23 more > Caused by: org.eclipse.aether.resolution.DependencyResolutionException: > Could not find artifact > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.common:jar:tests:19.0 > .0-SNAPSHOT > at > org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependen > cies(DefaultRepositorySystem.java:384) > at > org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(De > faultProjectDependenciesResolver.java:205) > ... 24 more > Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: > Could not find artifact > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.common:jar:tests:19.0 > .0-SNAPSHOT > at > org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtif > actResolver.java:444) > at > org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(Def > aultArtifactResolver.java:246) > at > org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependen > cies(DefaultRepositorySystem.java:367) > ... 25 more > Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could > not find artifact > org.opennms.core.ipc.sink:org.opennms.core.ipc.sink.common:jar:tests:19.0 > .0-SNAPSHOT > at > org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtif > actResolver.java:434) > ... 27 more > [ERROR] > [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/DependencyResolution > Exception > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command [ERROR] mvn <goals> -rf :org.opennms.core.ipc.sink.camel-impl > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most engaging > tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Please read the OpenNMS Mailing List FAQ: > http://www.opennms.org/index.php/Mailing_List_FAQ > > opennms-discuss mailing list > > To *unsubscribe* or change your subscription options, see the bottom of > this page: > https://lists.sourceforge.net/lists/listinfo/opennms-discuss ---------------------------------------------------------------------- This e-mail message is being sent solely for use by the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by phone or reply by e-mail, delete the original message and destroy all copies. Thank you. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-discuss mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-discuss