如何解决Restcomm Build中的Maven Check样式错误

时间:2019-02-24 20:20:29

标签: maven maven-plugin restcomm

这是我尝试构建restcomm存储库时遇到的错误

 Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.9.1:checkstyle (check-style) on project restcomm-connect.application: An error has occurred in Checkstyle report generation. Failed during checkstyle execution: There are 1 checkstyle errors. -> [Help 1]

这是我的pom.xml配置:

            <!-- Checkstyle -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <configuration>
                <configLocation>checkstyle/checkstyle.xml</configLocation>
                <consoleOutput>true</consoleOutput>
                <failsOnError>true</failsOnError>
                <useFile/>
            </configuration>
            <dependencies>
                <dependency>
                    <groupId>org.mobicents</groupId>
                    <artifactId>checkstyle</artifactId>
                    <version>${mobicents.checkstyle.version}</version>
                </dependency>
            </dependencies>
            <executions>
                <execution>
                    <id>check-style</id>
                    <phase>compile</phase>
                    <goals>
                        <goal>checkstyle</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

请有人帮我解决上述错误

0 个答案:

没有答案