BrunoCarlo 4 de mai. de 2010
Desculpe a ignorancia… mas That is ‘sonar’?
Romulinho 4 de mai. de 2010
Executa o plugin colocando “-e” pra que a gente possa ver a execeção:
mvn -Dmaven.test.skip=true -e clean install sonar:sonar
BrunoCarlo 4 de mai. de 2010
Bom... apesar de não saber o que é o 'sonar' pelo maven... se vc der uma olhada vc pode verificar...
A msg:
# [ INFO ] Failed to resolve artifact .
#
# GroupId : org . codehaus . sonar . runtime
# ArtifactId : sonar - core - maven - plugin
# Version : 20100503175859
#
# Reason : Unable to download the artifact from any repository
#
# org . codehaus . sonar . runtime : sonar - core - maven - plugin : pom : 20100503175859
Ele não achou a dependencia com a versão especificada... verifique isto e tente novamente.. pode ser atraves de um mvn dependency:resolve
anderson.bonavides 4 de mai. de 2010
Romulinho:
Executa o plugin colocando "-e" pra que a gente possa ver a execeção:
mvn -Dmaven.test.skip=true -e clean install sonar:sonar
Este foi o novo comando:
mvn -Dmaven.test.skip=true -e clean install sonar:sonar
+ Error stacktraces are turned on .
[ INFO ] Scanning for projects ...
[ INFO ] Searching repository for plugin with prefix : ' sonar ' .
[ INFO ] org . apache . maven . plugins : checking for updates from simplestec - plugin
[ WARNING ] repository metadata for : ' org . apache . maven . plugins ' could not be retri
eved from repository : simplestec - plugin due to an error : Error transferring file
[ INFO ] Repository ' simplestec - plugin ' will be blacklisted
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Building Arrecadacao
[ INFO ] task - segment : [ clean , install ]
[ INFO ] ------------------------------------------------------------------------
[ INFO ] [ clean : clean ]
[ INFO ] Deleting directory C : \ ambiente \ sistemas \ arrecadacao \ target
[ INFO ] [ resources : resources ]
[ INFO ] Using default encoding to copy filtered resources .
[ INFO ] snapshot com . simplestec : infra - jsf : 1.0 - SNAPSHOT : checking for updates from
simplestec - snapshots
[ WARNING ] repository metadata for : ' snapshot com . simplestec : infra - jsf : 1.0 - SNAPSH
OT ' could not be retrieved from repository : simplestec - snapshots due to an error
: Error transferring file
[ INFO ] Repository ' simplestec - snapshots ' will be blacklisted
[ INFO ] artifact commons - collections : commons - collections : checking for updates fr
om simplestec
[ WARNING ] repository metadata for : ' artifact commons - collections : commons - collect
ions ' could not be retrieved from repository : simplestec due to an error : Error
transferring file
[ INFO ] Repository ' simplestec ' will be blacklisted
Downloading : http : //plutao:8080/artifactory/libs-releases/it/sauronsoftware/cron
4 j / 2.0.1 / cron4j -2.0.1 . pom
Downloading : http : //plutao:8080/artifactory/libs-snapshots/it/sauronsoftware/cro
n4j / 2.0.1 / cron4j -2.0.1 . pom
Downloading : http : //plutao:8080/artifactory/libs-releases/org/ajax4jsf/ajax4jsf/
1.1.1 / ajax4jsf -1.1.1 . pom
Downloading : http : //plutao:8080/artifactory/libs-snapshots/org/ajax4jsf/ajax4jsf
/ 1.1.1 / ajax4jsf -1.1.1 . pom
[ INFO ] [ compiler : compile ]
[ INFO ] Compiling 557 source files to C : \ ambiente \ sistemas \ arrecadacao \ target \ cla
sses
[ INFO ] [ resources : testResources ]
[ INFO ] Using default encoding to copy filtered resources .
[ INFO ] [ compiler : testCompile ]
[ INFO ] Not compiling test sources
[ INFO ] [ surefire : test ]
[ INFO ] Tests are skipped .
[ INFO ] [ jasperreports : compile - reports { execution : default }]
[ INFO ] Nothing to compile - all Jasper reports are up to date
[ INFO ] [ war : war ]
[ INFO ] Packaging webapp
[ INFO ] Assembling webapp [ arrecadacao ] in [ C : \ ambiente \ sistemas \ arrecadacao \ targe
t \ arrecadacao ]
[ INFO ] Processing war project
[ INFO ] Webapp assembled in [ 34063 msecs ]
[ INFO ] Building war : C : \ ambiente \ sistemas \ arrecadacao \ target \ arrecadacao . war
[ INFO ] [ install : install ]
[ INFO ] Installing C : \ ambiente \ sistemas \ arrecadacao \ target \ arrecadacao . war to C : \
Documents and Settings \ anderson . matos \ . m2 \ repository \ com \ simplestec \ arrecadacao \
1.0 - SNAPSHOT \ arrecadacao -1.0 - SNAPSHOT . war
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Building Arrecadacao
[ INFO ] task - segment : [ sonar : sonar ] ( aggregator - style )
[ INFO ] ------------------------------------------------------------------------
[ INFO ] [ sonar : sonar ]
[ INFO ] Sonar host : http : //10.71.197.17:9000
[ INFO ] Sonar version : 2.0.1
Downloading : http : //10.71.197.17:9000/deploy/maven/org/codehaus/sonar/runtime/so
nar - core - maven - plugin / 20100503175859 / sonar - core - maven - plugin -20100503175859. pom
Downloading : http : //plutao:8080/artifactory/plugins-releases-local/org/codehaus/
sonar / runtime / sonar - core - maven - plugin / 20100503175859 / sonar - core - maven - plugin -201
[ telefone removido ]. pom
Downloading : http : //plutao:8080/artifactory/plugins-releases/org/codehaus/sonar/
runtime / sonar - core - maven - plugin / 20100503175859 / sonar - core - maven - plugin -201005031
75859. pom
Downloading : http : //plutao:8080/artifactory/plugins-snapshots/org/codehaus/sonar
/ runtime / sonar - core - maven - plugin / 20100503175859 / sonar - core - maven - plugin -20100503
175859. pom
Downloading : http : //10.71.197.17:9000/deploy/maven/org/codehaus/sonar/runtime/so
nar - core - maven - plugin / 20100503175859 / sonar - core - maven - plugin -20100503175859. pom
Downloading : http : //plutao:8080/artifactory/libs-releases/org/codehaus/sonar/run
time / sonar - core - maven - plugin / 20100503175859 / sonar - core - maven - plugin -201005031758
59. pom
Downloading : http : //plutao:8080/artifactory/libs-snapshots/org/codehaus/sonar/ru
ntime / sonar - core - maven - plugin / 20100503175859 / sonar - core - maven - plugin - [ telefone removido ]
859. pom
[ INFO ] ------------------------------------------------------------------------
[ ERROR ] BUILD ERROR
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Failed to resolve artifact .
GroupId : org . codehaus . sonar . runtime
ArtifactId : sonar - core - maven - plugin
Version : 20100503175859
Reason : Unable to download the artifact from any repository
org . codehaus . sonar . runtime : sonar - core - maven - plugin : pom : 20100503175859
from the specified remote repositories :
central ( http : //plutao:8080/artifactory/libs-releases),
simplestec - snapshots ( http : //pipa:8080/artifactory/repo),
sonar ( http : //10.71.197.17:9000/deploy/maven),
simplestec ( http : //pipa:8080/artifactory/repo),
snapshots ( http : //plutao:8080/artifactory/libs-snapshots),
simplestec - plugin ( http : //pipa:8080/artifactory/repo),
simplestec - plugin - snapshots ( http : //pipa:8080/artifactory/repo)
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Trace
org . apache . maven . lifecycle . LifecycleExecutionException : Can not execute Sonar
at org . apache . maven . lifecycle . DefaultLifecycleExecutor . executeGoals ( Defa
ultLifecycleExecutor . java : 583 )
at org . apache . maven . lifecycle . DefaultLifecycleExecutor . executeStandalone
Goal ( DefaultLifecycleExecutor . java : 512 )
at org . apache . maven . lifecycle . DefaultLifecycleExecutor . executeGoal ( Defau
ltLifecycleExecutor . java : 482 )
at org . apache . maven . lifecycle . DefaultLifecycleExecutor . executeGoalAndHan
dleFailures ( DefaultLifecycleExecutor . java : 330 )
at org . apache . maven . lifecycle . DefaultLifecycleExecutor . executeTaskSegmen
ts ( DefaultLifecycleExecutor . java : 227 )
at org . apache . maven . lifecycle . DefaultLifecycleExecutor . execute ( DefaultLi
fecycleExecutor . java : 142 )
at org . apache . maven . DefaultMaven . doExecute ( DefaultMaven . java : 336 )
at org . apache . maven . DefaultMaven . execute ( DefaultMaven . java : 129 )
at org . apache . maven . cli . MavenCli . main ( MavenCli . java : 287 )
at sun . reflect . NativeMethodAccessorImpl . invoke0 ( Native Method )
at sun . reflect . NativeMethodAccessorImpl . invoke ( NativeMethodAccessorImpl .
java : 39 )
at sun . reflect . DelegatingMethodAccessorImpl . invoke ( DelegatingMethodAcces
sorImpl . java : 25 )
at java . lang . reflect . Method . invoke ( Method . java : 585 )
at org . codehaus . classworlds . Launcher . launchEnhanced ( Launcher . java : 315 )
at org . codehaus . classworlds . Launcher . launch ( Launcher . java : 255 )
at org . codehaus . classworlds . Launcher . mainWithExitCode ( Launcher . java : 430 )
at org . codehaus . classworlds . Launcher . main ( Launcher . java : 375 )
Caused by : org . apache . maven . plugin . MojoExecutionException : Can not execute Sonar
at org . codehaus . mojo . sonar . Bootstraper . executeMojo ( Bootstraper . java : 87 )
at org . codehaus . mojo . sonar . Bootstraper . start ( Bootstraper . java : 65 )
at org . codehaus . mojo . sonar . SonarMojo . execute ( SonarMojo . java : 117 )
at org . apache . maven . plugin . DefaultPluginManager . executeMojo ( DefaultPlugi
nManager . java : 451 )
at org . apache . maven . lifecycle . DefaultLifecycleExecutor . executeGoals ( Defa
ultLifecycleExecutor . java : 558 )
... 16 more
Caused by : org . apache . maven . plugin . InvalidPluginException : Unable to build proje
ct for plugin ' org . codehaus . sonar . runtime : sonar - core - maven - plugin ' : POM ' org . cod
ehaus . sonar . runtime : sonar - core - maven - plugin ' not found in repository : Unable to
download the artifact from any repository
org . codehaus . sonar . runtime : sonar - core - maven - plugin : pom : 20100503175859
from the specified remote repositories :
central ( http : //plutao:8080/artifactory/libs-releases),
simplestec - snapshots ( http : //pipa:8080/artifactory/repo),
sonar ( http : //10.71.197.17:9000/deploy/maven),
simplestec ( http : //pipa:8080/artifactory/repo),
snapshots ( http : //plutao:8080/artifactory/libs-snapshots),
simplestec - plugin ( http : //pipa:8080/artifactory/repo),
simplestec - plugin - snapshots ( http : //pipa:8080/artifactory/repo)
for project org . codehaus . sonar . runtime : sonar - core - maven - plugin
at org . apache . maven . plugin . DefaultPluginManager . checkRequiredMavenVersio
n ( DefaultPluginManager . java : 281 )
at org . apache . maven . plugin . DefaultPluginManager . verifyVersionedPlugin ( De
faultPluginManager . java : 197 )
at org . apache . maven . plugin . DefaultPluginManager . verifyPlugin ( DefaultPlug
inManager . java : 176 )
at org . codehaus . mojo . sonar . Bootstraper . executeMojo ( Bootstraper . java : 72 )
... 20 more
Caused by : org . apache . maven . project . ProjectBuildingException : POM ' org . codehaus .
sonar . runtime : sonar - core - maven - plugin ' not found in repository : Unable to downlo
ad the artifact from any repository
org . codehaus . sonar . runtime : sonar - core - maven - plugin : pom : 20100503175859
from the specified remote repositories :
central ( http : //plutao:8080/artifactory/libs-releases),
simplestec - snapshots ( http : //pipa:8080/artifactory/repo),
sonar ( http : //10.71.197.17:9000/deploy/maven),
simplestec ( http : //pipa:8080/artifactory/repo),
snapshots ( http : //plutao:8080/artifactory/libs-snapshots),
simplestec - plugin ( http : //pipa:8080/artifactory/repo),
simplestec - plugin - snapshots ( http : //pipa:8080/artifactory/repo)
for project org . codehaus . sonar . runtime : sonar - core - maven - plugin
at org . apache . maven . project . DefaultMavenProjectBuilder . findModelFromRepo
sitory ( DefaultMavenProjectBuilder . java : 603 )
at org . apache . maven . project . DefaultMavenProjectBuilder . buildFromReposito
ry ( DefaultMavenProjectBuilder . java : 249 )
at org . apache . maven . plugin . DefaultPluginManager . checkRequiredMavenVersio
n ( DefaultPluginManager . java : 265 )
... 23 more
Caused by : org . apache . maven . artifact . resolver . ArtifactNotFoundException : Unable
to download the artifact from any repository
org . codehaus . sonar . runtime : sonar - core - maven - plugin : pom : 20100503175859
from the specified remote repositories :
central ( http : //plutao:8080/artifactory/libs-releases),
simplestec - snapshots ( http : //pipa:8080/artifactory/repo),
sonar ( http : //10.71.197.17:9000/deploy/maven),
simplestec ( http : //pipa:8080/artifactory/repo),
snapshots ( http : //plutao:8080/artifactory/libs-snapshots),
simplestec - plugin ( http : //pipa:8080/artifactory/repo),
simplestec - plugin - snapshots ( http : //pipa:8080/artifactory/repo)
at org . apache . maven . artifact . resolver . DefaultArtifactResolver . resolve ( De
faultArtifactResolver . java : 212 )
at org . apache . maven . artifact . resolver . DefaultArtifactResolver . resolve ( De
faultArtifactResolver . java : 74 )
at org . apache . maven . project . DefaultMavenProjectBuilder . findModelFromRepo
sitory ( DefaultMavenProjectBuilder . java : 556 )
... 25 more
Caused by : org . apache . maven . wagon . ResourceDoesNotExistException : Unable to downl
oad the artifact from any repository
at org . apache . maven . artifact . manager . DefaultWagonManager . getArtifact ( Def
aultWagonManager . java : 331 )
at org . apache . maven . artifact . resolver . DefaultArtifactResolver . resolve ( De
faultArtifactResolver . java : 200 )
... 27 more
[ INFO ] ------------------------------------------------------------------------
[ INFO ] Total time : 4 minutes 4 seconds
[ INFO ] Finished at : Tue May 04 14 : 16 : 39 GMT -03 : 00 2010
[ INFO ] Final Memory : 19 M / 60 M
[ INFO ] ------------------------------------------------------------------------