1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-26 04:17:11 -07:00

Clarifications.

This commit is contained in:
Cedric Beust 2016-03-27 18:35:44 -07:00
parent c1771bb98f
commit a46d28a420

View file

@ -241,20 +241,21 @@ Kobalt lets you specify Maven coordinates in one line, such as <code>"org.testng
<p> <p>
The standard format for such coordinates, as explained in the link above, is: The standard format for such coordinates, as explained in the link above, is:
</p> </p>
<pre> <pre class="brush:plain">
groupId:artifactId:packaging:classifier:version</pre> groupId:artifactId:packaging:classifier:version</pre>
<p> <p>
<code>packaging</code> and <code>classifier</code> are optional and can be omitted. If <code>version</code> <code>packaging</code> and <code>classifier</code> are optional and can be omitted. If <code>version</code>
is omitted, Kobalt will resolve the artifact to its latest version from all the specified repos. is omitted, Kobalt will resolve the artifact to its latest version from all the specified repos.
Most of the time, you will only specify <code>groupId</code>, <code>artifactId</code> and <code>version</code>, but if you ever need to specify additional components such as <code>packaging</code> (sometimes referred to as "<code>extension</code>") or <code>classifier</code>, Most of the time, you will only specify <code>groupId</code>, <code>artifactId</code> and <code>version</code>, but if you ever need to specify additional components such as <code>packaging</code> (sometimes referred to as "<code>extension</code>") or <code>classifier</code>,
please take note that these should appear before the version number. please take note that these should appear before the version number.
</p> </p>
<p> <p>
For example, here is a Maven coordinate specifying a classifier: For example, here is a Maven coordinate specifying a classifier:
</p> </p>
<pre> <pre class="brush:plain">
# No version, resolves to the latest # No version, resolves to the latest
org.testng:testng: org.testng:testng:
# Specifies an extension and a qualifier # Specifies an extension and a qualifier
com.badlogicgames.gdx:gdx-platform:jar:natives-desktop:1.9.2</pre> com.badlogicgames.gdx:gdx-platform:jar:natives-desktop:1.9.2</pre>