Solrmeter编译错误:方法未重写或实现超类型中的方法
我不是一个JAVA爱好者,为了测试我的Solr安装程序,我试图从 并得到一个编译错误 方法不会重写或实现超类型中的方法 错误似乎出现在两个位置Solrmeter编译错误:方法未重写或实现超类型中的方法,solr,solrmeter,Solr,Solrmeter,我不是一个JAVA爱好者,为了测试我的Solr安装程序,我试图从 并得到一个编译错误 方法不会重写或实现超类型中的方法 错误似乎出现在两个位置 java:[85,2] solrmeter\src\main\java\com\plugtree\solrmeter\model\operation\ConstantOperationExecutorThread.java:[85,2]错误:方法不重写或实现超类型中的方法 java:[246,2] \Users\Sarge\solrmeter\solr
solrmeter\src\main\java\com\plugtree\solrmeter\model\operation\ConstantOperationExecutorThread.java:[85,2]错误:方法不重写或实现超类型中的方法
C:\Users\Sarge\solrmeter>mvn package -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.plugtree:solrmeter:jar:0.3.1-SNAPSHOT
[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.plugtree:stressTestScope:jar:1.0.1-SNAPSHOT
[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.plugtree:solrmeter-parent:pom:0.3.1-SNAPSHOT
[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter. @ line 227, column 36
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Solrmeter parent POM [pom]
[INFO] StressTestScope [jar]
[INFO] SolrMeter [jar]
[INFO]
[INFO] -------------------< com.plugtree:solrmeter-parent >--------------------
[INFO] Building Solrmeter parent POM 0.3.1-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --------------------< com.plugtree:stressTestScope >--------------------
[INFO] Building StressTestScope 1.0.1-SNAPSHOT [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ stressTestScope ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Sarge\solrmeter\stressTestScope\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ stressTestScope ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ stressTestScope ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\Sarge\solrmeter\stressTestScope\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ stressTestScope ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ stressTestScope ---
[INFO] Surefire report directory: C:\Users\Sarge\solrmeter\stressTestScope\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.plugtree.stressTestScope.TestModule
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running com.plugtree.stressTestScope.TestObject
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Running com.plugtree.stressTestScope.TestScopeTestCase
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.ReflectUtils$2 (file:/C:/Users/Sarge/.m2/repository/com/google/inject/guice/2.0/guice-2.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
com.plugtree.stressTestScope.TestObject@58a90037
com.plugtree.stressTestScope.TestObject2@74294adb
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec
Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ stressTestScope ---
[INFO]
[INFO] --- maven-assembly-plugin:2.2-beta-5:single (make-assembly) @ stressTestScope ---
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO] Building jar: C:\Users\Sarge\solrmeter\stressTestScope\target\stressTestScope-1.0.1-SNAPSHOT-jar-with-dependencies.jar
[INFO] META-INF/ already added, skipping
[INFO] META-INF/MANIFEST.MF already added, skipping
[INFO]
[INFO] -----------------------< com.plugtree:solrmeter >-----------------------
[INFO] Building SolrMeter 0.3.1-SNAPSHOT [3/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ solrmeter ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 24 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ solrmeter ---
[INFO] Compiling 111 source files to C:\Users\Sarge\solrmeter\solrmeter\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \Users\Sarge\solrmeter\solrmeter\src\main\java\com\plugtree\solrmeter\model\operation\ConstantOperationExecutorThread.java:[85,2] error: method does not override or implement a method from a supertype
[ERROR] \Users\Sarge\solrmeter\solrmeter\src\main\java\com\plugtree\solrmeter\model\statistic\CacheHistoryStatistic.java:[246,2] error: method does not override or implement a method from a supertype
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Solrmeter parent POM 0.3.1-SNAPSHOT ................ SUCCESS [ 0.028 s]
[INFO] StressTestScope 1.0.1-SNAPSHOT ..................... SUCCESS [ 4.547 s]
[INFO] SolrMeter 0.3.1-SNAPSHOT ........................... FAILURE [ 4.631 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.572 s
[INFO] Finished at: 2020-09-28T08:35:50+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project solrmeter: Compilation failure: Compilation failure:
[ERROR] \Users\Sarge\solrmeter\solrmeter\src\main\java\com\plugtree\solrmeter\model\operation\ConstantOperationExecutorThread.java:[85,2] error: method does not override or implement a method from a supertype
[ERROR] \Users\Sarge\solrmeter\solrmeter\src\main\java\com\plugtree\solrmeter\model\statistic\CacheHistoryStatistic.java:[246,2] error: method does not override or implement a method from a supertype
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project solrmeter: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:64)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:656)
at org.apache.maven.plugin.CompilerMojo.execute (CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:64)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
[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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :solrmeter
C:\Users\Sarge\solrmeter>mvn包-e
[信息]错误堆栈跟踪已打开。
[信息]正在扫描项目。。。
[警告]
[警告]为com.plugtree:solrmeter:jar:0.3.1-SNAPSHOT构建有效模型时遇到一些问题
[警告]报告配置应在节中完成,而不是在maven site plugin中作为reportPlugins参数完成。
[警告]
[警告]为com.plugtree:stressTestScope:jar:1.0.1-SNAPSHOT构建有效模型时遇到一些问题
[警告]报告配置应在节中完成,而不是在maven site plugin中作为reportPlugins参数完成。
[警告]
[警告]为com.plugtree:solrmeter父级:pom:0.3.1-SNAPSHOT构建有效模型时遇到一些问题
[警告]报告配置应在节中完成,而不是在maven site plugin中作为reportPlugins参数完成。@第227行第36列
[警告]
[警告]强烈建议修复这些问题,因为它们会威胁到构建的稳定性。
[警告]
[警告]出于这个原因,未来的Maven版本可能不再支持构建这种格式错误的项目。
[警告]
[信息]------------------------------------------------------------------------
[信息]反应堆建造顺序:
[信息]
[信息]Solrmeter父级POM[POM]
[INFO]StressTestScope[jar]
[信息]SolrMeter[jar]
[信息]
[信息]--------------------------------
[信息]正在构建Solrmeter父级POM 0.3.1-SNAPSHOT[1/3]
[信息]--------------------------------------[pom]---------------------------------
[信息]
[信息]------------------------------------
[信息]构建压力测试范围1.0.1-SNAPSHOT[2/3]
[信息]------------------------------------[jar]---------------------------------
[信息]
[信息]---maven资源插件:2.6:resources(默认资源)@stressTestScope---
[信息]使用“UTF-8”编码复制筛选的资源。
[信息]跳过不存在的资源目录C:\Users\Sarge\solrmeter\stressTestScope\src\main\resources
[信息]
[信息]---maven编译器插件:2.3.2:编译(默认编译)@stressTestScope---
[信息]无需编译-所有类都是最新的
[信息]
[信息]---maven资源插件:2.6:testResources(默认testResources)@stressTestScope---
[信息]使用“UTF-8”编码复制筛选的资源。
[信息]跳过不存在的资源目录C:\Users\Sarge\solrmeter\stressTestScope\src\test\resources
[信息]
[信息]---maven编译器插件:2.3.2:testCompile(默认testCompile)@stressTestScope---
[信息]无需编译-所有类都是最新的
[信息]
[信息]---maven surefire插件:2.12.4:test(默认测试)@stressTestScope---
[信息]Surefire报告目录:C:\Users\Sarge\solrmeter\stressTestScope\target\Surefire报告
-------------------------------------------------------
T T S T S
-------------------------------------------------------
正在运行com.plugtree.stressTestScope.TestModule
测试运行:0,失败:0,错误:0,跳过:0,所用时间:0.001秒
运行com.plugtree.stressTestScope.TestObject
测试运行:0,失败:0,错误:0,跳过:0,所用时间:0秒
正在运行com.plugtree.stressTestScope.TestScopeTestCase
警告:发生了非法的反射访问操作
警告:com.google.inject.internal.cglib.core.reflecturatils$2(文件:/C:/Users/Sarge/.m2/repository/com/google/inject/guice/2.0/guice-2.0.jar)对方法java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)的非法反射访问
警告:请考虑将此报告给COM。谷歌。
警告:使用--invalize access=warn以启用对进一步非法访问操作的警告
警告:所有非法访问操作将在未来版本中被拒绝
com.plugtree.stressTestScope。TestObject@58a90037
com.plugtree.stressTestScope。TestObject2@74294adb
测试运行:3,失败:0,错误:0,跳过:0,所用时间:0.401秒
结果:
测试运行:3,失败:0,错误:0,跳过:0
[信息]
[信息]---maven jar插件:2.4:jar(默认jar)@stressTestScope---
[信息]
[信息]---maven组装插件:2.2-beta-5:单个(制作组装)@stressTestScope---
[信息]META-INF/已添加,正在跳过
[信息]META-INF/MANIFEST.MF已添加,正在跳过
[信息]构建jar:C:\Users\Sarge\solrmeter\stressTestScope\target\stressTestScope-1.0.1-SNAPSHOT-jar-with-dependencies.jar
[信息]META-INF/已添加,正在跳过
[信息]META-INF/MANIFEST.MF已添加,正在跳过
[信息]
[信息]-------------------------------------------------
[信息]建筑SolrMeter 0.3.1-快照[3/3]
[信息]------------------------------------[jar]---------------------------------
[信息]
[信息]---maven资源插件:2.6:r