#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/maven.mk

JAVA_HOME := /usr/lib/jvm/default-java
DEB_INSTALL_CHANGELOGS_ALL := RELEASE-NOTES.txt

binary-post-install/libcommons-jexl2-java::
	mh_installpoms -plibcommons-jexl2-java
	mh_installjar -plibcommons-jexl2-java -l pom.xml -ncommons-jexl2 target/commons-jexl-$(DEB_UPSTREAM_VERSION).jar
	rm debian/libcommons-jexl2-java/usr/share/java/commons-jexl.jar
	rm debian/libcommons-jexl2-java/usr/share/java/commons-jexl-$(DEB_UPSTREAM_VERSION).jar
	jh_classpath -plibcommons-jexl2-java

get-orig-source:
	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
