Issue with dependency resolution

asked 2015-09-28 06:42:52 -0800

balajimit gravatar image

I am trying to add "aaa" as a dependency in my project. Extract of my pom.xml: <dependencies> <dependency> <groupid>org.opendaylight.aaa</groupid> <artifactid>aaa.project</artifactid> <version>0.3.0-SNAPSHOT</version> </dependency> </dependencies>

I very much find this in the repo: https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/org/opendaylight/aaa/aaa.project/0.3.0-SNAPSHOT/

But still get the error: [ERROR] Failed to execute goal on project trial-aggregator: Could not resolve dependencies for project org.opendaylight.trial:trial-aggregator:pom:1.0.0-SNAPSHOT: Failure to find org.opendaylight.aaa:aaa.project:jar:0.3.0-SNAPSHOT in http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project trial-aggregator: Could not resolve dependencies for project org.opendaylight.trial:trial-aggregator:pom:1.0.0-SNAPSHOT: Failure to find org.opendaylight.aaa:aaa.project:jar:0.3.0-SNAPSHOT in http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced

in ~/.m2/settings.xml too the repo paths are added: ..... <profile> <id>opendaylight-snapshots</id> <repositories> <repository> <id>opendaylight-snapshot</id> <name>opendaylight-snapshot</name> <url>http://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/</url> <releases> .....</releases></repository></repositories></profile>

edit retag flag offensive close merge delete

Comments

Hi, A more organized way would be to view your project as a karaf feature. Then you can add dependency on other feature - eg. aaa in your case. A simplest way is to check how 'aaa' project is organized as a Karaf-feature and see how other projects who depend upon aaa have included that in their Karaf-feature. -Muthu

Muthukumaran ( 2015-10-02 02:18:19 -0800 )edit