talimat 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Tanım: Bir Java proje yönetimi ve proje anlama aracı
  2. # URL: http://maven.apache.org
  3. # Paketçi: milisarge
  4. # Gerekler: openjdk
  5. # Grup: geliştirme
  6. isim=maven
  7. surum=3.6.0
  8. devir=1
  9. kaynak=(http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/$surum/source/apache-maven-$surum-src.tar.gz
  10. maven.sh)
  11. derle() {
  12. binsurum=3.5.4
  13. mkdir $SRC/maven-bin
  14. if [ ! -f $DERLEME_KAYNAKDIZIN/apache-maven-${binsurum}-bin.tar.gz ];then
  15. wget http://apache-mirror.rbc.ru/pub/apache/maven/maven-3/${binsurum}/binaries/apache-maven-${binsurum}-bin.tar.gz \
  16. -P $DERLEME_KAYNAKDIZIN/
  17. fi
  18. [ -f $DERLEME_KAYNAKDIZIN/apache-maven-${binsurum}-bin.tar.gz ] && tar xf $DERLEME_KAYNAKDIZIN/apache-maven-${binsurum}-bin.tar.gz \
  19. -C $SRC/maven-bin
  20. cd "$SRC"/apache-maven-$surum
  21. export PATH="/usr/lib/jvm/java-8-openjdk/bin:${SRC}/maven-bin/apache-maven-3.5.4/bin:${PATH}"
  22. mvn package \
  23. -Dmaven.repo.local="${SRC}/repo" \
  24. -Dproject.build.sourceEncoding=UTF-8 -e
  25. install -Dm 755 ../maven.sh -t "${PKG}/etc/profile.d"
  26. install -d "${PKG}/opt/maven"
  27. mvn install \
  28. -Dmaven.repo.local="${SRC}/repo" \
  29. -Dproject.build.sourceEncoding=UTF-8 -e \
  30. -DdistributionTargetDir="${PKG}/opt/maven" \
  31. -DskipTests -Dmaven.test.skip=true
  32. install -d "${PKG}/usr/bin"
  33. ln -s /opt/maven/bin/mvn "${PKG}/usr/bin/mvn"
  34. ln -s /opt/maven/bin/mvnDebug "${PKG}/usr/bin/mvnDebug"
  35. }