Fixed not working asciidoc include.

Project: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/commit/29f94d91
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/tree/29f94d91
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tamaya/diff/29f94d91

Branch: refs/heads/master
Commit: 29f94d911282ec087f84294eb4d4bd7b773bd760
Parents: edef0db
Author: anatole <anat...@apache.org>
Authored: Thu Mar 17 08:35:11 2016 +0100
Committer: anatole <anat...@apache.org>
Committed: Thu Mar 17 08:35:11 2016 +0100

----------------------------------------------------------------------
 docs/pom.xml                            | 40 ++++++++++++++++++++++++++++
 docs/src/main/resources/attributes.adoc | 10 +++++++
 pom.xml                                 |  1 +
 3 files changed, 51 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/29f94d91/docs/pom.xml
----------------------------------------------------------------------
diff --git a/docs/pom.xml b/docs/pom.xml
index 97d6991..c2fe19c 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -63,6 +63,46 @@ under the License.
     <build>
         <plugins>
             <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-clean-plugin</artifactId>
+                <configuration>
+                    <filesets>
+                        <fileset>
+                            <!--
+                             ! This directory is to store  Maven properties 
exported to a file
+                             ! which will be included by various Asciidoctor 
documents
+                             ! to share global properties/attributes.
+                             !
+                             ! see 
https://github.com/asciidoctor/asciidoctor-maven-plugin/issues/170
+                             !-->
+                            
<directory>${project.basedir}/temp-properties-files-for-site</directory>
+                        </fileset>
+                    </filesets>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>bal</id>
+                        <phase>generate-resources</phase>
+                        <goals>
+                            <goal>copy-resources</goal>
+                        </goals>
+                        <inherited>false</inherited>
+                        <configuration>
+                            
<outputDirectory>${project.basedir}/../src/site/asciidoc/temp-properties-files-for-site</outputDirectory>
+                            <resources>
+                                <resource>
+                                    
<directory>${project.basedir}/src/main/resources</directory>
+                                    <filtering>true</filtering>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
                 <groupId>de.saumya.mojo</groupId>
                 <artifactId>gem-maven-plugin</artifactId>
                 <configuration>

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/29f94d91/docs/src/main/resources/attributes.adoc
----------------------------------------------------------------------
diff --git a/docs/src/main/resources/attributes.adoc 
b/docs/src/main/resources/attributes.adoc
new file mode 100644
index 0000000..d8c3b1c
--- /dev/null
+++ b/docs/src/main/resources/attributes.adoc
@@ -0,0 +1,10 @@
+//
+// This file is used to export Maven properties to a file
+// which will be included by various Asciidoctor documents
+// to share global properties/attributes.
+//
+// see https://github.com/asciidoctor/asciidoctor-maven-plugin/issues/170
+//
+:tamaya_version_current: ${project.version}
+:tamaya_mvn_group_id: ${project.groupId}
+

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/29f94d91/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 625b0d3..23e2ea7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -808,6 +808,7 @@ under the License.
                 <maven.javadoc.skip>true</maven.javadoc.skip>
                 <source.skip>true</source.skip>
                 <assembly.skipAssembly>true</assembly.skipAssembly>
+                <maven.test.skip>true</maven.test.skip>
             </properties>
         </profile>
 

Reply via email to