私は、HudsonへのAntビルド接続を備えたSonarの新しいバージョンを使用しています。
コンソールで次のエラーが発生します。
ビルドは成功しますが、最終的にはMavenで失敗します。私はSonar-AntTargetのみを使用しています。私はpomで何もしていません。
[sonar:sonar] [INFO]データベースの最適化が完了しました:421 ms BUILD SUCCESSFUL合計時間:49秒[workspace] $ mvn.bat -f "C:\ Documents and Settings \ hegdera.hudson \ jobs \ ZOOR2 \ワークスペース\pom。 xml "-e -B sonar:sonar -Dsonar.host.url = http:// localhost:8001+エラースタックトレースがオンになっています。[INFO]プロジェクトをスキャンしています...[INFO]プレフィックスが「sonar」のプラグインのリポジトリを検索しています。[INFO]利用可能なプラグインアップデートを無視する:Mavenバージョン3.0が必要なため2.0-beta-2 [INFO]利用可能なプラグインアップデートを無視する:Mavenバージョン3.0が必要なため2.0-beta-1 [INFO] --------- -------------------------------------------------- ------------- [INFO] Building Mavenデフォルトプロジェクト[INFO]タスクセグメント:[sonar:ソナー](アグリゲータースタイル)[情報] ---------------------------------------- - - - - - - - - - - - - - - - - [情報] - - - - - - - - -------------------------------------------------- -------[エラー]ビルドエラー[情報]----------------------------------- ------------------------------------- [INFO] mojo:sonarを実行できません。既存のpom.xmlを持つプロジェクトが必要ですが、ビルドではプロジェクトを使用していません。[情報] - - - - - - - - - - - - - - - - - - - - - - - - ------------------------- [INFO]トレースorg.apache.maven.lifecycle.LifecycleExecutionException:mojo:sonarを実行できません。既存のpom.xmlを持つプロジェクトが必要ですが、ビルドではプロジェクトを使用していません。org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)でorg.apache.maven.lifecycle.DefaultLifecycleExecutorで。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)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)原因:org.apache.maven.plugin.MojoExecutionException:mojo:sonarを実行できません。既存のpom.xmlを持つプロジェクトが必要ですが、ビルドではプロジェクトを使用していません。org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:414)のorg.apache.maven.lifecycleで。
誰かがこれを解決する方法を教えてくれますか?