Quantcast

[sonar-dev] trouble with build sonar: sonar-java-plugin

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[sonar-dev] trouble with build sonar: sonar-java-plugin

Javier Londoño
Hi Guys!!!
 
I have a trouble when i try build sonar with mvn install comand.  The error is the next:
 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.142s
[INFO] Finished at: Wed Sep 12 00:01:50 COT 2012
[INFO] Final Memory: 6M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT -> [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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:104)
 at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:244)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:187)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
 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:314)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:156)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:165)
 ... 22 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifacts(DefaultRepositorySystem.java:258)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:288)
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
 ... 23 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:479)
 ... 26 more
[ERROR]
[ERROR]
 
Can help me Guys?  Must i set some extra repositories in the pom files? i forget something?
 
Thanks guys and regards!!!

--
Cordialmente
 
Javier O. Londoño C.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] trouble with build sonar: sonar-java-plugin

Eric Hartmann-2
Hi Javier,

In order to compile Sonar from the git master, you either need to :
Please note that the current state of Sonar 3.3-SNAPSHOT is not considered as stable.

Cheers,

Eric Hartmann


On 12 September 2012 16:11, Javier Londoño <[hidden email]> wrote:
Hi Guys!!!
 
I have a trouble when i try build sonar with mvn install comand.  The error is the next:
 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.142s
[INFO] Finished at: Wed Sep 12 00:01:50 COT 2012
[INFO] Final Memory: 6M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT -> [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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:104)
 at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:244)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:187)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
 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:314)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:156)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:165)
 ... 22 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifacts(DefaultRepositorySystem.java:258)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:288)
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
 ... 23 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:479)
 ... 26 more
[ERROR]
[ERROR]
 
Can help me Guys?  Must i set some extra repositories in the pom files? i forget something?
 
Thanks guys and regards!!!

--
Cordialmente
 
Javier O. Londoño C.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] trouble with build sonar: sonar-java-plugin

Evgeny Mandrikov
In reply to this post by Javier Londoño
Hi,

Currently we have a snapshot dependency on https://github.com/SonarSource/sonar-java which is available in repository http://repository-sonarplugins.forge.cloudbees.com/snapshot/

On Wed, Sep 12, 2012 at 8:11 PM, Javier Londoño <[hidden email]> wrote:
Hi Guys!!!
 
I have a trouble when i try build sonar with mvn install comand.  The error is the next:
 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.142s
[INFO] Finished at: Wed Sep 12 00:01:50 COT 2012
[INFO] Final Memory: 6M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT -> [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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:104)
 at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:244)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:187)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
 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:314)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:156)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:165)
 ... 22 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifacts(DefaultRepositorySystem.java:258)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:288)
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
 ... 23 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:479)
 ... 26 more
[ERROR]
[ERROR]
 
Can help me Guys?  Must i set some extra repositories in the pom files? i forget something?
 
Thanks guys and regards!!!

--
Cordialmente
 
Javier O. Londoño C.




--
Best regards,
Evgeny Mandrikov aka Godin <http://godin.net.ru>
http://twitter.com/_godin_
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] trouble with build sonar: sonar-java-plugin

Javier Londoño
In reply to this post by Eric Hartmann-2
Thanks for your fast responses Eric and Evgeny.
 
I will try your tips and i will comment my results.
 
Thanks again and regards!!!!

2012/9/12 Eric Hartmann <[hidden email]>
Hi Javier,

In order to compile Sonar from the git master, you either need to :
Please note that the current state of Sonar 3.3-SNAPSHOT is not considered as stable.

Cheers,

Eric Hartmann



On 12 September 2012 16:11, Javier Londoño <[hidden email]> wrote:
Hi Guys!!!
 
I have a trouble when i try build sonar with mvn install comand.  The error is the next:
 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.142s
[INFO] Finished at: Wed Sep 12 00:01:50 COT 2012
[INFO] Final Memory: 6M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project sonar-application: Could not resolve dependencies for project org.codehaus.sonar:sonar-application:jar:3.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT -> [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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:190)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:104)
 at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:244)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:187)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
 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:314)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 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.3-SNAPSHOT: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:156)
 at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:165)
 ... 22 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:488)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifacts(DefaultRepositorySystem.java:258)
 at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:288)
 at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
 ... 23 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.codehaus.sonar-plugins.java:sonar-java-plugin:jar:1.0-SNAPSHOT
 at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:479)
 ... 26 more
[ERROR]
[ERROR]
 
Can help me Guys?  Must i set some extra repositories in the pom files? i forget something?
 
Thanks guys and regards!!!

--
Cordialmente
 
Javier O. Londoño C.





--
Cordialmente
 
Javier O. Londoño C.

Loading...