douke6881 2012-06-12 19:56
浏览 52

用于phpunit的maven php插件无法加载

Walked through the install steps over at http://www.php-maven.org/tags/2.0.0/php-lib-5min.html ...

Using: Maven 3.0.3, PHP 5.3.13, maven-php-plugin 2.0.0, phpunit 3.6.10.

The project has only the stub LibraryClass.php and LibraryClassTest.php dropped in by the project builder call.

When i run 'mvn package' in the last step of their guide i'm getting:

Caused by: org.apache.xbean.recipe.MissingAccessorException: Unable to find a valid setter method: public void org.phpmaven.phpunit.impl.PhpunitSupport360.setSingleInvocation(...)

Looking at the javadoc for PhpunitSupport360, that method doesn't exist. As everything was installed by maven (and pear) i'm not sure what's going on. The guide says to user Maven v3.

  • 写回答

1条回答 默认 最新

  • du3669 2012-06-17 13:15
    关注

    Seems that it loads a wrong plugin. For me it works.

    You shoud ensure that it really loads the correct plugin versions. If you try to change the php-maven plugin version (f.e. to 2.0-SNAPSHOT) you should use the corresponding php-parent-pom and use the property ${phpmaven.plugin.version} as version. or simply remove any version number from the php-maven plugins because the version numbers are managed by the php-parent-pom.

    You may look at the output of mvn help:effective-pom to see what is going on and what versions for the plugins are used.

    评论

报告相同问题?

悬赏问题

  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教