From 4b4a1a373d4ee979e3db493fa5fc50a1fdefa765 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 6 Oct 2014 11:22:20 +0100 Subject: [PATCH] Automate docs build with shared parent pom --- .travis.yml | 2 +- pom.xml | 193 +++++++--------------------------------------------- 2 files changed, 24 insertions(+), 171 deletions(-) diff --git a/.travis.yml b/.travis.yml index dfe3986..75dc16f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: java before_install: git config user.name "$GIT_NAME" && git config user.email "$GIT_EMAIL" && git config credential.helper "store --file=.git/credentials" && echo "https://$GH_TOKEN:@github.com" > .git/credentials install: - - mvn install -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true + - mvn install -P docs -q -U -DskipTests=true -Dmaven.test.redirectTestOutputToFile=true - ./src/main/asciidoc/ghpages.sh script: mvn --settings .settings.xml deploy -nsu -Dmaven.test.redirectTestOutputToFile=true env: diff --git a/pom.xml b/pom.xml index bda823b..f5f8f76 100644 --- a/pom.xml +++ b/pom.xml @@ -12,9 +12,9 @@ Spring Patform Cloudfoundry integration project - org.springframework.boot - spring-boot-starter-parent - 1.1.5.RELEASE + org.springframework.cloud + spring-cloud-build + 1.0.0.BUILD-SNAPSHOT @@ -73,176 +73,29 @@ - - UTF-8 - 1.7 - - - - - - maven-antrun-plugin - - - org.jruby - jruby-complete - 1.7.12 - - - - - readme - process-resources - - run - - false - - - - - - - - - - - - - - org.asciidoctor - asciidoctor-maven-plugin - 1.5.0 - - - generate- - process-resources - - process-asciidoc - - false - - ${project.artifactId}.adoc - html - article - - true - ${project.version} - - - - - - - - - milestone - - - repo.spring.io - Spring Milestone Repository - https://repo.spring.io/libs-milestone-local - - - - - central - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - - sonatype-nexus-staging - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - - - - org.apache.maven.plugins - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - - + docs + + + + org.asciidoctor + asciidoctor-maven-plugin + false + + + org.apache.maven.plugins + maven-antrun-plugin + false + + + org.codehaus.mojo + build-helper-maven-plugin + false + + + - - - http://www.springsource.com/download/community - - - spring-docs - scp://static.springframework.org/var/www/domains/springframework.org/static/htdocs/spring-retry/docs/${project.version} - - - - repo.spring.io - Spring Release Repository - https://repo.spring.io/libs-release-local - - - repo.spring.io - Spring Snapshot Repository - https://repo.spring.io/libs-snapshot-local - - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - - - spring-releases - Spring Releases - http://repo.spring.io/release - - false - - - - - - spring-snapshots - Spring Snapshots - http://repo.spring.io/snapshot - - true - - - - spring-milestones - Spring Milestones - http://repo.spring.io/milestone - - false - - -