Google News
logo
Java Maven - Interview Questions
What is a maven artifact?
* Maven artifact is known as a file, usually a JAR, that gets deployed to a Maven repository. A Maven build produces one or more artifacts, such as a compiled JAR and a "sources" JAR.

* Each artifact has a group ID (usually a reversed domain name, like com.javainuse), an artifact ID (just a name), and a version string. The three together uniquely identify the artifact.

* A project's dependencies are specified as artifacts.
 
<dependency>
    <groupId> org.selenium </groupId>
    <artifactId> seleniumJava </artifactId>
    <version> 4.0.2 </version>
</dependency>

 

Advertisement