shared-macros.mk: simplify java settings
[oi-userland.git] / components / developer / maven / Makefile
bloba36f9d7b24b9bc4442d058a5ea0d65ba932a77f1
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
14 # Copyright 2018 Olaf Bohlen. All rights reserved.
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= maven
20 COMPONENT_VERSION= 3.9.9
21 COMPONENT_SUMMARY= Apache Maven is a software project management and comprehension tool
22 COMPONENT_PROJECT_URL= https://maven.apache.org
23 COMPONENT_SRC= apache-maven-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-bin.tar.gz
25 COMPONENT_ARCHIVE_HASH= sha256:7a9cdf674fc1703d6382f5f330b3d110ea1b512b51f1652846d9e4e8a588d766
26 COMPONENT_ARCHIVE_URL= https://archive.apache.org/dist/maven/maven-3/$(COMPONENT_VERSION)/binaries/$(COMPONENT_ARCHIVE)
27 COMPONENT_FMRI= developer/build/maven
28 COMPONENT_CLASSIFICATION= Development/Java
29 COMPONENT_LICENSE= Apache 2.0
30 COMPONENT_LICENSE_FILE= LICENSE
32 include $(WS_MAKE_RULES)/prep.mk
33 include $(WS_MAKE_RULES)/ips.mk
35 build:
37 install: prep
38 [ -d $(PROTO_DIR)/usr/share/maven ] || mkdir -p $(PROTO_DIR)/usr/share/maven
39 cp -r $(SOURCE_DIR)/* $(PROTO_DIR)/usr/share/maven/
41 clean::
42 rm -rf $(BUILD_DIR)
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES += shell/ksh93