rename from 1.0.2-SNAPSHOT to 1.0.2.SNAPSHOT

Support publishing only a POM artifact to the maven repo
Support for running maven deployment on windows OS.
This commit is contained in:
Mark Pollack
2009-03-30 19:33:42 +00:00
parent afdb2bd944
commit db0883d335
19 changed files with 125 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="package-bundle">
<import file="publish-maven.xml"/>
<target name="package" depends="ivy.init">
<dist-jar/>
<src-jar/>

View File

@@ -14,7 +14,7 @@
a simple model for building enterprise integration solutions while maintaining the separation of
concerns that is essential for producing maintainable, testable code.
</description>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>../spring-integration-parent</module>

View File

@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="publish-maven-central-only-pom" xmlns:maven="antlib:org.apache.maven.artifact.ant">
<description> This build file publishes to a maven repository and two ways. 1. Publish jar,
source-jar, and pom artifacts. 2. Publish only the pom artifact. The additional complexity
in the implementation is due to a bug in the maven ant tasks version 2.0.8 that prevents
deploying to a local file repository on windows. </description>
<condition property="is.windows" value="windows">
<os family="windows"/>
</condition>
<!-- top level targets -->
<target name="publish-maven-central-only-pom-artifacts"
depends="publish-only-pom-windows,publish-only-pom-unix"> </target>
<target name="publish-maven-central-code-artifacts"
depends="publish-code-windows,publish-code-unix"> </target>
<!-- Supporting targets -->
<!-- POM only deployment -->
<target name="publish-only-pom-windows" depends="maven.init" if="is.windows">
<maven:deploy>
<!-- Due to http://jira.codehaus.org/browse/MANTTASKS-103 in 2.0.8 on windows, fixed in 2.0.9 -->
<!-- Assuming using local file, value of variable should be of the form L:\temp\maven-repo-test -->
<remoteRepository id="localDisk" url="file:${maven.central.repository}"/>
<pom file="${local.pom.output.file}"/>
</maven:deploy>
</target>
<target name="publish-only-pom-unix" depends="maven.init" unless="is.windows">
<maven:deploy>
<remoteRepository url="${maven.central.repository}"/>
<pom file="${local.pom.output.file}"/>
</maven:deploy>
</target>
<!-- jar, source-jar and POM deployment -->
<target name="publish-code-windows" depends="maven.init">
<maven:deploy file="${jar.output.file}">
<!-- Due to http://jira.codehaus.org/browse/MANTTASKS-103 in 2.0.8 on windows, fixed in 2.0.9 -->
<!-- Assuming using local file, value of variable should be of the form L:\temp\maven-repo-test -->
<remoteRepository id="localDisk" url="file:${maven.central.repository}"/>
<pom file="${local.pom.output.file}"/>
<attach file="${source-jar.output.file}" classifier="sources"/>
</maven:deploy>
</target>
<target name="publish-code-unix" depends="maven.init" unless="is.windows">
<maven:deploy file="${jar.output.file}">
<remoteRepository url="${maven.central.repository}"/>
<pom file="${local.pom.output.file}"/>
<attach file="${source-jar.output.file}" classifier="sources"/>
</maven:deploy>
</target>
</project>

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="publish-spring-framework" xmlns:maven="antlib:org.apache.maven.artifact.ant">
<property file="${basedir}/../build.properties"/>
<import file="${basedir}/../spring-build/multi-bundle/default.xml"/>
<path id="modules-with-code-artifacts">
<pathelement location="${basedir}/../org.springframework.integration"/>
<pathelement location="${basedir}/../org.springframework.integration.security"/>
<pathelement location="${basedir}/../org.springframework.integration.adapter"/>
<pathelement location="${basedir}/../org.springframework.integration.xml"/>
<pathelement location="${basedir}/../org.springframework.integration.event"/>
<pathelement location="${basedir}/../org.springframework.integration.file"/>
<pathelement location="${basedir}/../org.springframework.integration.http"/>
<pathelement location="${basedir}/../org.springframework.integration.httpinvoker"/>
<pathelement location="${basedir}/../org.springframework.integration.jms"/>
<pathelement location="${basedir}/../org.springframework.integration.mail"/>
<pathelement location="${basedir}/../org.springframework.integration.rmi"/>
<pathelement location="${basedir}/../org.springframework.integration.stream"/>
<pathelement location="${basedir}/../org.springframework.integration.ws"/>
<pathelement location="${basedir}/../org.springframework.integration.samples"/>
</path>
<path id="modules-with-only-pom-artifacts">
<pathelement location="../spring-integration-parent"/>
</path>
<target name="publish-maven-central-spring" depends="publish-maven-central-only-pom-spring">
<all-bundles target="publish-maven-central-code-artifacts" buildpathRef="modules-with-code-artifacts"/>
</target>
<target name="publish-maven-central-only-pom-spring">
<all-bundles target="publish-maven-central-only-pom-artifacts"
buildpathRef="modules-with-only-pom-artifacts"/>
</target>
</project>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -8,7 +8,7 @@
<parent>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<relativePath>../spring-integration-parent</relativePath>
</parent>
<dependencies>

View File

@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.integration</groupId>
<artifactId>spring-integration-parent</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.0.2.SNAPSHOT</version>
<name> Spring Integration Parent </name>
<url>http://www.springsource.org/spring-integration</url>
<description> Spring Integration parent project. Defines dependencies and common configuration for