2016-07-20 7 views
0

mavenビルドを実行するときに次のエラーが発生します。クラスをインストルメントすることができないようです。誰が原因なのか考えているのですか?おかげさまで ここ は、出力を構築です:Mavenビルドで計測器クラスが失敗する

[ERROR] Failed to execute goal org.javalite:activejdbc-instrumentation:1.4.11:instrument (default) on project xtm2rest: Failed to add output directory to classpath: org.javalite.instrumentation.InstrumentationException: javassist.NotFoundException: modelClass(..) is not found in org.javalite.activejdbc.Model -> [Help 1] 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.javalite:activejdbc-instrumentation:1.4.11:instrument (default) on project xtm2rest: Failed to add output directory to classpath 
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) 
    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:116) 
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) 
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) 
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) 
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347) 
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154) 
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) 
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213) 
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:497) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) 
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) 
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to add output directory to classpath 
    at org.javalite.instrumentation.ActiveJdbcInstrumentationPlugin.execute(ActiveJdbcInstrumentationPlugin.java:88) 
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) 
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 
    ... 19 more 
Caused by: java.lang.RuntimeException: org.javalite.instrumentation.InstrumentationException: javassist.NotFoundException: modelClass(..) is not found in org.javalite.activejdbc.Model 
    at org.javalite.instrumentation.Instrumentation.instrument(Instrumentation.java:70) 
    at org.javalite.instrumentation.ActiveJdbcInstrumentationPlugin.instrument(ActiveJdbcInstrumentationPlugin.java:124) 
    at org.javalite.instrumentation.ActiveJdbcInstrumentationPlugin.execute(ActiveJdbcInstrumentationPlugin.java:82) 
    ... 21 more 
Caused by: org.javalite.instrumentation.InstrumentationException: javassist.NotFoundException: modelClass(..) is not found in org.javalite.activejdbc.Model 
    at org.javalite.instrumentation.ModelInstrumentation.instrument(ModelInstrumentation.java:43) 
    at org.javalite.instrumentation.Instrumentation.instrument(Instrumentation.java:57) 
    ... 23 more 
Caused by: javassist.NotFoundException: modelClass(..) is not found in org.javalite.activejdbc.Model 
    at javassist.CtClassType.getDeclaredMethod(CtClassType.java:1210) 
    at org.javalite.instrumentation.ModelInstrumentation.doInstrument(ModelInstrumentation.java:51) 
    at org.javalite.instrumentation.ModelInstrumentation.instrument(ModelInstrumentation.java:40) 
    ... 24 more 
+0

私はそのような例外を見たことがありません。このように壊れているので、私は再現できますか? – ipolevoy

+0

また、エラー: 'NotFoundException:modelClass(..)がorg.javalite.activejdbc.Model'に見つかりません。クラスパス上に複数のバージョンのActiveJDBCを持つことができますか、またはインストゥルメンテーションプラグインとActiveJDBCライブラリの異なるバージョンを使用できる方法はありますか? – ipolevoy

答えて

0

あなたはどんなより多くの情報を追加していないので、私はあなたのactivejdbc-instrumentationプラグインのバージョンとactivejdbcが異なっていることだけで推測することができます。両方が同じバージョンであることを確認してください。

+0

はい、それが問題でした。彼らは異なったバージョンでした。ご協力いただきありがとうございます。 – csm86

関連する問題