You have a duplicated module entry
[ERROR] [ERROR] Project 'org.openecomp.ecompsdkos:epsdk-app-os:1.1.0-SNAPSHOT' is duplicated in the reactor @
It looks like PORTAL-8 was fixed recently in 1.1.0-SNAPSHOT
(check your ecomp-sdk/pom.xml history - updated 6 days ago)
Therefore you can remove the workaround <module>ecompsdkos/ecomp-sdk/espskd-app-os</module> in the root.xml
I'll post the change and/or push the root.xml pom to github shortly
/michael
Hi Michael O'Brien,
As your comment, i remove <module>ecompsdkos/ecomp-sdk/espskd-app-os</module> in the root.xml and the one was resolved. but another build error is coming.
[INFO] onap.root .......................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 08:15 min [INFO] Finished at: 2017-06-22T17:18:24+09:00 [INFO] Final Memory: 450M/1108M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project ui-ci: Could not resolve dependencies for project org.openecomp.sdc:ui-ci:jar:1.1.0-SNAPSHOT: Could not find artifact org.openecomp.sdc:test-apis-ci:jar:1.1.0-SNAPSHOT in 70_opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project ui-ci: Could not resolve dependencies for project org.openecomp.sdc:ui-ci:jar:1.1.0-SNAPSHOT: Could not find artifact org.openecomp.sdc:test-apis-ci:jar:1.1.0-SNAPSHOT in 70_opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:127) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:262) 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.openecomp.sdc:ui-ci:jar:1.1.0-SNAPSHOT: Could not find artifact org.openecomp.sdc:test-apis-ci:jar:1.1.0-SNAPSHOT in 70_opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:211) 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.openecomp.sdc:test-apis-ci:jar:1.1.0-SNAPSHOT in 70_opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.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.openecomp.sdc:test-apis-ci:jar:1.1.0-SNAPSHOT in 70_opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.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.openecomp.sdc:test-apis-ci:jar:1.1.0-SNAPSHOT in 70_opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:39) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355) at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421) ... 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 :ui-ci
Thanks you.
You will have to work your way backwards from each error - search on this particular project and find it's parent pom if iti is a child - comment out that line and see if you can continue to success - then come back to it - in some cases a couple of these don't resolve certain test jars on certain systems - the root.pom on the wiki builds the most projects under OSX, and then RHEL and lastly windows. When I get in the office I will verify my RHEL vm
Check your settings.xml - make sure you have all 6 repos there - I used to get several of these errors until I added staging.
<
activeProfile
>openecomp-staging</
activeProfile
>
<
activeProfile
>openecomp-public</
activeProfile
>
<
activeProfile
>openecomp-release</
activeProfile
>
<
activeProfile
>openecomp-snapshots</
activeProfile
>
<
activeProfile
>opendaylight-release</
activeProfile
>
<
activeProfile
>opendaylight-snapshots</
activeProfile
>
Hi Michael O'Brien,
i appreciate your comment. from the conclusion, build is succeeded.
when error occur, my build process stop at dcae-inventory project. As you suggested, i took a look at my build environment again by referring to Setting Up Your Development Environment.
my build environment was different from the version recommended in the tutorial. i have used
java 1.8.0_91, maven 3.3.9 and docker.io. i upgrade the version for java, maven, docker as described in the tutoral and the build is succeeded.
Regards.
Jin.
Jin, sounds good - I thought you had a second build failure. Your java/maven versions are perfectly fine (anything above 1.8.0_65/3.3.3). Also you can selectively comment parts of the root pom.xml based on what you are changing and only build the dependency branch above any component you would like to modify. The rest of the indirect build artifacts will be picked up from nexus.
thank you
/michael
I am just getting started and following these instructions here to do a complete build under Ubuntu 16.04, Java 1.8.0_91, Maven 3.3.9.
When executing mvn clean install -U -DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Djava.net.preferIPv4Stack=true, build process is crashed in the following message.
Can anyone advise?