You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by ab...@apache.org on 2019/03/25 13:34:03 UTC
[cayenne] branch master updated: Exclude building docs in src
profile
This is an automated email from the ASF dual-hosted git repository.
abulatski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/master by this push:
new e561eef Exclude building docs in src profile
e561eef is described below
commit e561eef80b18aadc2b91b2b23977e3d288e0d95d
Author: Arseni Bulatski <an...@gmail.com>
AuthorDate: Mon Mar 25 16:32:53 2019 +0300
Exclude building docs in src profile
---
assembly/pom.xml | 9 ++++++++-
docs/asciidoc/cayenne-guide/pom.xml | 4 ++--
docs/asciidoc/getting-started-db-first/pom.xml | 4 ++--
docs/asciidoc/getting-started-guide/pom.xml | 4 ++--
docs/asciidoc/getting-started-rop/pom.xml | 4 ++--
docs/asciidoc/upgrade-guide/pom.xml | 4 ++--
docs/doc/pom.xml | 2 +-
docs/pom.xml | 14 ++++++++++++++
8 files changed, 33 insertions(+), 12 deletions(-)
diff --git a/assembly/pom.xml b/assembly/pom.xml
index 5899fbc..0915a56 100644
--- a/assembly/pom.xml
+++ b/assembly/pom.xml
@@ -34,6 +34,10 @@
<description>An assembly of Cayenne into a generically runnable package.</description>
+ <properties>
+ <build.docs>process-resources</build.docs>
+ </properties>
+
<dependencies>
<dependency>
@@ -186,6 +190,9 @@
<!-- SOURCE assembly - the base assembly of a release build -->
<profile>
<id>src</id>
+ <properties>
+ <build.docs>none</build.docs>
+ </properties>
<build>
<plugins>
<plugin>
@@ -240,7 +247,7 @@
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
- <phase>process-resources</phase>
+ <phase>${build.docs}</phase>
<configuration>
<tasks>
<copy todir="${project.build.directory}/doc-staging">
diff --git a/docs/asciidoc/cayenne-guide/pom.xml b/docs/asciidoc/cayenne-guide/pom.xml
index 5e209ed..9c53b66 100644
--- a/docs/asciidoc/cayenne-guide/pom.xml
+++ b/docs/asciidoc/cayenne-guide/pom.xml
@@ -83,7 +83,7 @@
<!-- generate standalone html help -->
<execution>
<id>asciidoctor-html-standalone</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
@@ -100,7 +100,7 @@
<!-- generate PDF -->
<execution>
<id>generate-pdf-doc</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
diff --git a/docs/asciidoc/getting-started-db-first/pom.xml b/docs/asciidoc/getting-started-db-first/pom.xml
index 3e6c7cf..4b90038 100644
--- a/docs/asciidoc/getting-started-db-first/pom.xml
+++ b/docs/asciidoc/getting-started-db-first/pom.xml
@@ -85,7 +85,7 @@
<!-- generate standalone html help -->
<execution>
<id>asciidoctor-html-standalone</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
@@ -102,7 +102,7 @@
<!-- generate PDF -->
<execution>
<id>generate-pdf-doc</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
diff --git a/docs/asciidoc/getting-started-guide/pom.xml b/docs/asciidoc/getting-started-guide/pom.xml
index 274ac83..4c8287e 100644
--- a/docs/asciidoc/getting-started-guide/pom.xml
+++ b/docs/asciidoc/getting-started-guide/pom.xml
@@ -85,7 +85,7 @@
<!-- generate standalone html help -->
<execution>
<id>asciidoctor-html-standalone</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
@@ -102,7 +102,7 @@
<!-- generate PDF -->
<execution>
<id>generate-pdf-doc</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
diff --git a/docs/asciidoc/getting-started-rop/pom.xml b/docs/asciidoc/getting-started-rop/pom.xml
index 554fa77..b9c4ea7 100644
--- a/docs/asciidoc/getting-started-rop/pom.xml
+++ b/docs/asciidoc/getting-started-rop/pom.xml
@@ -82,7 +82,7 @@
<!-- generate standalone html help -->
<execution>
<id>asciidoctor-html-standalone</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
@@ -99,7 +99,7 @@
<!-- generate PDF -->
<execution>
<id>generate-pdf-doc</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
diff --git a/docs/asciidoc/upgrade-guide/pom.xml b/docs/asciidoc/upgrade-guide/pom.xml
index cbb88ec..be693e3 100644
--- a/docs/asciidoc/upgrade-guide/pom.xml
+++ b/docs/asciidoc/upgrade-guide/pom.xml
@@ -81,7 +81,7 @@
<!-- generate standalone html help -->
<execution>
<id>asciidoctor-html-standalone</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
@@ -98,7 +98,7 @@
<!-- generate PDF -->
<execution>
<id>generate-pdf-doc</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
diff --git a/docs/doc/pom.xml b/docs/doc/pom.xml
index 0987a86..e054a5e 100644
--- a/docs/doc/pom.xml
+++ b/docs/doc/pom.xml
@@ -167,7 +167,7 @@
<executions>
<execution>
<id>javadoc</id>
- <phase>generate-resources</phase>
+ <phase>${build.docs}</phase>
<goals>
<goal>javadoc</goal>
</goals>
diff --git a/docs/pom.xml b/docs/pom.xml
index 829529b..cbaf46c 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -38,6 +38,10 @@
<module>asciidoc</module>
</modules>
+ <properties>
+ <build.docs>generate-resources</build.docs>
+ </properties>
+
<build>
<plugins>
<plugin>
@@ -49,4 +53,14 @@
</plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>src</id>
+ <properties>
+ <build.docs>none</build.docs>
+ </properties>
+ </profile>
+ </profiles>
+
</project>