Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

0

Unable to build the hello project

asked 2016-01-02 01:13:52 -0800

Raihan Wadud gravatar image

updated 2016-01-02 01:15:01 -0800

Hi Folks, I was following this link to workout the hello project. But failing at Exercise 1 - "mvn -nsu clean install"[https://wiki.opendaylight.org/view/ControllerCoreFunctionalityTutorials:ApplicationDevelopment_Tutorial] with the following error.

INFO: Waiting for remote bundle context.. on 21000 name: b3909a5f-872a-43af-b896-4f4b619559e5 timout: [ RelativeTimeout value = 180000 ] 2016-01-02 09:05:40,774 | INFO | ion(3)-127.0.0.1 | SingleFeatureTest | 84 - PAXEXAM-PROBE-e2caa69c-7d9d-45ff-b017-0747cfa76574 - 0.0.0 | Attempting to add repository file:/home/odldev/git/hello/features/target/classes/features.xml 2016-01-02 09:05:40,866 | INFO | ion(3)-127.0.0.1 | SingleFeatureTest | 84 - PAXEXAM-PROBE-e2caa69c-7d9d-45ff-b017-0747cfa76574 - 0.0.0 | Successfully loaded repository file:/home/odldev/git/hello/features/target/classes/features.xml 2016-01-02 09:05:40,866 | INFO | ion(3)-127.0.0.1 | SingleFeatureTest | 84 - PAXEXAM-PROBE-e2caa69c-7d9d-45ff-b017-0747cfa76574 - 0.0.0 | Attempting to install feature odl-hello-api 1.0.0-SNAPSHOT 2016-01-02 09:05:41,269 | WARN | ion(3)-127.0.0.1 | AetherBasedResolver | 1 - org.ops4j.pax.url.mvn - 2.2.0 | Error resolving artifactorg.opendaylight.aaa:features-aaa-shiro:xml:features:0.3.0-SNAPSHOT:Could not find artifact org.opendaylight.aaa:features-aaa-shiro:xml:features:0.3.0-SNAPSHOT shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.opendaylight.aaa:features-aaa-shiro:xml:features:0.3.0-SNAPSHOT at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444) at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246) at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223) at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:344) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolveFile(AetherBasedResolver.java:313) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:297) at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:131) at org.apache.karaf.features.internal.FeatureValidationUtil.load(FeatureValidationUtil.java:93) at org.apache.karaf.features.internal.FeatureValidationUtil.validate(FeatureValidationUtil.java:58) at org.apache.karaf.features.internal.FeaturesServiceImpl.validateRepository(FeaturesServiceImpl.java:162) at org.apache.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:233) at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeatures(FeaturesServiceImpl.java:813) at org.apache.karaf.features.internal.FeaturesServiceImpl.getFeature(FeaturesServiceImpl.java:771) at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:359) at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:347) at Proxy7e73e05b6bf2437e9eff189d0f002f62.installFeature(Unknown Source) at org.opendaylight.odlparent.featuretest.SingleFeatureTest.installFeature(SingleFeatureTest.java:207) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.045] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.045] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.045] at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.045] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-02 03:24:25 -0800

Raihan Wadud gravatar image

looks like "-nsu" was causing the problem. And after removing it, the build was successful.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-01-02 01:13:52 -0800

Seen: 96 times

Last updated: Jan 02 '16