Skip to content

Task1#1

Open
blagoffvyacheslav wants to merge 1 commit intomainfrom
tasks/maven
Open

Task1#1
blagoffvyacheslav wants to merge 1 commit intomainfrom
tasks/maven

Conversation

@blagoffvyacheslav
Copy link
Copy Markdown
Owner

No description provided.

@@ -0,0 +1,18 @@
# Licensed to the Apache Software Foundation (ASF) under one
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

в репозитории должно быть только то, что находится внутри твоего проекта, Т.е. рутовая помка и все что находится на ее уровне. У тебя почему-то tasks/maven/hw - так не должно быть

<properties>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

properties тоже наследуются, как и dependency, plugins, etc. Поэтому достаточно определить их лишь раз в parent pom

<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20230227</version>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не должно быть лишних зависимостей в проекте

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

по заданию нужно было junit 5 использовать

<app.env>dev</app.env>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

используй 17 джаву

<groupId>com.dmdev</groupId>
<artifactId>common</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>compile</scope>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compile по умолчанию - не нужно указывать явно

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

по заданию не нужно было. Поэтому можно было опустить)

<mainClass>com.dmdev.service.AppRunner</mainClass>
</manifest>
</archive>
</configuration>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не определил jacoco plugin - работать не будет (в parent pom он в pluginManagement - а значит не будет применяться)

import com.dmdev.common.repository.UserRepository;
import com.dmdev.common.models.User;


Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

что-то не то с отступами между импортами/классами
их как-то много, как будто вручную правил

@@ -0,0 +1,2 @@
public class AppIT {
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

надо было хотя бы по одному тесту добавить, чтобы проверить - что работает

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants