From bd37d06c23449b76395c6338c1f8b719f7b6dd40 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 12 Feb 2013 11:52:41 +0100 Subject: [PATCH] Introduced special ci profile to archive JavaDoc. This allows releasing without the distribute profile being active as this causes issues on multi-module projects. --- README.md | 5 ++- parent/pom.xml | 84 ++++++++++++++++++++++++++++++++++---------------- 2 files changed, 59 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index dfa2c76d..33b43dc3 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,5 @@ As an example have a look at the build of [Spring Data MongoDB](http://github.co ## Build configuration - Configure "Artifactory Maven 3" task -- Goals to execute `clean (dependency:tree) install` -- Configure "Alternative Maven Tasks and Options" to `clean (dependency:tree) install -Pdistribute` -- A nightly build can then use `clean (dependency:tree) deploy -Pdistribute` to publish \ No newline at end of file +- Goals to execute `clean (dependency:tree) install -Pci` +- A nightly build can then use `clean (dependency:tree) deploy -Pdistribute` to publish static resources and reference documentation \ No newline at end of file diff --git a/parent/pom.xml b/parent/pom.xml index 698c9bc2..d1e45e47 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -118,7 +118,42 @@ + + + + + ci + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + package-javadoc + + jar + + package + + + + + + + + + + + + distribute @@ -185,42 +220,15 @@ org.apache.maven.plugins maven-javadoc-plugin - 2.9 - - jar-javadoc - - jar - - package - aggregate-javadoc aggregate package - - false - - - true -
${project.name}
- ${source.level} - true - ${shared.resources}/javadoc - ${shared.resources}/javadoc/overview.html - ${shared.resources}/javadoc/spring-javadoc.css - - true - - http://static.springframework.org/spring/docs/3.1.x/javadoc-api - http://download.oracle.com/javase/1.5.0/docs/api - http://static.springsource.org/spring-data/data-commons/docs/current/api - -
+ true + + http://static.springframework.org/spring/docs/3.1.x/javadoc-api + http://download.oracle.com/javase/1.5.0/docs/api + http://static.springsource.org/spring-data/data-commons/docs/current/api + + + org.apache.maven.plugins