本文へ移動
cccskills
無料GitHub で公開

Maven standards

Conventions to use in Maven files, mostly the `pom.xml` files

日本語の概要は準備中です。原文の説明を表示しています。

実行スコア 未検証

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

1. Make sure dependencies that are supposed to be of scope test, remain test dependencies

In most cases, test dependencies should be of scope test. If you find any dependencies that are supposed to be of scope test but are not, you should add the <scope>test</scope> element to them. This ensures that the dependencies are only included in the test classpath and not in the production classpath. For these cases, the following are the dependencies that supposed to be of scope test:

        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-xml</artifactId>
        </dependency>
        <dependency>
            <groupId>io.mockk</groupId>
            <artifactId>mockk-jvm</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.ninja-squad</groupId>
            <artifactId>springmockk</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.kotest</groupId>
            <artifactId>kotest-assertions-core-jvm</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>

In some cases, the test dependencies may be used for production code in test modules. Those cases are not always easy to determine. However, if you see that the module, where these dependencies are found to be used, is being used as a test dependency of other modules in the same project, then leave the dependency as is.

2. Excessive declarations of the maven compiler

As a common practice, the maven-compiler-plugin was declared in the parent module, but also in many submodules. The repetition is unnecessary, but may still prevail. Please remove all maven-compiler-plugin declarations from all modules and submodules. Keep only one at the top level. All the other maven-compiler-plugin declarations can be removed

3. Excessive declarations of maven surefire and maven failsafe

As a common practice, the maven-surefire-plugin and the maven-failsafe-plugin were declared in the parent module, but also in many submodules. Please remove all maven-surefire-plugin and the maven-failsafe-plugin declarations from all modules and submodules. Keep them only at the top level. All the other maven-surefire-plugin and the maven-failsafe-plugin declarations can be removed

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Conventions for using annotations in all tests using Jupiter

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/kotlin-mysteries22026年7月20日 更新

docker

無料

Conventions for docker

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/kotlin-mysteries22026年7月20日 更新

Conventions for using in all JEE frameworks. These are common standards for CDI

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/kotlin-mysteries22026年7月20日 更新

Conventions for using in all JVM languages

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/kotlin-mysteries22026年7月20日 更新

Conventions for using Java

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/kotlin-mysteries22026年7月20日 更新

Conventions for using Kotlin

日本語の概要は準備中です。原文の説明を表示しています。

jesperancinha/kotlin-mysteries22026年7月20日 更新

jesperancinha のスキルをすべて見る

このスキルの問題を報告する