SWF-1446 Make it easy to install Maven-central style dependencies locally
This commit is contained in:
12
build-spring-webflow/publish-artifact.xml
Normal file
12
build-spring-webflow/publish-artifact.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="publish-bundle" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:maven="antlib:org.apache.maven.artifact.ant">
|
||||
|
||||
<target name="publish-maven-central-local" depends="maven.init">
|
||||
<property name="maven.central.repository" value="s3://maven.springframework.org/${adjusted.release.type}"/>
|
||||
<maven:install file="${jar.output.file}">
|
||||
<pom file="${local.pom.output.file}"/>
|
||||
<attach file="${source-jar.output.file}" classifier="sources"/>
|
||||
</maven:install>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@@ -29,5 +29,9 @@
|
||||
toFile="${adjusted.release.type}/${project.key}/${package.basename}-with-dependencies.zip.sha1" publicRead="true"/>
|
||||
</aws:s3>
|
||||
</target>
|
||||
|
||||
<target name="publish-maven-central-local">
|
||||
<all-bundles target="publish-maven-central-local"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
|
||||
15
readme.txt
15
readme.txt
@@ -1,9 +1,9 @@
|
||||
Contained in this directory are the Spring Web Flow (SWF) related project sources.
|
||||
|
||||
DIRECTORIES
|
||||
-----------
|
||||
|
||||
1. build-spring-webflow - Contains the metadata needed to build the SWF projects using spring-build.
|
||||
To build all projects, simply run 'ant' (version 1.7 or >) in this directory.
|
||||
|
||||
2. spring-build - A linked in SVN external to Spring's master build system.
|
||||
Used to power the build for all Spring projects.
|
||||
@@ -19,3 +19,16 @@ DIRECTORIES
|
||||
7. spring-faces - Spring's JavaServerFaces integration module, which includes Web Flow & JavaScript support.
|
||||
|
||||
8. spring-webflow-samples - The Spring Web Flow sample applications, illustrating the framework in action.
|
||||
|
||||
|
||||
BUILDING
|
||||
--------
|
||||
|
||||
To build all projects, cd to build-spring-webflow and run the following with ant (version 1.7 or >):
|
||||
|
||||
ant clean clean-integration jar
|
||||
|
||||
To install all jars as local Maven dependencies:
|
||||
|
||||
ant clean clean-integration jar publish-maven-central-local
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
<property file="${basedir}/../build.properties"/>
|
||||
<import file="${basedir}/../build-spring-webflow/package-bundle.xml"/>
|
||||
<import file="${basedir}/../build-spring-webflow/publish-artifact.xml"/>
|
||||
<import file="${basedir}/../spring-build/standard/default.xml"/>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
<property file="${basedir}/../build.properties"/>
|
||||
<import file="${basedir}/../build-spring-webflow/package-bundle.xml"/>
|
||||
<import file="${basedir}/../build-spring-webflow/publish-artifact.xml"/>
|
||||
<import file="${basedir}/../spring-build/standard/default.xml"/>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
|
||||
<target name="publish-maven-central"/>
|
||||
|
||||
<target name="publish-maven-central-local"/>
|
||||
|
||||
<target name="install-maven-central"/>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -13,11 +13,10 @@ Sample pre-requisites:
|
||||
* JDK 1.5 or > must be installed and in your system path
|
||||
* Ant 1.7 or > must be installed and in your system path
|
||||
|
||||
To build the samples:
|
||||
---------------------
|
||||
Running 'mvn package' from the this directory builds all samples.
|
||||
Build Samples with Maven Central Dependencies:
|
||||
----------------------------------------------
|
||||
Run 'mvn package' from the this directory to build all samples against Maven central dependencies.
|
||||
You can find .war files under the appropriate '<sample>/target' directory.
|
||||
Samples can be built individually by running 'mvn package' from the sample sub-directory.
|
||||
|
||||
To import the samples into Eclipse:
|
||||
-----------------------------------
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
<property file="${basedir}/../build.properties"/>
|
||||
<import file="${basedir}/../build-spring-webflow/package-bundle.xml"/>
|
||||
<import file="${basedir}/../build-spring-webflow/publish-artifact.xml"/>
|
||||
<import file="${basedir}/../spring-build/standard/default.xml"/>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -225,13 +225,26 @@
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*.xsd</include>
|
||||
</includes>
|
||||
</testResource>
|
||||
<excludes>
|
||||
<exclude>**/.svn/**</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
<resource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
<includes>
|
||||
<include>META-INF/spring.*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<testResources>
|
||||
<testResource>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
|
||||
Reference in New Issue
Block a user