2

我正在尝试遵循 Maven 和 Zend 的 10 分钟安装指南(http://www.php-maven.org/branches/2.0-SNAPSHOT/php-zend-10min.html)但是当我运行“mvn package”时在我的项目中,我得到

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager getting plugin 'org.apache.maven.plugins:maven-clean-plugin': Plugin 'org.apache.maven.plugins:maven-clean-plugin:2.2' has an invalid descriptor:
1) Plugin's descriptor contains the wrong group ID: org.phpmaven
2) Plugin's descriptor contains the wrong artifact ID: maven-php-plugin
3) Plugin's descriptor contains the wrong version: 2.0.2

每时每刻。

我已经尝试删除我的本地存储库,但它没有用。

mvn package -e 返回:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Internal error in the plugin manager getting plugin 'org.apache.maven.plugins:maven-plugin-plugin': Plugin 'org.apache.maven.plugins:maven-plugin-plugin:2.4.3' has an invalid descriptor:
1) Plugin's descriptor contains the wrong group ID: org.phpmaven
2) Plugin's descriptor contains the wrong artifact ID: maven-php-plugin
3) Plugin's descriptor contains the wrong version: 2.0.2
[INFO] ------------------------------------------------------------------------
[INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager getting plugin 'org.apache.maven.plugins:maven-plugin-plugin': Plugin 'org.apache.maven.plugins:maven-plugin-plugin:2.4.3' has an invalid descriptor:
1) Plugin's descriptor contains the wrong group ID: org.phpmaven
2) Plugin's descriptor contains the wrong artifact ID: maven-php-plugin
3) Plugin's descriptor contains the wrong version: 2.0.2
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1544)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1851)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
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:60)
at sun.reflect.NativeMethodAccessorImpl.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)
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)
Caused by: org.apache.maven.plugin.PluginManagerException: Plugin 'org.apache.maven.plugins:maven-plugin-plugin:2.4.3' has an invalid descriptor:
1) Plugin's descriptor contains the wrong group ID: org.phpmaven
2) Plugin's descriptor contains the wrong artifact ID: maven-php-plugin
3) Plugin's descriptor contains the wrong version: 2.0.2
at org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:330)
at org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:224)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:184)
at org.apache.maven.plugin.DefaultPluginManager.loadPluginDescriptor(DefaultPluginManager.java:1642)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1540)
... 19 more
4

1 回答 1

0

在 php-parent-pom/pom.xml 中声明 maven-php-plugin 的方式存在错误

编辑此文件并删除 <extensions> 节点,并将 <extensions>true</extensions> 添加到 maven-php-plugin <plugin> 定义中

于 2013-11-25T20:35:02.697 回答