[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/maven1/maven1.desc [COPY] Copyright (C) 2004 - 2025 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] Apache Maven [T] Maven is a software project management and comprehension tool. [T] Based on the concept of a project object model (POM), Maven can [T] manage a project's build, reporting and documentation from a [T] central piece of information. [U] https://maven.apache.org/ [A] The Apache Software Foundation [M] Minto van der Sluis [C] extra/development [F] BINARY CROSS [L] APL [S] Stable [V] 1.1 [P] X -----5---9 800.100 [D] 53cdeed503a9694be48d0ded05cf178f2223b8402c607b48304d0446 maven-1.1.tar.bz2 http://archive.apache.org/dist/maven/binaries/ # Prevent executing normal make and install build steps. # This package has custom make and install. runmake=0 # Make prefix same a java_home. This way artifacts like the bin, lib # and doc directory are created at the proper level. prefix=opt/maven-${ver} set_confopt # To be able to run maven a JRE needs to be installed. To be able to # have maven compile java stuff a JDK needs to be available as well. # Todo: check for jdk, after java alternatives are working properly. # Custom installation. maven_postmake() { # Copy the extracted archive to the current prefix location. # But make sure to preserve any possible links. (cd $builddir/maven-${ver}; tar -c * | tar -x -C $root/$prefix) # Prepare necessary environment variables. cat <<-EOF > $root/etc/profile.d/maven1 MAVEN_HOME=$root/$prefix export MAVEN_HOME PATH=\$PATH:\$MAVEN_HOME/bin export PATH EOF } hook_add postmake 5 maven_postmake