Build Tools
Maven
Dependency file
<modelVersion>
. POM model version (always 4.0.0).<groupId>
. Group or organization that the project belongs to. Often expressed as an inverted domain name.<artifactId>
. Name to be given to the project’s library artifact (for example, the name of its JAR or WAR file).<version>
. Version of the project that is being built.<packaging>
- How the project should be packaged. Defaults to "jar" for JAR file packaging. Use "war" for WAR file packaging.
Command
compiled .class files which is bytecode file in the target/classes directory.
packaging the code up in a JAR file within the target directory. The name of the JAR file will be based on the project’s
<artifactId>
and<version>
. For example, given the minimal pom.xml file from before, the JAR file will be named gs-maven-0.1.0.jar.After that the artifact can be executed by
Gradle
Dependency file
Command
To see the results of the build effort, take a look in the build folder. Therein you’ll find several directories, including these three notable folders:
classes. The project’s compiled .class files.
reports. Reports produced by the build (such as test reports).
libs. Assembled project libraries (usually JAR and/or WAR files).
Last updated
Was this helpful?