我試圖清理並生成一個maven PHP項目,我在我的POM文件下面的代碼片段:Maven的3 + Maven的PHP-插件+ PHPUnit的不能提取藥業
<build>
<plugins>
<plugin>
<groupId>org.phpmaven</groupId>
<artifactId>maven-php-plugin</artifactId>
<version>2.0.0</version>
<extensions>true</extensions>
<configuration>
<ignoreIncludeErrors>true</ignoreIncludeErrors>
<ignoreValidate>true</ignoreValidate>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>de.phpunit</groupId>
<artifactId>PHPUnit</artifactId>
<version>3.6.10</version>
<type>phar</type>
<scope>test</scope>
</dependency>
</dependencies>
,但我一直收到以下錯誤:
org.apache.maven.lifecycle.LifecycleExecutionException:未能執行目標org.phpmaven:Maven的PHP的插件:2.0.0:項目MediaWikiTestClasses extractTestDependencies(默認extractTestDependencies):錯誤而執行unphar腳本。無法在org.apache.maven.lifecycle.internal.MojoExecutor.execute中提取/home/demo/.m2/repository/de/phpunit/PHPUnit/3.6.7/PHPUnit-3.6.7.phar (MojoExecutor.java: 217) 在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) 在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) 在有機apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle。 internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute( MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun。 reflect.NativeMethodAccessorImpl.invoke0(本機方法) 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method中.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus。 plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 引起:org.apache.maven.plugin.MojoExecutionException:執行unphar腳本時出錯。無法提取/home/demo/.m2/repository/de/phpunit/PHPUnit/3.6.7/PHPUnit-3.6.7.phar at org.phpmaven.plugin.build.AbstractPhpExtractMojo.execute(AbstractPhpExtractMojo.java:76) 在org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) 在org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ...... 19多個 引起通過:java.io.IOException:執行unphar腳本時出錯。無法在org.phpmaven.plugin.build.FileHelper.unphar(FileHelper.java:164)中提取/home/demo/.m2/repository/de/phpunit/PHPUnit/3.6.7/PHPUnit-3.6.7.phar 在org.phpmaven.plugin.build.FileHelper.unzipElements(FileHelper.java:123) 在org.phpmaven.plugin.php.PhpMojoHelper.prepareDependencies(PhpMojoHelper.java:368) 在org.phpmaven.plugin.build。 AbstractPhpExtractMojo.execute(AbstractPhpExtractMojo.java:70) ... 21更多
任何人都可以幫忙嗎?
PHP版本是5.3.2 – Setix
調試標誌(-X)輸出什麼?也許你應該把結果發送到[email protected]讓他們分析一下。 – user1461838