mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
New port: devel/maven -- maven-3.5.0
svn cp from devel/maven33 Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information. WWW: http://maven.apache.org/ Add CONFLICTS_INSTALL for devel/maven3, devel/maven31, devel/maven33[1] PR: 220959 Submitted by: jonc@chen.org.nz Approved by: [1] portmgr blanket
This commit is contained in:
parent
521667ac9c
commit
97d2f001c1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=446612
@ -1631,6 +1631,7 @@
|
||||
SUBDIR += mate-common
|
||||
SUBDIR += matreshka
|
||||
SUBDIR += maven-wrapper
|
||||
SUBDIR += maven
|
||||
SUBDIR += maven3
|
||||
SUBDIR += maven31
|
||||
SUBDIR += maven33
|
||||
|
48
devel/maven/Makefile
Normal file
48
devel/maven/Makefile
Normal file
@ -0,0 +1,48 @@
|
||||
# Created by: JonathanChen <jonc@chen.org.nz>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= maven
|
||||
DISTVERSION= 3.5.0
|
||||
CATEGORIES= devel java
|
||||
MASTER_SITES= APACHE/maven/maven-3/${DISTVERSION}/binaries
|
||||
DISTNAME= apache-maven-${DISTVERSION}-bin
|
||||
|
||||
MAINTAINER= jonc@chen.org.nz
|
||||
COMMENT= Java project management tool
|
||||
|
||||
LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= mvn:devel/maven-wrapper
|
||||
|
||||
CONFLICTS_INSTALL= maven3-* maven31-* maven33-*
|
||||
|
||||
USES= cpe
|
||||
CPE_PRODUCT= maven
|
||||
CPE_VENDOR= apache
|
||||
|
||||
USE_JAVA= yes
|
||||
JAVA_VERSION= 1.7+
|
||||
NO_BUILD= yes
|
||||
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
|
||||
WRKSRC= ${WRKDIR}/apache-maven-${DISTVERSION}
|
||||
SUB_FILES= mvn.sh
|
||||
SUB_LIST= CLASSWORLDS_JAR=plexus-classworlds-2.5.2.jar
|
||||
INSTANCE_FILE= ${PORTNAME}-${PORTVERSION}
|
||||
INSTANCES_DIR= etc/maven-wrapper/instances.d/
|
||||
|
||||
post-extract:
|
||||
${RM} ${WRKSRC}/bin/*.bat
|
||||
${ECHO_CMD} "${DATADIR}" > ${WRKSRC}/${INSTANCE_FILE}
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && ${FIND} . -type d -exec ${MKDIR} \
|
||||
${STAGEDIR}${DATADIR}/{} \;
|
||||
cd ${WRKSRC} && ${FIND} . -type f -not -path "\./bin/" \
|
||||
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
|
||||
${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${STAGEDIR}${DATADIR}/bin
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/mvn.sh ${STAGEDIR}${DATADIR}/bin/mvn
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${INSTANCE_FILE} \
|
||||
${STAGEDIR}${PREFIX}/${INSTANCES_DIR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/maven/distinfo
Normal file
3
devel/maven/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1500859622
|
||||
SHA256 (apache-maven-3.5.0-bin.tar.gz) = beb91419245395bd69a4a6edad5ca3ec1a8b64e41457672dc687c173a495f034
|
||||
SIZE (apache-maven-3.5.0-bin.tar.gz) = 8534562
|
46
devel/maven/files/mvn.sh.in
Normal file
46
devel/maven/files/mvn.sh.in
Normal file
@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
|
||||
if [ -f /etc/mavenrc ] ; then
|
||||
. /etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f "${HOME}/.mavenrc" ] ; then
|
||||
. "${HOME}/.mavenrc"
|
||||
fi
|
||||
|
||||
M2_HOME=${M2_HOME:-"%%DATADIR%%"}
|
||||
|
||||
# traverses directory structure from process work directory to filesystem root
|
||||
# first directory with .mvn subdirectory is considered project base directory
|
||||
find_maven_basedir()
|
||||
{
|
||||
local basedir=$(pwd)
|
||||
local wdir=$(pwd)
|
||||
while [ "$wdir" != '/' ] ; do
|
||||
wdir=$(cd "$wdir/.."; pwd)
|
||||
if [ -d "$wdir"/.mvn ] ; then
|
||||
basedir=$wdir
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo "${basedir}"
|
||||
}
|
||||
|
||||
# concatenates all lines of a file
|
||||
concat_lines()
|
||||
{
|
||||
if [ -f "$1" ]; then
|
||||
echo "$(tr -s '\n' ' ' < "$1")"
|
||||
fi
|
||||
}
|
||||
|
||||
MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)}
|
||||
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
|
||||
|
||||
JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" $MAVEN_OPTS \
|
||||
-classpath "${M2_HOME}/boot/%%CLASSWORLDS_JAR%%" \
|
||||
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
|
||||
"-Dmaven.home=${M2_HOME}" \
|
||||
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||
org.codehaus.classworlds.Launcher "$@"
|
5
devel/maven/pkg-descr
Normal file
5
devel/maven/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Apache Maven is a software project management and comprehension tool. Based on
|
||||
the concept of a project object model (POM), Maven can manage a project's
|
||||
build, reporting and documentation from a central piece of information.
|
||||
|
||||
WWW: http://maven.apache.org/
|
101
devel/maven/pkg-plist
Normal file
101
devel/maven/pkg-plist
Normal file
@ -0,0 +1,101 @@
|
||||
etc/maven-wrapper/instances.d/maven-3.5.0
|
||||
%%DATADIR%%/LICENSE
|
||||
%%DATADIR%%/NOTICE
|
||||
%%DATADIR%%/README.txt
|
||||
%%DATADIR%%/bin/m2.conf
|
||||
%%DATADIR%%/bin/mvn
|
||||
%%DATADIR%%/bin/mvn.cmd
|
||||
%%DATADIR%%/bin/mvnDebug
|
||||
%%DATADIR%%/bin/mvnDebug.cmd
|
||||
%%DATADIR%%/bin/mvnyjp
|
||||
%%DATADIR%%/boot/plexus-classworlds-2.5.2.jar
|
||||
%%DATADIR%%/conf/logging/simplelogger.properties
|
||||
%%DATADIR%%/conf/settings.xml
|
||||
%%DATADIR%%/conf/toolchains.xml
|
||||
%%DATADIR%%/lib/aopalliance-1.0.jar
|
||||
%%DATADIR%%/lib/cdi-api-1.0.jar
|
||||
%%DATADIR%%/lib/cdi-api.license
|
||||
%%DATADIR%%/lib/commons-cli-1.4.jar
|
||||
%%DATADIR%%/lib/commons-cli.license
|
||||
%%DATADIR%%/lib/commons-io-2.5.jar
|
||||
%%DATADIR%%/lib/commons-io.license
|
||||
%%DATADIR%%/lib/commons-lang3-3.5.jar
|
||||
%%DATADIR%%/lib/commons-lang3.license
|
||||
%%DATADIR%%/lib/ext/README.txt
|
||||
%%DATADIR%%/lib/guava-20.0.jar
|
||||
%%DATADIR%%/lib/guice-4.0-no_aop.jar
|
||||
%%DATADIR%%/lib/jansi-1.13.jar
|
||||
%%DATADIR%%/lib/jansi-native/README.txt
|
||||
%%DATADIR%%/lib/jansi-native/linux32/libjansi.so
|
||||
%%DATADIR%%/lib/jansi-native/linux64/libjansi.so
|
||||
%%DATADIR%%/lib/jansi-native/osx/libjansi.jnilib
|
||||
%%DATADIR%%/lib/jansi-native/windows32/jansi.dll
|
||||
%%DATADIR%%/lib/jansi-native/windows64/jansi.dll
|
||||
%%DATADIR%%/lib/javax.inject-1.jar
|
||||
%%DATADIR%%/lib/jcl-over-slf4j-1.7.22.jar
|
||||
%%DATADIR%%/lib/jcl-over-slf4j.license
|
||||
%%DATADIR%%/lib/jsr250-api-1.0.jar
|
||||
%%DATADIR%%/lib/jsr250-api.license
|
||||
%%DATADIR%%/lib/maven-artifact-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-artifact.license
|
||||
%%DATADIR%%/lib/maven-builder-support-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-builder-support.license
|
||||
%%DATADIR%%/lib/maven-compat-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-compat.license
|
||||
%%DATADIR%%/lib/maven-core-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-core.license
|
||||
%%DATADIR%%/lib/maven-embedder-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-embedder.license
|
||||
%%DATADIR%%/lib/maven-model-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-model-builder-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-model-builder.license
|
||||
%%DATADIR%%/lib/maven-model.license
|
||||
%%DATADIR%%/lib/maven-plugin-api-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-plugin-api.license
|
||||
%%DATADIR%%/lib/maven-repository-metadata-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-repository-metadata.license
|
||||
%%DATADIR%%/lib/maven-resolver-api-1.0.3.jar
|
||||
%%DATADIR%%/lib/maven-resolver-api.license
|
||||
%%DATADIR%%/lib/maven-resolver-connector-basic-1.0.3.jar
|
||||
%%DATADIR%%/lib/maven-resolver-connector-basic.license
|
||||
%%DATADIR%%/lib/maven-resolver-impl-1.0.3.jar
|
||||
%%DATADIR%%/lib/maven-resolver-impl.license
|
||||
%%DATADIR%%/lib/maven-resolver-provider-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-resolver-provider.license
|
||||
%%DATADIR%%/lib/maven-resolver-spi-1.0.3.jar
|
||||
%%DATADIR%%/lib/maven-resolver-spi.license
|
||||
%%DATADIR%%/lib/maven-resolver-transport-wagon-1.0.3.jar
|
||||
%%DATADIR%%/lib/maven-resolver-transport-wagon.license
|
||||
%%DATADIR%%/lib/maven-resolver-util-1.0.3.jar
|
||||
%%DATADIR%%/lib/maven-resolver-util.license
|
||||
%%DATADIR%%/lib/maven-settings-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-settings-builder-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-settings-builder.license
|
||||
%%DATADIR%%/lib/maven-settings.license
|
||||
%%DATADIR%%/lib/maven-shared-utils-3.1.0.jar
|
||||
%%DATADIR%%/lib/maven-shared-utils.license
|
||||
%%DATADIR%%/lib/maven-slf4j-provider-3.5.0.jar
|
||||
%%DATADIR%%/lib/maven-slf4j-provider.license
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.inject-0.3.3.jar
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.inject.license
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.plexus-0.3.3.jar
|
||||
%%DATADIR%%/lib/org.eclipse.sisu.plexus.license
|
||||
%%DATADIR%%/lib/plexus-cipher-1.7.jar
|
||||
%%DATADIR%%/lib/plexus-cipher.license
|
||||
%%DATADIR%%/lib/plexus-component-annotations-1.7.1.jar
|
||||
%%DATADIR%%/lib/plexus-component-annotations.license
|
||||
%%DATADIR%%/lib/plexus-interpolation-1.24.jar
|
||||
%%DATADIR%%/lib/plexus-interpolation.license
|
||||
%%DATADIR%%/lib/plexus-sec-dispatcher-1.4.jar
|
||||
%%DATADIR%%/lib/plexus-sec-dispatcher.license
|
||||
%%DATADIR%%/lib/plexus-utils-3.0.24.jar
|
||||
%%DATADIR%%/lib/plexus-utils.license
|
||||
%%DATADIR%%/lib/slf4j-api-1.7.22.jar
|
||||
%%DATADIR%%/lib/slf4j-api.license
|
||||
%%DATADIR%%/lib/wagon-file-2.12.jar
|
||||
%%DATADIR%%/lib/wagon-file.license
|
||||
%%DATADIR%%/lib/wagon-http-2.12-shaded.jar
|
||||
%%DATADIR%%/lib/wagon-http.license
|
||||
%%DATADIR%%/lib/wagon-provider-api-2.12.jar
|
||||
%%DATADIR%%/lib/wagon-provider-api.license
|
||||
%%DATADIR%%/maven-3.5.0
|
@ -14,6 +14,8 @@ LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= mvn:devel/maven-wrapper
|
||||
|
||||
CONFLICTS_INSTALL= maven-* maven33-* maven31-*
|
||||
|
||||
USES= cpe
|
||||
CPE_PRODUCT= maven
|
||||
CPE_VENDOR= apache
|
||||
|
@ -15,6 +15,8 @@ LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= mvn:devel/maven-wrapper
|
||||
|
||||
CONFLICTS_INSTALL= maven-* maven3-* maven33-*
|
||||
|
||||
USES= cpe
|
||||
CPE_PRODUCT= maven
|
||||
CPE_VENDOR= apache
|
||||
|
@ -13,6 +13,8 @@ LICENSE= APACHE20
|
||||
|
||||
RUN_DEPENDS= mvn:devel/maven-wrapper
|
||||
|
||||
CONFLICTS_INSTALL= maven-* maven3-* maven31-*
|
||||
|
||||
USES= cpe
|
||||
CPE_PRODUCT= maven
|
||||
CPE_VENDOR= apache
|
||||
|
Loading…
Reference in New Issue
Block a user