Help needed building source on Foundation branches
Jonathan Heard <[email protected]>
| Newsgroups | gmane.network.opennms.general |
|---|---|
| Message-ID | <[email protected]> |
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.getDependencies(LifecycleDependencyResolver.java:221) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:128) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:245) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199) 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.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(DefaultProjectDependenciesResolver.java:212) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(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.resolveDependencies(DefaultRepositorySystem.java:384) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.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(DefaultArtifactResolver.java:444) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(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(DefaultArtifactResolver.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/DependencyResolutionException [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