| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| ****************************************************************************** |
| * Copyright (c) 2008, 2010 VMware Inc. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * VMware Inc. - initial contribution |
| ****************************************************************************** |
| --> |
| <project name="publish-par" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:maven="antlib:org.apache.maven.artifact.ant"> |
| |
| <import file="common.xml"/> |
| <import file="../common/publish.xml"/> |
| |
| <target name="publish-ivy" depends="ivy.init, resolve"> |
| <delete quiet="true" file="${ivy.output.file}"/> |
| <mkdir dir="${ivy.output.dir}" /> |
| |
| <ivy:publish resolver="${publication.resolver.prefix}-bundle-publish" pubdate="${timestamp}" |
| status="${release.type}"> |
| <artifacts pattern="${par.output.dir}/[artifact].[ext]"/> |
| <artifacts pattern="${source-jar.output.dir}/[artifact].[ext]"/> |
| <artifacts pattern="${ivy.output.dir}/[artifact].[ext]"/> |
| </ivy:publish> |
| </target> |
| |
| <target name="publish-maven" depends="create.pom, ivy.init, maven.init, resolve" unless="local.build"> |
| <maven:deploy file="${par.output.file}"> |
| <remoteRepository url="s3://${publish.bucket}/maven/bundles/${adjusted.release.type}"> |
| <authentication username="${accessKey}" passphrase="${secretKey}"/> |
| </remoteRepository> |
| <pom file="${pom.output.file}"/> |
| </maven:deploy> |
| </target> |
| |
| <!--target name="publish-maven-central" depends="maven.init"> |
| <property name="maven.central.repository" value="s3://maven.springframework.org/${adjusted.release.type}"/> |
| <maven:deploy file="${par.output.file}"> |
| <remoteRepository url="${maven.central.repository}"> |
| <authentication username="${accessKey}" passphrase="${secretKey}"/> |
| </remoteRepository> |
| <pom file="${local.pom.output.file}"/> |
| </maven:deploy> |
| </target--> |
| |
| <target name="install-maven" depends="create.pom, snapshot.pom, maven.init"> |
| <maven:install file="${par.output.file}"> |
| <pom file="${pom.output.file}"/> |
| </maven:install> |
| </target> |
| |
| <!--target name="install-maven-central" depends="maven.init"> |
| <maven:install file="${par.output.file}"> |
| <pom file="${local.pom.output.file}"/> |
| </maven:install> |
| </target--> |
| |
| </project> |