-Xpkginfo参数导致Maven崩溃

时间:2016-11-22 15:05:15

标签: java maven

为了生成package-info类,我将-Xpkginfo参数添加到pom

<plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.5.1</version>
    <configuration>
        <source>${compiler.source}</source>
        <target>${compiler.target}</target>
        <fork>true</fork>
        <compilerArgs>
            <arg>-Xpkginfo:always</arg>
        </compilerArgs>
    </configuration>
</plugin>

不幸的是,这只会导致以下一般错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project
basis-vs-pi: Compilation failure -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

我在不同项目中遇到错误(使用此父pom)。知道我们可以做些什么吗?

0 个答案:

没有答案