0

我正在尝试构建一个遗留项目,该项目具有扭矩等依赖项。当我尝试执行命令时mvn torque:create-db

但我看到以下错误

 D:\someproject\cps-rfq\someproject-new\someproject>mvn torque:create-db
 [INFO] Scanning for projects...
 [INFO] ------------------------------------------------------------------------
 [ERROR] FATAL ERROR
 [INFO] ------------------------------------------------------------------------
 [INFO] The plugin descriptor for the plugin Plugin [torque:maven-torque-plugin]
 was not found. Please verify that the plugin JAR D:\someproject\cps-rfq\lib\torque\ma
 ven-torque-plugin\3.3-RC3\maven-torque-plugin-3.3-RC3.jar is intact.
 [INFO] ------------------------------------------------------------------------
 [INFO] Trace
 java.lang.IllegalStateException: The plugin descriptor for the plugin Plugin [to
 rque:maven-torque-plugin] was not found. Please verify that the plugin JAR D:\IR
 DEV\cps-rfq\lib\torque\maven-torque-plugin\3.3-RC3\maven-torque-plugin-3.3-RC3.
 jar is intact.
         at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginM
 anager.java:360)
         at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(De
 faultPluginManager.java:224)
         at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
 inManager.java:184)
         at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(Def
 aultPluginManager.java:1642)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Defa
 ultLifecycleExecutor.java:1540)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
 (DefaultLifecycleExecutor.java:1787)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
 AggregationNeeds(DefaultLifecycleExecutor.java:462)
         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
 fecycleExecutor.java:175)
         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
         at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
         at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
 0)
         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:597)
         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)
 [INFO] ------------------------------------------------------------------------
 [INFO] Total time: < 1 second
 [INFO] Finished at: Sat Jun 29 11:56:10 IST 2013
 [INFO] Final Memory: 1M/15M
 [INFO] ------------------------------------------------------------------------

但我可以D:\someproject\cps-rfq\lib\torque\maven-torque-plugin\3.3-RC3\maven-torque-plugin-3.3-RC3.jar在 repo 中看到该文件。

4

1 回答 1

1

我建议使用这样的最终版本:

mvn torque:maven-torque-plugin:3.3:create-db

此外,我建议首先尝试删除本地存储库中的文件夹:

D:\someproject\cps-rfq\lib\torque

并重试您的构建,因为使用 RC 版本而不是发布版本看起来很奇怪。

于 2013-06-29T17:28:23.563 回答