Maven - Artifact - (Component|Module|Library)

Card Puncher Data Processing

About

Code Shipping - Artifact (Module|Component) in Maven.

An Artifact is the data storage unit of a repository.

It's at the same time:

(Ie artifacts can be transferred to and from repositories)

Artifacts are generally resources generated by an application such as:

  • website
  • jar/war

but can be any file.

Generally, they are simply library packaged as JAR file from a project.

Identifier / Coordinates

A coordinates is a property that defines uniquely an artifact.

See What are Java Coordinates?

Naming

A typical artifact produced by Maven would have the form:

<artifactId>-<version>-<classifier>.<extension> 

where:

In many cases, the dependencies will refer to jar artifacts with no classifier.

for example,

  • myapp-1.0-windows64.jar

artifactId

The artifactId is the Maven jargon for the project name (ie a project descriptive name).

artifactId indicates the unique base name of an artifact.

Secondary artifacts like source bundles also use the artifactId as part of their final name.





Discover More
Card Puncher Data Processing
Code Shipping - Artifact (Module|Component)

An artifact can refer to: aby-product produced during the development of software (Generally a archive of code for deployment such as a jar for Java). an application or an object that is End-user_developmentcreated...
Sparkmagic Hello
Jupyter - SparkMagic

Sparkmagic is a kernel that provides Ipython magic for working with Spark clusters through Livy in Jupyter notebooks. installation ...
Card Puncher Data Processing
Maven - (Remote Repository|Server)

Remote repository in maven A remote repository (or server) can be defined as: a source to resolve dependency (via HTTP) or as a target to deploy the artifact (via SCP) The definition dependent on...
Card Puncher Data Processing
Maven - Central Repository

The Central repository is the the default repository for Apache Maven but also for other build system such SBT. This is hosted on a nexus repository manager server. ...
Card Puncher Data Processing
Maven - Classifier

The classifier is an element of the artifact identifier. It permits to make the difference between archive containing: compiled class (normally without classifier) javadocs sources
Idea Maven Dependency Tree
Maven - Dependency

dependency management in Maven. Dependency are artifact where your software depends on. Dependency are defined in the pom.xml, section dependencies. When you build an application, Maven will search...
Card Puncher Data Processing
Maven - GroupId

GroupId is the first coordinate of an artifact that indicates the unique identifier of the organization or group that created the project. It's the Maven jargon for the package name. org.apache.maven.plugins...
Card Puncher Data Processing
Maven - Install (Local Package Installation)

Install is a phase that install the generated artifact in the local repository. deploy Plugin that can be used in this phase. install...
Card Puncher Data Processing
Maven - JRE (Including it in your distribution)

A JRE is just a dependency Therefore you can upload it to a repository and use it in your build. With a file named jre-1.7.80-windows-x64.zip, we will get the following artifact coordinates: ...
Card Puncher Data Processing
Maven - Package

Packaging in Maven. Package is a phase that bundle the code in a way suitable to be distributed. By default, this phase will take the compiled code and make an archive of it as define in the packaging...



Share this page:
Follow us:
Task Runner