[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/maven/maven.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 [L] APL [S] Stable [V] 3.9.10 [P] X -----5---9 800.050 [D] 182a70b2f136a21efe036bc30e5cdd424d31cc543ed6f8e02bb9c380 apache-maven-3.9.10-bin.tar.gz https://dlcdn.apache.org/maven/maven-3/3.9.10/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/maven2 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/apache-maven-${ver}; tar -c * | tar -x -C $root/$prefix) # Unfortunately the acces right need to be changed. The archive # was probably created under Windows. chmod u+x $root$bindir/mvn chmod -R u+r $root/$prefix # Prepare necessary environment variables. cat <<-EOF > $root/etc/profile.d/maven PATH=\$PATH:$root$bindir export PATH EOF } hook_add postmake 5 maven_postmake