diff options
author | Yegor Kozlov <yegor@apache.org> | 2008-11-20 15:08:42 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2008-11-20 15:08:42 +0000 |
commit | e9fba3a9f6a4c3b55a36d390de537742e25aa4e2 (patch) | |
tree | 26479b013a28f5ce0c9d8e81a013bef472acc5f3 /maven | |
parent | ee2c9194dc830b16c3dc31373eea1fd61132e09e (diff) | |
download | poi-e9fba3a9f6a4c3b55a36d390de537742e25aa4e2.tar.gz poi-e9fba3a9f6a4c3b55a36d390de537742e25aa4e2.zip |
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
Diffstat (limited to 'maven')
-rwxr-xr-x | maven/mvn-deploy.sh | 46 | ||||
-rwxr-xr-x | maven/poi-contrib.pom | 81 | ||||
-rwxr-xr-x | maven/poi-ooxml.pom | 19 | ||||
-rwxr-xr-x | maven/poi-scratchpad.pom | 80 | ||||
-rwxr-xr-x | maven/poi.pom | 76 |
5 files changed, 293 insertions, 9 deletions
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: +# +# <server> +# <id>apache-releases</id> +# <username>apacheId</username> +# <privateKey>/path/to/private/key</privateKey> +# </server> +# +# 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 @@ +<?xml version="1.0"?> +<!-- + + 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. + +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.poi</groupId> + <artifactId>poi-contrib</artifactId> + <version>@VERSION@</version> + <packaging>jar</packaging> + <name>Apache POI</name> + <url>http://poi.apache.org/</url> + <description>Apache POI - Java API To Access Microsoft Format Files</description> + + <mailingLists> + <mailingList> + <name>POI Users List</name> + <subscribe>user-subscribe@poi.apache.org</subscribe> + <unsubscribe>user-unsubscribe@poi.apache.org</unsubscribe> + <archive>http://mail-archives.apache.org/mod_mbox/poi-user/</archive> + </mailingList> + <mailingList> + <name>POI Developer List</name> + <subscribe>dev-subscribe@poi.apache.org</subscribe> + <unsubscribe>dev-unsubscribe@poi.apache.org</unsubscribe> + <archive>http://mail-archives.apache.org/mod_mbox/poi-dev/</archive> + </mailingList> + </mailingLists> + + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + </license> + </licenses> + + <organization> + <name>Apache Software Foundation</name> + <url>http://www.apache.org/</url> + </organization> + + <dependencies> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi</artifactId> + <version>@VERSION@</version> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + <scope>runtime</scope> + </dependency> + </dependencies> + +</project> 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<?xml version="1.0"?> +<?xml version="1.0"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more @@ -24,7 +24,7 @@ <modelVersion>4.0.0</modelVersion> <groupId>org.apache.poi</groupId> - <artifactId>@ARTIFICAT@</artifactId> + <artifactId>poi-ooxml</artifactId> <version>@VERSION@</version> <packaging>jar</packaging> <name>Apache POI</name> @@ -50,7 +50,6 @@ <license> <name>The Apache Software License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> - <distribution>repo</distribution> </license> </licenses> @@ -61,14 +60,16 @@ <dependencies> <dependency> - <groupId>org.apache.xmlbeans</groupId> - <artifactId>xmlbeans</artifactId> - <version>2.3.0</version> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1</version> + <scope>runtime</scope> </dependency> <dependency> - <groupId>org.apache.poi</groupId> - <artifactId>poi</artifactId> - <version>@VERSION@</version> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + <scope>runtime</scope> </dependency> <dependency> <groupId>org.apache.poi</groupId> diff --git a/maven/poi-scratchpad.pom b/maven/poi-scratchpad.pom new file mode 100755 index 0000000000..b2639d1f25 --- /dev/null +++ b/maven/poi-scratchpad.pom @@ -0,0 +1,80 @@ +<?xml version="1.0"?> +<!-- + + 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. + +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.poi</groupId> + <artifactId>poi-scratchpad</artifactId> + <version>@VERSION@</version> + <packaging>jar</packaging> + <name>Apache POI</name> + <url>http://poi.apache.org/</url> + <description>Apache POI - Java API To Access Microsoft Format Files</description> + + <mailingLists> + <mailingList> + <name>POI Users List</name> + <subscribe>user-subscribe@poi.apache.org</subscribe> + <unsubscribe>user-unsubscribe@poi.apache.org</unsubscribe> + <archive>http://mail-archives.apache.org/mod_mbox/poi-user/</archive> + </mailingList> + <mailingList> + <name>POI Developer List</name> + <subscribe>dev-subscribe@poi.apache.org</subscribe> + <unsubscribe>dev-unsubscribe@poi.apache.org</unsubscribe> + <archive>http://mail-archives.apache.org/mod_mbox/poi-dev/</archive> + </mailingList> + </mailingLists> + + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + </license> + </licenses> + + <organization> + <name>Apache Software Foundation</name> + <url>http://www.apache.org/</url> + </organization> + + <dependencies> + <dependency> + <groupId>org.apache.poi</groupId> + <artifactId>poi</artifactId> + <version>@VERSION@</version> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + <scope>runtime</scope> + </dependency> + </dependencies> +</project> 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 @@ +<?xml version="1.0"?> +<!-- + + 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. + +--> + +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.poi</groupId> + <artifactId>poi</artifactId> + <version>@VERSION@</version> + <packaging>jar</packaging> + <name>Apache POI</name> + <url>http://poi.apache.org/</url> + <description>Apache POI - Java API To Access Microsoft Format Files</description> + + <mailingLists> + <mailingList> + <name>POI Users List</name> + <subscribe>user-subscribe@poi.apache.org</subscribe> + <unsubscribe>user-unsubscribe@poi.apache.org</unsubscribe> + <archive>http://mail-archives.apache.org/mod_mbox/poi-user/</archive> + </mailingList> + <mailingList> + <name>POI Developer List</name> + <subscribe>dev-subscribe@poi.apache.org</subscribe> + <unsubscribe>dev-unsubscribe@poi.apache.org</unsubscribe> + <archive>http://mail-archives.apache.org/mod_mbox/poi-dev/</archive> + </mailingList> + </mailingLists> + + <licenses> + <license> + <name>The Apache Software License, Version 2.0</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> + </license> + </licenses> + + <organization> + <name>Apache Software Foundation</name> + <url>http://www.apache.org/</url> + </organization> + + <dependencies> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.1</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>log4j</groupId> + <artifactId>log4j</artifactId> + <version>1.2.13</version> + <scope>runtime</scope> + </dependency> + </dependencies> + +</project> |