본문으로 건너뛰기
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 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고