Junior — Middle
Where in the project is the information about the final build results specified in Maven?
sobes.tech AI
Answer from AI
In Maven, information about the final build results (artifacts) is specified in the project's pom.xml file. This file indicates:
groupId— the group of the project.artifactId— a unique identifier for the artifact.version— the version of the artifact.- Packaging type (
packaging), such asjar,war.
These parameters determine which artifact will be built and how it will be named.
Example fragment of pom.xml:
<project>
<groupId>com.example</groupId>
<artifactId>my-app</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
</project>