Fix pom generation to eliminate invalid `classifier` element from being added to...
authorPeter Donald <peter@realityforge.org>
Wed, 29 Mar 2017 05:55:15 +0000 (16:55 +1100)
committerPeter Donald <peter@realityforge.org>
Wed, 29 Mar 2017 05:55:15 +0000 (16:55 +1100)
CHANGELOG
lib/buildr/java/custom_pom.rb

index afe08cb..4ff9069 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,5 @@
 1.5.2 (Pending)
+* Fixed:  Fix pom generation to eliminate invalid `classifier` element from being added to POM.
 
 1.5.1 (2017-03-11)
 * Change: In the 'buildr/git_auto_version' addon strip out any versions that start with a 'v' character as
index 7f52ea8..f2811a4 100644 (file)
@@ -161,7 +161,6 @@ module Buildr
           candidates = project.packages.select{|p| p.classifier.nil? }.collect{|p|p.type.to_s}
           packaging = !candidates.empty? ? candidates[0] : (project.compile.packaging || :zip).to_s
           xml.packaging packaging
-          xml.classifier package.classifier if package.classifier
 
           xml.name project.pom.name if project.pom.name
           xml.description project.pom.description if project.pom.description