|
Hi all,
I just cloned the git repo, and tried to compile the sources, when I get the following error: Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar:sonar-plugin-api:jar:tests:3.4-SNAPSHOT
My commands where: # git clone https://github.com/SonarSource/sonar.git # cd sonar # mvn clean compiel
Please, let me know if I'm loosing something. Regards, Matías.
|
|
Hi Matías,
You should try "mvn clean install". Regards
|
|
Thank you Simon, here is the output for that goal: % mvn -e clean install ... ... [INFO] Sonar :: Application .............................. FAILURE [0.957s]
[INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:01.845s [INFO] Finished at: Fri Oct 26 11:04:54 ART 2012
[INFO] Final Memory: 66M/284M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-application % Regards,
Matías.
On Thu, Oct 25, 2012 at 6:36 PM, Simon Brandhof <[hidden email]> wrote: Hi Matías, |
|
It's fixed. The missing dependency is now available in central repository.
On 26 October 2012 16:10, Matias Blasi <[hidden email]> wrote:
-- http://sonarsource.com |
|
Thanks Simon,
I'm actually up to date, and still getting this error: % git pull
* branch master -> FETCH_HEAD Already up-to-date. % mvn -e clean install [INFO] Sonar :: Plugins :: Cobertura ..................... FAILURE [0.196s]
[INFO] Sonar :: Plugins :: Surefire ...................... SKIPPED [INFO] Sonar :: Plugins :: CPD ........................... SKIPPED [INFO] Sonar :: Plugins :: Email Notifications ........... SKIPPED
[INFO] Sonar :: Plugins :: JaCoCo ........................ SKIPPED [INFO] Sonar :: Application .............................. SKIPPED [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED
[INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:09.528s [INFO] Finished at: Tue Oct 30 15:01:22 ART 2012 [INFO] Final Memory: 39M/252M [INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
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:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-cobertura-plugin % On Mon, Oct 29, 2012 at 6:32 AM, Simon Brandhof <[hidden email]> wrote: It's fixed. The missing dependency is now available in central repository. |
|
Hi Matias,
The master of Sonar switched from the release of Sonar Java to the latest snasphot, so in order to build the master of Sonar you have two choices :
Cheers, On 30 October 2012 19:03, Matias Blasi <[hidden email]> wrote: Thanks Simon, |
|
Thanks Eric, I added the repository and it worked.
Best regards, Matías. On Tue, Oct 30, 2012 at 3:08 PM, Eric Hartmann <[hidden email]> wrote: Hi Matias, |
|
Hi, I am running into a similar problem trying to build Sonar. I cloned the repository today and tried to build; but, got this error: [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar :: Plugins :: Cobertura [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from sonar-source [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from sonar-plugins [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from public Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar-plugins/java/sonar-java-plugin/1.1-SNAPSHOT/sonar-java-plugin-1.1-SNAPSHOT.pom [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar-plugins/java/sonar-java-plugin/1.1-SNAPSHOT/sonar-java-plugin-1.1-SNAPSHOT.pom [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar-plugins/java/sonar-java-plugin/1.1-SNAPSHOT/sonar-java-plugin-1.1-SNAPSHOT.pom [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository public (http://public) Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar-plugins/java/sonar-java-plugin/1.1-SNAPSHOT/sonar-java-plugin-1.1-SNAPSHOT.jar [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar-plugins/java/sonar-java-plugin/1.1-SNAPSHOT/sonar-java-plugin-1.1-SNAPSHOT.jar [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar-plugins/java/sonar-java-plugin/1.1-SNAPSHOT/sonar-java-plugin-1.1-SNAPSHOT.jar [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository public (http://public) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[ id] Path to dependency: 1) org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT 2) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT After getting the above error, then I tried to build sonar-java… but that failed with a similar error also…
Which repository has: groupId=org.codehaus.sonar-plugins.java artifactId=sonar-java-plugin version=1.1-SNAPSHOT ? I thought that the build should succeed if these repo’s were included:
1)
http://repository.sonarsource.org/content/repositories/sonar 2)http://repository-sonarplugins.forge.cloudbees.com/snapshot Thanks, Bob From: Matias Blasi [mailto:[hidden email]]
Thanks Eric, I added the repository and it worked. Best regards, Matías. On Tue, Oct 30, 2012 at 3:08 PM, Eric Hartmann <[hidden email]> wrote: Hi Matias, The master of Sonar switched from the release of Sonar Java to the latest snasphot, so in order to build the master of Sonar you have two choices :
Cheers, Eric Hartmann
On 30 October 2012 19:03, Matias Blasi <[hidden email]> wrote: Thanks Simon, I'm actually up to date, and still getting this error: % git pull * branch master -> FETCH_HEAD Already up-to-date. % mvn -e clean install [INFO] Sonar :: Plugins :: Cobertura ..................... FAILURE [0.196s] [INFO] Sonar :: Plugins :: Surefire ...................... SKIPPED [INFO] Sonar :: Plugins :: CPD ........................... SKIPPED [INFO] Sonar :: Plugins :: Email Notifications ........... SKIPPED [INFO] Sonar :: Plugins :: JaCoCo ........................ SKIPPED [INFO] Sonar :: Application .............................. SKIPPED [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:09.528s [INFO] Finished at: Tue Oct <a href="tel:30%2015" target="_blank">
30 15:01:22 ART 2012 [INFO] Final Memory: 39M/252M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT
-> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT: Could
not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-cobertura-plugin % On Mon, Oct 29, 2012 at 6:32 AM, Simon Brandhof <[hidden email]> wrote: It's fixed. The missing dependency is now available in central repository.
On 26 October 2012 16:10, Matias Blasi <[hidden email]> wrote: Thank you Simon, here is the output for that goal: % mvn -e clean install ... ... [INFO] Sonar :: Application .............................. FAILURE [0.957s] [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:01.845s [INFO] Finished at: Fri Oct 26 11:04:54 ART 2012 [INFO] Final Memory: 66M/284M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts could
not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0:
Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0:
Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-application % Regards, Matías. On Thu, Oct 25, 2012 at 6:36 PM, Simon Brandhof <[hidden email]> wrote: Hi Matías, You should try "mvn clean install". Regards
-- Simon BRANDHOF | SonarSource *** ******* This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message. |
|
Hi,
You have to build https://github.com/SonarSource/sonar-java/. Regards On 5 November 2012 21:00, Bob Bick <[hidden email]> wrote:
-- http://sonarsource.com |
|
Simon, thanks for the quick response. When I try to build that, I get this error: C:\SonarJavaGitRepo\sonar-java>mvn install C:\SonarJavaGitRepo\sonar-java>echo off [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Sonar Java [INFO] Sonar Java :: Squid [INFO] Sonar Java :: Checks [INFO] Sonar Java :: Squid Plugin [INFO] Sonar Java :: Sonar Plugin [INFO] Sonar Java :: SSLR Toolkit [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildNumber: 12afa36b232b1b5f3e026be2b16120efa3909e05 at timestamp: 1352216130707 [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildScmBranch: UNKNOWN [INFO] [enforcer:enforce {execution: enforce}] [INFO] [license:check {execution: enforce-license-headers}] [INFO] Checking licenses... [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [animal-sniffer:check {execution: enforce-java-api-compatibility}] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0 [INFO] [source:jar-no-fork {execution: attach-sources}] [INFO] [install:install {execution: default-install}] [INFO] Installing C:\SonarJavaGitRepo\sonar-java\pom.xml to C:\Users\bbick\.m2\repository\org\codehaus\sonar-plugins\java\java\1.1-SNAPSHOT\ java-1.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java :: Squid [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar/plugins/sonar-squid-java-plugin/3.2/sonar-squid-java-plugin-3.2.jar [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository public (http://public) Downloading: http://repository.netjets.com/nexus/content/groups/public/org/codehaus/sonar/plugins/sonar-squid-java-plugin/3.2/sonar-squid-java-plugin-3.2.jar [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2 -Dpackaging=jar -Dfil e=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2 -Dpackaging=jar -Dfile= /path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.codehaus.sonar-plugins.java:java-squid:jar:1.1-SNAPSHOT 2) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Any insights would be much appreciated. Bob From: Simon Brandhof [mailto:[hidden email]]
Hi, On 5 November 2012 21:00, Bob Bick <[hidden email]> wrote: Hi, I am running into a similar problem trying to build Sonar. I cloned the repository today and tried
to build; but, got this error: [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar :: Plugins :: Cobertura [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-source [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-plugins [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
public [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
public (http://public) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[ id] Path to dependency: 1) org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT 2) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT After getting the above error, then I tried to build sonar-java… but that failed with a similar error
also… Which repository has: groupId=org.codehaus.sonar-plugins.java artifactId=sonar-java-plugin version=1.1-SNAPSHOT ? I thought that the build should succeed if these repo’s were included: 1)
http://repository.sonarsource.org/content/repositories/sonar
2)http://repository-sonarplugins.forge.cloudbees.com/snapshot Thanks, Bob From: Matias Blasi [mailto:[hidden email]]
Thanks Eric, I added the repository and it worked. Best regards, Matías. On Tue, Oct 30, 2012 at 3:08 PM, Eric Hartmann <[hidden email]> wrote: Hi Matias, The master of Sonar switched from the release of Sonar Java to the latest snasphot, so in order to build the master of Sonar you have two choices :
Cheers, Eric Hartmann On 30 October 2012 19:03, Matias Blasi <[hidden email]> wrote: Thanks Simon, I'm actually up to date, and still getting this error: % git pull * branch master -> FETCH_HEAD Already up-to-date. % mvn -e clean install [INFO] Sonar :: Plugins :: Cobertura ..................... FAILURE [0.196s] [INFO] Sonar :: Plugins :: Surefire ...................... SKIPPED [INFO] Sonar :: Plugins :: CPD ........................... SKIPPED [INFO] Sonar :: Plugins :: Email Notifications ........... SKIPPED [INFO] Sonar :: Plugins :: JaCoCo ........................ SKIPPED [INFO] Sonar :: Application .............................. SKIPPED [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:09.528s [INFO] Finished at: Tue Oct
<a href="tel:30%2015" target="_blank">30 15:01:22 ART 2012 [INFO] Final Memory: 39M/252M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-cobertura-plugin % On Mon, Oct 29, 2012 at 6:32 AM, Simon Brandhof <[hidden email]> wrote: It's fixed. The missing dependency is now available in central repository. On 26 October 2012 16:10, Matias Blasi <[hidden email]> wrote: Thank you Simon, here is the output for that goal: % mvn -e clean install ... ... [INFO] Sonar :: Application .............................. FAILURE [0.957s] [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:01.845s [INFO] Finished at: Fri Oct 26 11:04:54 ART 2012 [INFO] Final Memory: 66M/284M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts
could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT:
The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following
artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-application % Regards, Matías. On Thu, Oct 25, 2012 at 6:36 PM, Simon Brandhof <[hidden email]> wrote: Hi Matías, You should try "mvn clean install". Regards
--
Simon BRANDHOF | SonarSource *** ******* This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the
message. If you have received the message in error, please advise the sender by reply e-mail and delete the message.
Simon BRANDHOF | SonarSource |
|
Hi Simon, I assume that the missing artifact ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2')
is in this repository: http://repository.sonarsource.org/content/repositories/sonar/ I added that repository; however, I noticed that if I try to access this URL: http://repository.sonarsource.org/content/repositories/sonar/org/codehaus/sonar/plugins/ I get an error message: You are not authorized. Is this repository restricted access? Thanks, Bob From: Bob Bick [mailto:[hidden email]]
Simon, thanks for the quick response. When I try to build that, I get this error: C:\SonarJavaGitRepo\sonar-java>mvn install C:\SonarJavaGitRepo\sonar-java>echo off [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Sonar Java [INFO] Sonar Java :: Squid [INFO] Sonar Java :: Checks [INFO] Sonar Java :: Squid Plugin [INFO] Sonar Java :: Sonar Plugin [INFO] Sonar Java :: SSLR Toolkit [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildNumber: 12afa36b232b1b5f3e026be2b16120efa3909e05 at timestamp: 1352216130707 [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildScmBranch: UNKNOWN [INFO] [enforcer:enforce {execution: enforce}] [INFO] [license:check {execution: enforce-license-headers}] [INFO] Checking licenses... [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [animal-sniffer:check {execution: enforce-java-api-compatibility}] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0 [INFO] [source:jar-no-fork {execution: attach-sources}] [INFO] [install:install {execution: default-install}] [INFO] Installing C:\SonarJavaGitRepo\sonar-java\pom.xml to C:\Users\bbick\.m2\repository\org\codehaus\sonar-plugins\java\java\1.1-SNAPSHOT\ java-1.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java :: Squid [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2 -Dpackaging=jar -Dfil e=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2 -Dpackaging=jar -Dfile= /path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.codehaus.sonar-plugins.java:java-squid:jar:1.1-SNAPSHOT 2) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Any insights would be much appreciated. Bob From: Simon Brandhof [[hidden email]]
Hi, On 5 November 2012 21:00, Bob Bick <[hidden email]> wrote: Hi, I am running into a similar problem trying to build Sonar. I cloned the repository today and tried
to build; but, got this error: [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar :: Plugins :: Cobertura [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-source [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-plugins [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
public [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
public (http://public) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[ id] Path to dependency: 1) org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT 2) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT After getting the above error, then I tried to build sonar-java… but that failed with a similar error
also… Which repository has: groupId=org.codehaus.sonar-plugins.java artifactId=sonar-java-plugin version=1.1-SNAPSHOT ? I thought that the build should succeed if these repo’s were included: 1)
http://repository.sonarsource.org/content/repositories/sonar
2)http://repository-sonarplugins.forge.cloudbees.com/snapshot Thanks, Bob From: Matias Blasi [mailto:[hidden email]]
Thanks Eric, I added the repository and it worked. Best regards, Matías. On Tue, Oct 30, 2012 at 3:08 PM, Eric Hartmann <[hidden email]> wrote: Hi Matias, The master of Sonar switched from the release of Sonar Java to the latest snasphot, so in order to build the master of Sonar you have two choices :
Cheers, Eric Hartmann On 30 October 2012 19:03, Matias Blasi <[hidden email]> wrote: Thanks Simon, I'm actually up to date, and still getting this error: % git pull * branch master -> FETCH_HEAD Already up-to-date. % mvn -e clean install [INFO] Sonar :: Plugins :: Cobertura ..................... FAILURE [0.196s] [INFO] Sonar :: Plugins :: Surefire ...................... SKIPPED [INFO] Sonar :: Plugins :: CPD ........................... SKIPPED [INFO] Sonar :: Plugins :: Email Notifications ........... SKIPPED [INFO] Sonar :: Plugins :: JaCoCo ........................ SKIPPED [INFO] Sonar :: Application .............................. SKIPPED [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:09.528s [INFO] Finished at: Tue Oct
<a href="tel:30%2015" target="_blank">30 15:01:22 ART 2012 [INFO] Final Memory: 39M/252M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-cobertura-plugin % On Mon, Oct 29, 2012 at 6:32 AM, Simon Brandhof <[hidden email]> wrote: It's fixed. The missing dependency is now available in central repository. On 26 October 2012 16:10, Matias Blasi <[hidden email]> wrote: Thank you Simon, here is the output for that goal: % mvn -e clean install ... ... [INFO] Sonar :: Application .............................. FAILURE [0.957s] [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:01.845s [INFO] Finished at: Fri Oct 26 11:04:54 ART 2012 [INFO] Final Memory: 66M/284M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts
could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT:
The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following
artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-application % Regards, Matías. On Thu, Oct 25, 2012 at 6:36 PM, Simon Brandhof <[hidden email]> wrote: Hi Matías, You should try "mvn clean install". Regards
--
Simon BRANDHOF | SonarSource *** ******* This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the
message. If you have received the message in error, please advise the sender by reply e-mail and delete the message.
Simon BRANDHOF | SonarSource |
|
Hi Bob,
On Tue, Nov 6, 2012 at 7:54 PM, Bob Bick <[hidden email]> wrote:
Best regards, Evgeny Mandrikov aka Godin <http://godin.net.ru> http://twitter.com/_godin_ |
|
Evgeny, Thanks for the quick response! I added that repository a while ago; however, it does not have the
sonar-squid-java-plugin. Here is the link: http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar/plugins/ and I see these plugins: sonar-checkstyle-plugin/ 2012-10-03 09:35 -
sonar-cobertura-plugin/ 2012-10-03 09:35 -
sonar-core-plugin/ 2012-10-03 09:35 -
sonar-cpd-plugin/ 2012-10-03 09:35 -
sonar-dbcleaner-plugin/ 2012-10-03 09:35 -
sonar-design-plugin/ 2012-10-03 09:35 -
sonar-email-notifications-plugin/ 2012-10-03 09:35 -
sonar-findbugs-plugin/ 2012-10-03 09:35 -
sonar-jacoco-plugin/ 2012-10-03 09:35 -
sonar-l10n-en-plugin/ 2012-10-03 09:35 -
sonar-pmd-plugin/ 2012-10-03 09:35 -
sonar-surefire-plugin/ I have a suspicion that builds are working for you because you have files cached in your local maven repository… Or, you have access to privileged repositories
that I do not have access to. I’d be curious as to what repo you are finding this artifact in ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2'). Thanks again, Bob From: Evgeny Mandrikov [mailto:[hidden email]]
Hi Bob, On Tue, Nov 6, 2012 at 7:54 PM, Bob Bick <[hidden email]> wrote: Hi Simon, I assume that the missing artifact ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2')
is in this repository: http://repository.sonarsource.org/content/repositories/sonar/ I added that repository; however, I noticed that if I try to access this URL: http://repository.sonarsource.org/content/repositories/sonar/org/codehaus/sonar/plugins/ I get an error message:
You are not authorized. Is this repository restricted access? Thanks, Bob From: Bob Bick [mailto:[hidden email]]
Simon, thanks for the quick response. When I try to build that, I get this error: C:\SonarJavaGitRepo\sonar-java>mvn install C:\SonarJavaGitRepo\sonar-java>echo off [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Sonar Java [INFO] Sonar Java :: Squid [INFO] Sonar Java :: Checks [INFO] Sonar Java :: Squid Plugin [INFO] Sonar Java :: Sonar Plugin [INFO] Sonar Java :: SSLR Toolkit [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildNumber: 12afa36b232b1b5f3e026be2b16120efa3909e05 at timestamp: 1352216130707 [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildScmBranch: UNKNOWN [INFO] [enforcer:enforce {execution: enforce}] [INFO] [license:check {execution: enforce-license-headers}] [INFO] Checking licenses... [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [animal-sniffer:check {execution: enforce-java-api-compatibility}] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0 [INFO] [source:jar-no-fork {execution: attach-sources}] [INFO] [install:install {execution: default-install}] [INFO] Installing C:\SonarJavaGitRepo\sonar-java\pom.xml to C:\Users\bbick\.m2\repository\org\codehaus\sonar-plugins\java\java\1.1-SNAPSHOT\ java-1.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java :: Squid [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfil e=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfile= /path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.codehaus.sonar-plugins.java:java-squid:jar:1.1-SNAPSHOT 2) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Any insights would be much appreciated. Bob From: Simon Brandhof [[hidden email]]
Hi, On 5 November 2012 21:00, Bob Bick <[hidden email]> wrote: Hi, I am running into a similar problem trying to build Sonar. I cloned the repository today and tried
to build; but, got this error: [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar :: Plugins :: Cobertura [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-source [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-plugins [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
public [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
public (http://public) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[ id] Path to dependency: 1) org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT 2) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT After getting the above error, then I tried to build sonar-java… but that failed with a similar error
also… Which repository has: groupId=org.codehaus.sonar-plugins.java artifactId=sonar-java-plugin version=1.1-SNAPSHOT ? I thought that the build should succeed if these repo’s were included: 1)
http://repository.sonarsource.org/content/repositories/sonar
2)http://repository-sonarplugins.forge.cloudbees.com/snapshot Thanks, Bob From: Matias Blasi [mailto:[hidden email]]
Thanks Eric, I added the repository and it worked. Best regards, Matías. On Tue, Oct 30, 2012 at 3:08 PM, Eric Hartmann <[hidden email]> wrote: Hi Matias, The master of Sonar switched from the release of Sonar Java to the latest snasphot, so in order to build the master of Sonar you have two choices :
Cheers, Eric Hartmann On 30 October 2012 19:03, Matias Blasi <[hidden email]> wrote: Thanks Simon, I'm actually up to date, and still getting this error: % git pull * branch master -> FETCH_HEAD Already up-to-date. % mvn -e clean install [INFO] Sonar :: Plugins :: Cobertura ..................... FAILURE [0.196s] [INFO] Sonar :: Plugins :: Surefire ...................... SKIPPED [INFO] Sonar :: Plugins :: CPD ........................... SKIPPED [INFO] Sonar :: Plugins :: Email Notifications ........... SKIPPED [INFO] Sonar :: Plugins :: JaCoCo ........................ SKIPPED [INFO] Sonar :: Application .............................. SKIPPED [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:09.528s [INFO] Finished at: Tue Oct
<a href="tel:30%2015" target="_blank">30 15:01:22 ART 2012 [INFO] Final Memory: 39M/252M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-cobertura-plugin % On Mon, Oct 29, 2012 at 6:32 AM, Simon Brandhof <[hidden email]> wrote: It's fixed. The missing dependency is now available in central repository. On 26 October 2012 16:10, Matias Blasi <[hidden email]> wrote: Thank you Simon, here is the output for that goal: % mvn -e clean install ... ... [INFO] Sonar :: Application .............................. FAILURE [0.957s] [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:01.845s [INFO] Finished at: Fri Oct 26 11:04:54 ART 2012 [INFO] Final Memory: 66M/284M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts
could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT:
The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following
artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-application % Regards, Matías. On Thu, Oct 25, 2012 at 6:36 PM, Simon Brandhof <[hidden email]> wrote: Hi Matías, You should try "mvn clean install". Regards
--
Simon BRANDHOF | SonarSource *** ******* This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the
message. If you have received the message in error, please advise the sender by reply e-mail and delete the message.
Simon BRANDHOF | SonarSource
-- |
|
You are looking on a wrong path, correct one is http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/java/sonar-squid-java-plugin/
On Tue, Nov 6, 2012 at 8:14 PM, Bob Bick <[hidden email]> wrote:
Best regards, Evgeny Mandrikov aka Godin <http://godin.net.ru> http://twitter.com/_godin_ |
|
In reply to this post by Bob Bick
Central repo ! <a href="http://search.maven.org/#artifactdetails|org.codehaus.sonar.plugins|sonar-squid-java-plugin|3.2|sonar-plugin">http://search.maven.org/#artifactdetails|org.codehaus.sonar.plugins|sonar-squid-java-plugin|3.2|sonar-plugin |
|
In reply to this post by Evgeny Mandrikov
Thanks Evgeny, The Maven build can’t find: 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' Not: 'org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:3.2' Here is the exact error from the build: [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2'
in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. I am confused that there are two
sonar-squid-java-plugin with two completely different Maven groupId’s… Maybe I need to modify
the dependency from: 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' To 'org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:3.2' ??? Thanks, Bob From: Evgeny Mandrikov [mailto:[hidden email]]
You are looking on a wrong path, correct one is http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/java/sonar-squid-java-plugin/ On Tue, Nov 6, 2012 at 8:14 PM, Bob Bick <[hidden email]> wrote: Evgeny, Thanks for the quick response! I added that repository a while ago; however, it does not have the
sonar-squid-java-plugin. Here is the link: http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar/plugins/ and I see these plugins: sonar-checkstyle-plugin/ 2012-10-03 09:35 -
sonar-cobertura-plugin/ 2012-10-03 09:35 -
sonar-core-plugin/ 2012-10-03 09:35 -
sonar-cpd-plugin/ 2012-10-03 09:35 -
sonar-dbcleaner-plugin/ 2012-10-03 09:35 -
sonar-design-plugin/ 2012-10-03 09:35 -
sonar-email-notifications-plugin/ 2012-10-03 09:35 -
sonar-findbugs-plugin/ 2012-10-03 09:35 -
sonar-jacoco-plugin/ 2012-10-03 09:35 -
sonar-l10n-en-plugin/ 2012-10-03 09:35 -
sonar-pmd-plugin/ 2012-10-03 09:35 -
sonar-surefire-plugin/ I have a suspicion that builds are working for you because you have files cached in your local maven
repository… Or, you have access to privileged repositories that I do not have access to. I’d be curious as to what repo you are finding this artifact in ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2'). Thanks again, Bob From: Evgeny Mandrikov [mailto:[hidden email]]
Hi Bob, On Tue, Nov 6, 2012 at 7:54 PM, Bob Bick <[hidden email]> wrote: Hi Simon, I assume that the missing artifact ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2')
is in this repository: http://repository.sonarsource.org/content/repositories/sonar/ I added that repository; however, I noticed that if I try to access this URL: http://repository.sonarsource.org/content/repositories/sonar/org/codehaus/sonar/plugins/ I get an error message:
You are not authorized. Is this repository restricted access? Thanks, Bob From: Bob Bick [mailto:[hidden email]]
Simon, thanks for the quick response. When I try to build that, I get this error: C:\SonarJavaGitRepo\sonar-java>mvn install C:\SonarJavaGitRepo\sonar-java>echo off [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Sonar Java [INFO] Sonar Java :: Squid [INFO] Sonar Java :: Checks [INFO] Sonar Java :: Squid Plugin [INFO] Sonar Java :: Sonar Plugin [INFO] Sonar Java :: SSLR Toolkit [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildNumber: 12afa36b232b1b5f3e026be2b16120efa3909e05 at timestamp: 1352216130707 [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildScmBranch: UNKNOWN [INFO] [enforcer:enforce {execution: enforce}] [INFO] [license:check {execution: enforce-license-headers}] [INFO] Checking licenses... [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [animal-sniffer:check {execution: enforce-java-api-compatibility}] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0 [INFO] [source:jar-no-fork {execution: attach-sources}] [INFO] [install:install {execution: default-install}] [INFO] Installing C:\SonarJavaGitRepo\sonar-java\pom.xml to C:\Users\bbick\.m2\repository\org\codehaus\sonar-plugins\java\java\1.1-SNAPSHOT\ java-1.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java :: Squid [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfil e=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfile= /path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.codehaus.sonar-plugins.java:java-squid:jar:1.1-SNAPSHOT 2) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Any insights would be much appreciated. Bob From: Simon Brandhof [[hidden email]]
Hi, On 5 November 2012 21:00, Bob Bick <[hidden email]> wrote: Hi, I am running into a similar problem trying to build Sonar. I cloned the repository today and tried
to build; but, got this error: [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar :: Plugins :: Cobertura [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-source [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-plugins [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
public [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
public (http://public) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[ id] Path to dependency: 1) org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT 2) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT After getting the above error, then I tried to build sonar-java… but that failed with a similar error
also… Which repository has: groupId=org.codehaus.sonar-plugins.java artifactId=sonar-java-plugin version=1.1-SNAPSHOT ? I thought that the build should succeed if these repo’s were included: 1)
http://repository.sonarsource.org/content/repositories/sonar
2)http://repository-sonarplugins.forge.cloudbees.com/snapshot Thanks, Bob From: Matias Blasi [mailto:[hidden email]]
Thanks Eric, I added the repository and it worked. Best regards, Matías. On Tue, Oct 30, 2012 at 3:08 PM, Eric Hartmann <[hidden email]> wrote: Hi Matias, The master of Sonar switched from the release of Sonar Java to the latest snasphot, so in order to build the master of Sonar you have two choices :
Cheers, Eric Hartmann On 30 October 2012 19:03, Matias Blasi <[hidden email]> wrote: Thanks Simon, I'm actually up to date, and still getting this error: % git pull * branch master -> FETCH_HEAD Already up-to-date. % mvn -e clean install [INFO] Sonar :: Plugins :: Cobertura ..................... FAILURE [0.196s] [INFO] Sonar :: Plugins :: Surefire ...................... SKIPPED [INFO] Sonar :: Plugins :: CPD ........................... SKIPPED [INFO] Sonar :: Plugins :: Email Notifications ........... SKIPPED [INFO] Sonar :: Plugins :: JaCoCo ........................ SKIPPED [INFO] Sonar :: Application .............................. SKIPPED [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:09.528s [INFO] Finished at: Tue Oct
<a href="tel:30%2015" target="_blank">30 15:01:22 ART 2012 [INFO] Final Memory: 39M/252M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-cobertura-plugin % On Mon, Oct 29, 2012 at 6:32 AM, Simon Brandhof <[hidden email]> wrote: It's fixed. The missing dependency is now available in central repository. On 26 October 2012 16:10, Matias Blasi <[hidden email]> wrote: Thank you Simon, here is the output for that goal: % mvn -e clean install ... ... [INFO] Sonar :: Application .............................. FAILURE [0.957s] [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:01.845s [INFO] Finished at: Fri Oct 26 11:04:54 ART 2012 [INFO] Final Memory: 66M/284M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts
could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT:
The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following
artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-application % Regards, Matías. On Thu, Oct 25, 2012 at 6:36 PM, Simon Brandhof <[hidden email]> wrote: Hi Matías, You should try "mvn clean install". Regards
--
Simon BRANDHOF | SonarSource *** ******* This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the
message. If you have received the message in error, please advise the sender by reply e-mail and delete the message.
Simon BRANDHOF | SonarSource
--
-- |
|
org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 can be found in Maven Central repository
if you are building snapshot version of Sonar, then you don't need it, but need org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.1-SNAPSHOT , which can be found in http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/java/sonar-squid-java-plugin/
To sum up : I don't see reasons to make changes in project, because an issue in your environment. And BTW few minutes ago I was able to build snapshot version of Sonar starting from clean local Maven repository and by using only Maven Central and Cloudbees repositories, so no issues on our side.
On Tue, Nov 6, 2012 at 8:28 PM, Bob Bick <[hidden email]> wrote:
Best regards, Evgeny Mandrikov aka Godin <http://godin.net.ru> http://twitter.com/_godin_ |
|
Thanks Evgeny, Sorry about all the fuss…
I assumed that our Nexus Proxy Repository for Maven Central was downloading dependencies correctly from: http://repo1.maven.org/maven2/ Unfortunately, the Nexus proxy is not downloading this JAR. I can see the sonar squid JAR when I Browse Remote… However, it will not copy over to the local
browse storage of our Nexus repository. So, this is a Nexus issue… Time to dig into Nexus… Bob From: Evgeny Mandrikov [mailto:[hidden email]]
org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 can be found in Maven Central repository if you are building snapshot version of Sonar, then you don't need it, but need org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.1-SNAPSHOT , which can be found in http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/java/sonar-squid-java-plugin/ To sum up : I don't see reasons to make changes in project, because an issue in your environment. And BTW few minutes ago I was able to build snapshot version of Sonar starting from clean local Maven repository and by using only Maven Central
and Cloudbees repositories, so no issues on our side. On Tue, Nov 6, 2012 at 8:28 PM, Bob Bick <[hidden email]> wrote: Thanks Evgeny, The Maven build can’t find: 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' Not: 'org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:3.2' Here is the exact error from the build: [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2'
in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. I am confused that there are two
sonar-squid-java-plugin with two completely different Maven groupId’s… Maybe I need to modify
the dependency from: 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' To 'org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:3.2' ??? Thanks, Bob From: Evgeny Mandrikov [mailto:[hidden email]]
You are looking on a wrong path, correct one is http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/java/sonar-squid-java-plugin/ On Tue, Nov 6, 2012 at 8:14 PM, Bob Bick <[hidden email]> wrote: Evgeny, Thanks for the quick response! I added that repository a while ago; however, it does not have the
sonar-squid-java-plugin. Here is the link: http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar/plugins/ and I see these plugins: sonar-checkstyle-plugin/ 2012-10-03 09:35 -
sonar-cobertura-plugin/ 2012-10-03 09:35 -
sonar-core-plugin/ 2012-10-03 09:35 -
sonar-cpd-plugin/ 2012-10-03 09:35 -
sonar-dbcleaner-plugin/ 2012-10-03 09:35 -
sonar-design-plugin/ 2012-10-03 09:35 -
sonar-email-notifications-plugin/ 2012-10-03 09:35 -
sonar-findbugs-plugin/ 2012-10-03 09:35 -
sonar-jacoco-plugin/ 2012-10-03 09:35 -
sonar-l10n-en-plugin/ 2012-10-03 09:35 -
sonar-pmd-plugin/ 2012-10-03 09:35 -
sonar-surefire-plugin/ I have a suspicion that builds are working for you because you have files cached in your local maven
repository… Or, you have access to privileged repositories that I do not have access to. I’d be curious as to what repo you are finding this artifact in ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2'). Thanks again, Bob From: Evgeny Mandrikov [mailto:[hidden email]]
Hi Bob, On Tue, Nov 6, 2012 at 7:54 PM, Bob Bick <[hidden email]> wrote: Hi Simon, I assume that the missing artifact ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2')
is in this repository: http://repository.sonarsource.org/content/repositories/sonar/ I added that repository; however, I noticed that if I try to access this URL: http://repository.sonarsource.org/content/repositories/sonar/org/codehaus/sonar/plugins/ I get an error message:
You are not authorized. Is this repository restricted access? Thanks, Bob From: Bob Bick [mailto:[hidden email]]
Simon, thanks for the quick response. When I try to build that, I get this error: C:\SonarJavaGitRepo\sonar-java>mvn install C:\SonarJavaGitRepo\sonar-java>echo off [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Sonar Java [INFO] Sonar Java :: Squid [INFO] Sonar Java :: Checks [INFO] Sonar Java :: Squid Plugin [INFO] Sonar Java :: Sonar Plugin [INFO] Sonar Java :: SSLR Toolkit [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildNumber: 12afa36b232b1b5f3e026be2b16120efa3909e05 at timestamp: 1352216130707 [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildScmBranch: UNKNOWN [INFO] [enforcer:enforce {execution: enforce}] [INFO] [license:check {execution: enforce-license-headers}] [INFO] Checking licenses... [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [animal-sniffer:check {execution: enforce-java-api-compatibility}] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0 [INFO] [source:jar-no-fork {execution: attach-sources}] [INFO] [install:install {execution: default-install}] [INFO] Installing C:\SonarJavaGitRepo\sonar-java\pom.xml to C:\Users\bbick\.m2\repository\org\codehaus\sonar-plugins\java\java\1.1-SNAPSHOT\ java-1.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java :: Squid [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfil e=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfile= /path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.codehaus.sonar-plugins.java:java-squid:jar:1.1-SNAPSHOT 2) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Any insights would be much appreciated. Bob From: Simon Brandhof [[hidden email]]
Hi, On 5 November 2012 21:00, Bob Bick <[hidden email]> wrote: Hi, I am running into a similar problem trying to build Sonar. I cloned the repository today and tried
to build; but, got this error: [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar :: Plugins :: Cobertura [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-source [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-plugins [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
public [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT' in repository
public (http://public) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar-plugins.java -DartifactId=sonar-java-plugin -Dversion=1.1-SNAPSHOT
-Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[ id] Path to dependency: 1) org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT 2) org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT After getting the above error, then I tried to build sonar-java… but that failed with a similar error
also… Which repository has: groupId=org.codehaus.sonar-plugins.java artifactId=sonar-java-plugin version=1.1-SNAPSHOT ? I thought that the build should succeed if these repo’s were included: 1)
http://repository.sonarsource.org/content/repositories/sonar
2)http://repository-sonarplugins.forge.cloudbees.com/snapshot Thanks, Bob From: Matias Blasi [mailto:[hidden email]]
Thanks Eric, I added the repository and it worked. Best regards, Matías. On Tue, Oct 30, 2012 at 3:08 PM, Eric Hartmann <[hidden email]> wrote: Hi Matias, The master of Sonar switched from the release of Sonar Java to the latest snasphot, so in order to build the master of Sonar you have two choices :
Cheers, Eric Hartmann On 30 October 2012 19:03, Matias Blasi <[hidden email]> wrote: Thanks Simon, I'm actually up to date, and still getting this error: % git pull * branch master -> FETCH_HEAD Already up-to-date. % mvn -e clean install [INFO] Sonar :: Plugins :: Cobertura ..................... FAILURE [0.196s] [INFO] Sonar :: Plugins :: Surefire ...................... SKIPPED [INFO] Sonar :: Plugins :: CPD ........................... SKIPPED [INFO] Sonar :: Plugins :: Email Notifications ........... SKIPPED [INFO] Sonar :: Plugins :: JaCoCo ........................ SKIPPED [INFO] Sonar :: Application .............................. SKIPPED [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5:09.528s [INFO] Finished at: Tue Oct
<a href="tel:30%2015" target="_blank">30 15:01:22 ART 2012 [INFO] Final Memory: 39M/252M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-cobertura-plugin: Could not resolve dependencies for project org.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar.plugins:sonar-cobertura-plugin:sonar-plugin:3.4-SNAPSHOT:
Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.1-SNAPSHOT at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528) ... 26 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :sonar-cobertura-plugin % On Mon, Oct 29, 2012 at 6:32 AM, Simon Brandhof <[hidden email]> wrote: It's fixed. The missing dependency is now available in central repository. On 26 October 2012 16:10, Matias Blasi <[hidden email]> wrote: Thank you Simon, here is the output for that goal: % mvn -e clean install ... ... [INFO] Sonar :: Application .............................. FAILURE [0.957s] [INFO] Sonar :: Maven2 Plugin ............................ SKIPPED [INFO] Sonar :: Maven3 Plugin ............................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6:01.845s [INFO] Finished at: Fri Oct 26 11:04:54 ART 2012 [INFO] Final Memory: 66M/284M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following artifacts
could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT:
The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) 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:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.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.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.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.codehaus.sonar:sonar-application:jar:3.4-SNAPSHOT: The following
artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0, org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 22 more Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375) at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183) ... 23 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0,
org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358) ... 24 more Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230) at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204) ...
-- *** ******* This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message. |
|
Just to follow up on this… Turns out that the issue was with our Nexus Server which was timing out when downloading large artifacts. After increasing the timeout, the Sonar build worked. Bob From: Bob Bick
Thanks Evgeny, Sorry about all the fuss…
I assumed that our Nexus Proxy Repository for Maven Central was downloading dependencies correctly from: http://repo1.maven.org/maven2/ Unfortunately, the Nexus proxy is not downloading this JAR. I can see the sonar squid JAR when I Browse Remote… However, it will not copy over to the local
browse storage of our Nexus repository. So, this is a Nexus issue… Time to dig into Nexus… Bob From: Evgeny Mandrikov [[hidden email]]
org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 can be found in Maven Central repository if you are building snapshot version of Sonar, then you don't need it, but need org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:1.1-SNAPSHOT , which can be found in http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/java/sonar-squid-java-plugin/ To sum up : I don't see reasons to make changes in project, because an issue in your environment. And BTW few minutes ago I was able to build snapshot version of Sonar starting from clean local Maven repository and by using only Maven Central
and Cloudbees repositories, so no issues on our side. On Tue, Nov 6, 2012 at 8:28 PM, Bob Bick <[hidden email]> wrote: Thanks Evgeny, The Maven build can’t find: 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' Not: 'org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:3.2' Here is the exact error from the build: [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2'
in repository central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. I am confused that there are two
sonar-squid-java-plugin with two completely different Maven groupId’s… Maybe I need to modify
the dependency from: 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' To 'org.codehaus.sonar-plugins.java:sonar-squid-java-plugin:jar:3.2' ??? Thanks, Bob From: Evgeny Mandrikov [mailto:[hidden email]]
You are looking on a wrong path, correct one is http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar-plugins/java/sonar-squid-java-plugin/ On Tue, Nov 6, 2012 at 8:14 PM, Bob Bick <[hidden email]> wrote: Evgeny, Thanks for the quick response! I added that repository a while ago; however, it does not have the
sonar-squid-java-plugin. Here is the link: http://repository-sonarplugins.forge.cloudbees.com/snapshot/org/codehaus/sonar/plugins/ and I see these plugins: sonar-checkstyle-plugin/ 2012-10-03 09:35 -
sonar-cobertura-plugin/ 2012-10-03 09:35 -
sonar-core-plugin/ 2012-10-03 09:35 -
sonar-cpd-plugin/ 2012-10-03 09:35 -
sonar-dbcleaner-plugin/ 2012-10-03 09:35 -
sonar-design-plugin/ 2012-10-03 09:35 -
sonar-email-notifications-plugin/ 2012-10-03 09:35 -
sonar-findbugs-plugin/ 2012-10-03 09:35 -
sonar-jacoco-plugin/ 2012-10-03 09:35 -
sonar-l10n-en-plugin/ 2012-10-03 09:35 -
sonar-pmd-plugin/ 2012-10-03 09:35 -
sonar-surefire-plugin/ I have a suspicion that builds are working for you because you have files cached in your local maven
repository… Or, you have access to privileged repositories that I do not have access to. I’d be curious as to what repo you are finding this artifact in ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2'). Thanks again, Bob From: Evgeny Mandrikov [mailto:[hidden email]]
Hi Bob, On Tue, Nov 6, 2012 at 7:54 PM, Bob Bick <[hidden email]> wrote: Hi Simon, I assume that the missing artifact ('org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2')
is in this repository: http://repository.sonarsource.org/content/repositories/sonar/ I added that repository; however, I noticed that if I try to access this URL: http://repository.sonarsource.org/content/repositories/sonar/org/codehaus/sonar/plugins/ I get an error message:
You are not authorized. Is this repository restricted access? Thanks, Bob From: Bob Bick [mailto:[hidden email]]
Simon, thanks for the quick response. When I try to build that, I get this error: C:\SonarJavaGitRepo\sonar-java>mvn install C:\SonarJavaGitRepo\sonar-java>echo off [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Sonar Java [INFO] Sonar Java :: Squid [INFO] Sonar Java :: Checks [INFO] Sonar Java :: Squid Plugin [INFO] Sonar Java :: Sonar Plugin [INFO] Sonar Java :: SSLR Toolkit [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Checking for local modifications: skipped. [INFO] Updating project files from SCM: skipped. [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildNumber: 12afa36b232b1b5f3e026be2b16120efa3909e05 at timestamp: 1352216130707 [INFO] Executing: cmd.exe /X /C "git rev-parse --verify HEAD" [INFO] Working directory: C:\SonarJavaGitRepo\sonar-java [INFO] Storing buildScmBranch: UNKNOWN [INFO] [enforcer:enforce {execution: enforce}] [INFO] [license:check {execution: enforce-license-headers}] [INFO] Checking licenses... [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [animal-sniffer:check {execution: enforce-java-api-compatibility}] [INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0 [INFO] [source:jar-no-fork {execution: attach-sources}] [INFO] [install:install {execution: default-install}] [INFO] Installing C:\SonarJavaGitRepo\sonar-java\pom.xml to C:\Users\bbick\.m2\repository\org\codehaus\sonar-plugins\java\java\1.1-SNAPSHOT\ java-1.1-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar Java :: Squid [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [buildnumber:create {execution: default}] [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
public (http://public) [INFO] Unable to find resource 'org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2' in repository
central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfil e=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.sonar.plugins -DartifactId=sonar-squid-java-plugin -Dversion=3.2
-Dpackaging=jar -Dfile= /path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.codehaus.sonar-plugins.java:java-squid:jar:1.1-SNAPSHOT 2) org.codehaus.sonar.plugins:sonar-squid-java-plugin:jar:3.2 Any insights would be much appreciated. Bob From: Simon Brandhof [[hidden email]]
Hi, On 5 November 2012 21:00, Bob Bick <[hidden email]> wrote: Hi, I am running into a similar problem trying to build Sonar. I cloned the repository today and tried
to build; but, got this error: [INFO] ------------------------------------------------------------------------ [INFO] Building Sonar :: Plugins :: Cobertura [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [buildnumber:create {execution: default}] [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-source [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
sonar-plugins [INFO] snapshot org.codehaus.sonar-plugins.java:sonar-java-plugin:1.1-SNAPSHOT: checking for updates from
public [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-source (http://repository.sonarsource.org/content/repositories/sonar) [INFO] Unable to find resource
'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository sonar-plugins (http://repository-sonarplugins.forge.cloudbees.com/snapshot/) [INFO] Unable to find resource 'org.codehaus.sonar-plugins.java:sonar-java-plugin:pom:1.1-SNAPSHOT' in repository
public (http://public) |
