Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #! /bin/sh
  2. #
  3. # Licensed to the Apache Software Foundation (ASF) under one or more
  4. # contributor license agreements. See the NOTICE file distributed with
  5. # this work for additional information regarding copyright ownership.
  6. # The ASF licenses this file to You under the Apache License, Version 2.0
  7. # (the "License"); you may not use this file except in compliance with
  8. # the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18. # Shell script to deploy POI artifacts in a maven repository.
  19. #
  20. # Note, You should configure your settings.xml and add a server with id=apache-releases:
  21. #
  22. # <server>
  23. # <id>apache-releases</id>
  24. # <username>apacheId</username>
  25. # <privateKey>/path/to/private/key</privateKey>
  26. # </server>
  27. #
  28. # <profiles>
  29. # <profile>
  30. # <id>apache-releases</id>
  31. # <properties>
  32. # <gpg.passphrase><!-- Your GPG passphrase --></gpg.passphrase>
  33. # </properties>
  34. # </profile>
  35. # </profiles>
  36. #
  37. # Usage:
  38. # 1. ant dist
  39. # 2. cd build/dist
  40. # 3. ./mvn-deploy.sh
  41. # @author Yegor Kozlov
  42. M2_REPOSITORY=scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository
  43. M2_SCP=people.apache.org:/www/people.apache.org/repo/m2-ibiblio-rsync-repository
  44. VERSION=@VERSION@
  45. DSTAMP=@DSTAMP@
  46. for artifactId in poi poi-scratchpad poi-ooxml poi-examples poi-ooxml-schemas poi-excelant
  47. do
  48. mvn gpg:sign-and-deploy-file -DrepositoryId=apache-releases -P apache-releases \
  49. -Durl=$M2_REPOSITORY \
  50. -Dfile=$artifactId-$VERSION-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom
  51. #The maven sign-and-deploy-file command does NOT sign POM files, so we have to upload the POM's .asc manually
  52. scp $artifactId-$VERSION.pom.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/
  53. if [ -r $artifactId-$VERSION-sources-$DSTAMP.jar ]; then
  54. mvn deploy:deploy-file -DrepositoryId=apache-releases -P apache-releases \
  55. -Durl=$M2_REPOSITORY -DgeneratePom=false -Dpackaging=java-source \
  56. -Dfile=$artifactId-$VERSION-sources-$DSTAMP.jar -DpomFile=$artifactId-$VERSION.pom
  57. scp $artifactId-$VERSION-sources-$DSTAMP.jar.asc $M2_SCP/org/apache/poi/$artifactId/$VERSION/$artifactId-$VERSION-sources.jar.asc
  58. fi
  59. done