Align library file naming mapping

This commit aligns the mapping from library to name to the default
behaviour of the `maven-war-plugin`. Previously, our plugin would use
the full version of the library (i.e. including build timestamp if there
is one), rather than using the `baseVersion` property.

Closes gh-7743
This commit is contained in:
Stephane Nicoll
2016-12-27 11:59:01 +01:00
parent 92d313f820
commit 022f7e86a0
2 changed files with 3 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ public class ArtifactsLibraries implements Libraries {
private String getFileName(Artifact artifact) {
StringBuilder sb = new StringBuilder();
sb.append(artifact.getArtifactId()).append("-").append(artifact.getVersion());
sb.append(artifact.getArtifactId()).append("-").append(artifact.getBaseVersion());
String classifier = artifact.getClassifier();
if (classifier != null) {
sb.append("-").append(classifier);