Heya, What command did you use to start the maven build?
For reference, here we put down some helpful pointers: https://cwiki.apache.org/confluence/display/CLOUDSTACK/Building+with+Maven Cheers, Hugo > -----Original Message----- > From: coudstacks [mailto:cloudsta...@163.com] > Sent: Thursday, October 25, 2012 8:53 AM > To: cloudstack-dev > Subject: cloudstack 4.1.0 build error with maven > > 1. i have successed in building 4.0.0 ,at that time it is ant. in the same > environment i 'git clone ' a new master branch ,and build with maven. > it is 4.1.0 , and totally maven build, but i fail. > ERROR] Failed to execute goal on project cloud-deps: Could not resolve > dependencies for project org.apache.cloudstack:cloud-deps:jar:4.1.0- > SNAPSHOT: Failure to find org.apache.cloudstack:cloud-awsapi:jar:4.1.0- > SNAPSHOT in http://repository.apache.org/snapshots was cached in the local > repository, resolution will not be reattempted until the update interval of > apache.snapshots has elapsed or updates are forced -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal on project cloud-deps: Could not resolve dependencies for project > org.apache.cloudstack:cloud-deps:jar:4.1.0-SNAPSHOT: Failure to find > org.apache.cloudstack:cloud-awsapi:jar:4.1.0-SNAPSHOT in > http://repository.apache.org/snapshots was cached in the local repository, > resolution will not be reattempted until the update interval of > apache.snapshots has elapsed or updates are forced > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDepen > dencies(LifecycleDependencyResolver.java:210) > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolvePr > ojectDependencies(LifecycleDependencyResolver.java:117) > at > org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAre > Resolved(MojoExecutor.java:258) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja > va:201) > 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:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life > cycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif > ecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter > .java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j > ava:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch > er.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:23 > 0) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun > cher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352 > ) > Caused by: org.apache.maven.project.DependencyResolutionException: > Could not resolve dependencies for project org.apache.cloudstack:cloud- > deps:jar:4.1.0-SNAPSHOT: Failure to find org.apache.cloudstack:cloud- > awsapi:jar:4.1.0-SNAPSHOT in http://repository.apache.org/snapshots was > cached in the local repository, resolution will not be reattempted until the > update interval of apache.snapshots has elapsed or updates are forced > at > org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(De > faultProjectDependenciesResolver.java:189) > at > org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDepen > dencies(LifecycleDependencyResolver.java:185) > ... 22 more > Caused by: > org.sonatype.aether.resolution.DependencyResolutionException: Failure to > find org.apache.cloudstack:cloud-awsapi:jar:4.1.0-SNAPSHOT in > http://repository.apache.org/snapshots was cached in the local repository, > resolution will not be reattempted until the update interval of > apache.snapshots has elapsed or updates are forced > at > org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDepend > encies(DefaultRepositorySystem.java:375) > at > org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(De > faultProjectDependenciesResolver.java:183) > ... 23 more > Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: > Failure to find org.apache.cloudstack:cloud-awsapi:jar:4.1.0-SNAPSHOT in > http://repository.apache.org/snapshots was cached in the local repository, > resolution will not be reattempted until the update interval of > apache.snapshots has elapsed or updates are forced > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultAr > tifactResolver.java:538) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(D > efaultArtifactResolver.java:216) > at > org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDepend > encies(DefaultRepositorySystem.java:358) > ... 24 more > Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure > to find org.apache.cloudstack:cloud-awsapi:jar:4.1.0-SNAPSHOT in > http://repository.apache.org/snapshots was cached in the local repository, > resolution will not be reattempted until the update interval of > apache.snapshots has elapsed or updates are forced > at > org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newExcepti > on(DefaultUpdateCheckManager.java:230) > at > org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifa > ct(DefaultUpdateCheckManager.java:204) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultAr > tifactResolver.java:427) > ... 26 more >