小编Cod*_*ven的帖子

使用Apache Kafka的真实世界用例

我想了解一些使用Apache Kafka作为消息代理最适合的实际用例.考虑到Kafka主题无法无限期地保留消息.

apache-kafka

17
推荐指数
2
解决办法
2万
查看次数

从 maven-checkstyle-plugin 扫描中排除 *target* 目录

我在 pom.xml 中使用 Apache Maven Checkstyle 插件。我试图从检查式扫描中排除目标目录,但到目前为止还没有运气。这是我正在尝试的 pom 代码。

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <executions>
                <execution>
                    <id>checkstyle-check</id>
                    <phase>test</phase>
                    <goals>
                        <goal>check</goal>
                    </goals>
                </execution>
            </executions>
            <configuration>
                <configLocation>checkstyles.xml</configLocation>
                <failsOnError>true</failsOnError>
                <failOnViolation>true</failOnViolation>
                <consoleOutput>true</consoleOutput>
                <includes>**\/*.java,**\/*.groovy</includes>
                <excludes>**WHAT GOES HERE TO EXCLUDE THE TARGET DIRECTORY**</excludes>
            </configuration>
        </plugin>
Run Code Online (Sandbox Code Playgroud)

java pom.xml maven maven-checkstyle-plugin

2
推荐指数
1
解决办法
6045
查看次数