From e9fba3a9f6a4c3b55a36d390de537742e25aa4e2 Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Thu, 20 Nov 2008 15:08:42 +0000 Subject: [PATCH] improved tasks for making Maven artifacts1. maven-dist is now obsolete, maven artifacts are taken from dist2. release manager should use 'mvn deploy:deploy-file' to deploy POI artifacts, dist/mvn-deploy.sh is automatically generated by the maven-poms task3. each poi module now has its own pom template in the ./maven directory git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@719249 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 179 +++++++++++---------------------------- maven/mvn-deploy.sh | 46 ++++++++++ maven/poi-contrib.pom | 81 ++++++++++++++++++ maven/poi-ooxml.pom | 19 +++-- maven/poi-scratchpad.pom | 80 +++++++++++++++++ maven/poi.pom | 76 +++++++++++++++++ poi-redirect.pom | 36 -------- poi.pom | 91 -------------------- 8 files changed, 341 insertions(+), 267 deletions(-) create mode 100755 maven/mvn-deploy.sh create mode 100755 maven/poi-contrib.pom create mode 100755 maven/poi-scratchpad.pom create mode 100755 maven/poi.pom delete mode 100644 poi-redirect.pom delete mode 100644 poi.pom diff --git a/build.xml b/build.xml index 255c86132d..bb3ccbc874 100644 --- a/build.xml +++ b/build.xml @@ -45,8 +45,7 @@ under the License. To build the documentation you will need to install forrest and set the FORREST_HOME environment variable. Forrest 0.5.1 required. - You will need JDK 1.5 or newer to build much of POI. If all you want - is the core OLE2 support, then you only need JDK 1.4 + Since POI 3.5 you will need JDK 1.5 or newer to build POI. Some people may find the tests hang when run through Ant. If this happens to you, try giving Ant some more memory when you run it, eg: @@ -125,7 +124,7 @@ under the License. - + @@ -155,10 +154,9 @@ under the License. - - - + + @@ -299,13 +297,6 @@ under the License. - - - - - - - @@ -1091,124 +1082,47 @@ FORREST_HOME environment variable! description="Generates POI's website's contents"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1353,6 +1267,9 @@ FORREST_HOME environment variable! + Creating Maven POMs + + Distribution located in build/dist diff --git a/maven/mvn-deploy.sh b/maven/mvn-deploy.sh new file mode 100755 index 0000000000..5879db9512 --- /dev/null +++ b/maven/mvn-deploy.sh @@ -0,0 +1,46 @@ +#! /bin/sh +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Shell script to deploy POI artifacts in a maven repository. +# +# Note, You should configure your settings.xml and add a server with id=apache-releases: +# +# +# apache-releases +# apacheId +# /path/to/private/key +# +# +# Usage: +# 1. ant dist +# 2. cd dist +# 3. ./mvn-deploy.sh +# @author Yegor Kozlov + +mvn deploy:deploy-file -DrepositoryId=apache-releases \ + -Durl=@REPOSITORY@ \ + -Dfile=poi-@VERSION@-@DSTAMP@.jar -DpomFile=poi-@VERSION@.pom +mvn deploy:deploy-file -DrepositoryId=apache-releases \ + -Durl=@REPOSITORY@ \ + -Dfile=poi-scratchpad-@VERSION@-@DSTAMP@.jar -DpomFile=poi-scratchpad-@VERSION@.pom +mvn deploy:deploy-file -DrepositoryId=apache-releases \ + -Durl=@REPOSITORY@ \ + -Dfile=poi-contrib-@VERSION@-@DSTAMP@.jar -DpomFile=poi-contrib-@VERSION@.pom +mvn deploy:deploy-file -DrepositoryId=apache-releases \ + -Durl=@REPOSITORY@ \ + -Dfile=poi-ooxml-@VERSION@-@DSTAMP@.jar -DpomFile=poi-ooxml-@VERSION@.pom + diff --git a/maven/poi-contrib.pom b/maven/poi-contrib.pom new file mode 100755 index 0000000000..43984a24b6 --- /dev/null +++ b/maven/poi-contrib.pom @@ -0,0 +1,81 @@ + + + + + + 4.0.0 + org.apache.poi + poi-contrib + @VERSION@ + jar + Apache POI + http://poi.apache.org/ + Apache POI - Java API To Access Microsoft Format Files + + + + POI Users List + user-subscribe@poi.apache.org + user-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-user/ + + + POI Developer List + dev-subscribe@poi.apache.org + dev-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-dev/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + Apache Software Foundation + http://www.apache.org/ + + + + + org.apache.poi + poi + @VERSION@ + + + commons-logging + commons-logging + 1.1 + runtime + + + log4j + log4j + 1.2.13 + runtime + + + + diff --git a/maven/poi-ooxml.pom b/maven/poi-ooxml.pom index 8c78e2e443..b3e1c04120 100755 --- a/maven/poi-ooxml.pom +++ b/maven/poi-ooxml.pom @@ -1,4 +1,4 @@ -:tab + + + + + 4.0.0 + org.apache.poi + poi-scratchpad + @VERSION@ + jar + Apache POI + http://poi.apache.org/ + Apache POI - Java API To Access Microsoft Format Files + + + + POI Users List + user-subscribe@poi.apache.org + user-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-user/ + + + POI Developer List + dev-subscribe@poi.apache.org + dev-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-dev/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + Apache Software Foundation + http://www.apache.org/ + + + + + org.apache.poi + poi + @VERSION@ + + + commons-logging + commons-logging + 1.1 + runtime + + + log4j + log4j + 1.2.13 + runtime + + + diff --git a/maven/poi.pom b/maven/poi.pom new file mode 100755 index 0000000000..6db0aa4ea3 --- /dev/null +++ b/maven/poi.pom @@ -0,0 +1,76 @@ + + + + + + 4.0.0 + org.apache.poi + poi + @VERSION@ + jar + Apache POI + http://poi.apache.org/ + Apache POI - Java API To Access Microsoft Format Files + + + + POI Users List + user-subscribe@poi.apache.org + user-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-user/ + + + POI Developer List + dev-subscribe@poi.apache.org + dev-unsubscribe@poi.apache.org + http://mail-archives.apache.org/mod_mbox/poi-dev/ + + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + Apache Software Foundation + http://www.apache.org/ + + + + + commons-logging + commons-logging + 1.1 + runtime + + + log4j + log4j + 1.2.13 + runtime + + + + diff --git a/poi-redirect.pom b/poi-redirect.pom deleted file mode 100644 index fa4a63e012..0000000000 --- a/poi-redirect.pom +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - 4.0.0 - poi - @ARTIFICAT@ - @VERSION@ - - - - org.apache.poi - - - diff --git a/poi.pom b/poi.pom deleted file mode 100644 index ed6923b628..0000000000 --- a/poi.pom +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - 4.0.0 - org.apache.poi - @ARTIFICAT@ - @VERSION@ - jar - Apache POI - http://poi.apache.org/ - Apache POI - Java API To Access Microsoft Format Files - - - - - org.apache.poi - poi - @VERSION@ - - - - - commons-logging - commons-logging - 1.1 - - - - logkit - logkit - - - avalon-framework - avalon-framework - - - javax.servlet - servlet-api - - - - - log4j - log4j - 1.2.13 - runtime - - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - http://svn.apache.org/viewvc/poi/trunk - scm:svn:http://svn.apache.org/repos/asf/poi/trunk - - - bugzilla - http://issues.apache.org/bugzilla/buglist.cgi?product=POI - - - Apache Software Foundation - http://www.apache.org/ - - -- 2.39.5