我正在尝试清理和构建一个 maven php 项目,我的 pom 文件中有以下代码片段:
<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:无法在项目 MediaWikiTestClasses 上执行目标 org.phpmaven:maven-php-plugin:2.0.0:extractTestDependencies (default-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:145) 在 org.apache.maven 的 org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)。 org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) 在 org.apache.maven.lifecycle.internal 的生命周期.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)。launchEnhanced(Launcher.java:290) 在 org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) 在 org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)在 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) 引起:org.apache.maven.plugin.MojoExecutionException:执行 unphar 脚本时出错。无法在 org.phpmaven.plugin.build.AbstractPhpExtractMojo.execute(AbstractPhpExtractMojo.java:76) 处提取 /home/demo/.m2/repository/de/phpunit/PHPUnit/3.6.7/PHPUnit-3.6.7.phar org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 更多原因:java.io .IOException:执行 unphar 脚本时出错。
有人能帮忙吗?