Spring4.3.*Maven集成ActiveMQ5.11.4+版本冲突

版权声明:本文为博主原创文章,未经博主允许不得转载。如需转载,请在文章的明显处标明本文链接! https://blog.csdn.net/qq_24484085/article/details/81137095

Spring4.3.*Maven集成ActiveMQ5.11.4+版本冲突

 选择使用低版本

高分求解 maven spring 版本冲突

02-18

使用maven 管理代码, [code=Java]rnrn rn org.apache.maven.pluginsrn maven-surefire-pluginrn 2.12rn rn rn org.apache.maven.surefirern surefire-junit47rn 2.12rn rn rn rn[/code]rn强制使用 junit47来执行 [code=Java]rnrn[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.rn3.2:compile (default-compile) on project storm: Compilation failurern[ERROR] \work\workspace\storm\src\main\java\edu\hzsf\storm\dal\dao\BaseTestCase.rnjava:[6,7] 无法访问 junit.framework.TestCasern[ERROR] 未找到 junit.framework.TestCase 的类文件rn[ERROR] public class BaseTestCase extends AbstractDependencyInjectionSpringConternxtTestsrn[ERROR] -> [Help 1]rnorg.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal ornrg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) onrn project storm: Compilation failurern\work\workspace\storm\src\main\java\edu\hzsf\storm\dal\dao\BaseTestCase.java:[6,rn7] 无法访问 junit.framework.TestCasern未找到 junit.framework.TestCase 的类文件rnpublic class BaseTestCase extends AbstractDependencyInjectionSpringContextTestsrnrnrn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutorrn.java:213)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutorrn.java:153)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutorrn.java:145)rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjernct(LifecycleModuleBuilder.java:84)rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjernct(LifecycleModuleBuilder.java:59)rn at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBurnild(LifecycleStarter.java:183)rn at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecyclrneStarter.java:161)rn at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)rn at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)rn at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)rn at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)rn at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.rnjava:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launrncher.java:290)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.javrna:230)rn at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Larnuncher.java:409)rn at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:rn352)rnCaused by: org.apache.maven.plugin.CompilationFailureException: Compilation failrnurern\work\workspace\storm\src\main\java\edu\hzsf\storm\dal\dao\BaseTestCase.java:[6,rn7] 无法访问 junit.framework.TestCasern未找到 junit.framework.TestCase 的类文件rnpublic class BaseTestCase extends AbstractDependencyInjectionSpringContextTestsrnrnrn at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerrnMojo.java:656)rn at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)rn at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultrnBuildPluginManager.java:101)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutorrn.java:209)rn ... 19 morern[ERROR]rn[ERROR]rn[ERROR] For more information about the errors and possible solutions, please rearnd the following articles:rn[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExcrneptionrn[/code]rnrnrn出现这个问题 。 于是我把junit 版本换成3.8.1 去掉上面的pom 配置,但是还是提示上面的错误。我的单元测试是继承了rnAbstractDependencyInjectionSpringContextTests 是不是这里出现的问题? rnrn如果需要 mvn dependency:tree 或者 mvn install -X 可以联系我,所有分求解。

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试