123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>io.awspring.cloud</groupId>
- <artifactId>spring-cloud-aws</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- </parent>
- <artifactId>spring-cloud-aws-docs</artifactId>
- <packaging>pom</packaging>
- <name>Spring Cloud AWS Docs</name>
- <properties>
- <docs.main>spring-cloud-aws</docs.main>
- <main.basedir>${basedir}/..</main.basedir>
- <configprops.path>${project.basedir}/src/main/asciidoc/_configprops.adoc</configprops.path>
- <configprops.inclusionPattern>spring.cloud.aws.*</configprops.inclusionPattern>
- <upload-docs-zip.phase>deploy</upload-docs-zip.phase>
- <generated-docs-multipage-output.dir>${project.build.directory}/generated-docs/${project.version}/reference/html</generated-docs-multipage-output.dir>
- <generated-docs-singlepage-output.dir>${project.build.directory}/generated-docs/${project.version}/reference/htmlsingle</generated-docs-singlepage-output.dir>
- <generated-docs-pdf-output.dir>${project.build.directory}/generated-docs/${project.version}/reference/pdf</generated-docs-pdf-output.dir>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>${maven-deploy-plugin.version}</version>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>io.awspring.cloud</groupId>
- <artifactId>spring-cloud-aws-autoconfigure</artifactId>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>docs-classic</id>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>${maven-dependency-plugin.version}</version>
- <executions>
- <execution>
- <id>unpack-docs</id>
- <phase>${maven-dependency-plugin-for-docs.phase}</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-build-docs</artifactId>
- <version>${spring-cloud-build.version}</version>
- <classifier>sources</classifier>
- <type>jar</type>
- <overWrite>true</overWrite>
- <outputDirectory>${docs.resources.dir}</outputDirectory>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- <execution>
- <id>unpack-classes</id>
- <phase>${maven-dependency-plugin-for-docs-classes.phase}</phase>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-build-docs</artifactId>
- <version>${spring-cloud-build.version}</version>
- <classifier>jar-with-dependencies</classifier>
- <type>jar</type>
- <overWrite>true</overWrite>
- <outputDirectory>${docs.classes.dir}</outputDirectory>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-asciidoc-resources</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/refdocs/</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/asciidoc</directory>
- <excludes>
- <exclude>ghpages.sh</exclude>
- </excludes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>${exec-maven-plugin.version}</version>
- <executions>
- <execution>
- <id>generate-configprops</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-build-docs</artifactId>
- <version>${spring-cloud-build.version}</version>
- <classifier>${spring-cloud-build-docs-classifier}</classifier>
- <type>jar</type>
- </dependency>
- </dependencies>
- <configuration>
- <includePluginDependencies>
- true
- </includePluginDependencies>
- <mainClass>org.springframework.cloud.internal.Main</mainClass>
- <arguments>
- <argument>${configprops.path}</argument>
- <argument>${configprops.inclusionPattern}</argument>
- </arguments>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctor-maven-plugin</artifactId>
- <version>${asciidoctor-maven-plugin.version}</version>
- <dependencies>
- <dependency>
- <groupId>io.spring.asciidoctor.backends</groupId>
- <artifactId>spring-asciidoctor-backends</artifactId>
- <version>${spring-asciidoctor-backends.version}</version>
- </dependency>
- <dependency>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctorj-pdf</artifactId>
- <version>${asciidoctorj-pdf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctorj-diagram</artifactId>
- <version>${asciidoctorj-diagram.version}</version>
- </dependency>
- </dependencies>
- <configuration>
- <sourceDirectory>${refdocs.build.directory}</sourceDirectory>
- <resources>
- <resource>
- <directory>${refdocs.build.directory}</directory>
- <excludes>
- <exclude>**/*.*adoc</exclude>
- </excludes>
- </resource>
- </resources>
- <!-- tag::attributes[] -->
- <attributes>
- <docinfo>shared</docinfo>
- <allow-uri-read>true</allow-uri-read>
- <nofooter/>
- <toc>left</toc>
- <toc-levels>4</toc-levels>
- <sectlinks>true</sectlinks>
- <sources-root>${project.basedir}/src@</sources-root>
- <asciidoc-sources-root>${project.basedir}/src/main/asciidoc@</asciidoc-sources-root>
- <generated-resources-root>${project.basedir}/target/generated-resources@
- </generated-resources-root>
- <!-- Use this attribute the reference code from another module -->
- <!-- Note the @ at the end, lowering the precedence of the attribute -->
- <project-root>${maven.multiModuleProjectDirectory}@</project-root>
- <!-- It's mandatory for you to pass the docs.main property -->
- <github-repo>${docs.main}@</github-repo>
- <github-project>https://github.com/spring-cloud/${docs.main}@</github-project>
- <github-raw>
- https://raw.githubusercontent.com/spring-cloud/${docs.main}/${github-tag}@
- </github-raw>
- <github-code>https://github.com/spring-cloud/${docs.main}/tree/${github-tag}@</github-code>
- <github-issues>https://github.com/spring-cloud/${docs.main}/issues/@</github-issues>
- <github-wiki>https://github.com/spring-cloud/${docs.main}/wiki@</github-wiki>
- <github-master-code>https://github.com/spring-cloud/${docs.main}/tree/master@</github-master-code>
- <index-link>${index-link}@</index-link>
- <!-- Spring Cloud specific -->
- <!-- for backward compatibility -->
- <spring-cloud-version>${project.version}@</spring-cloud-version>
- <project-version>${project.version}@</project-version>
- <github-tag>${github-tag}@</github-tag>
- <version-type>${version-type}@</version-type>
- <docs-url>https://docs.spring.io/${docs.main}/docs/${project.version}@</docs-url>
- <raw-docs-url>${github-raw}@</raw-docs-url>
- <project-version>${project.version}@</project-version>
- <project-name>${docs.main}@</project-name>
- <source-highlighter>highlight.js</source-highlighter>
- </attributes>
- <!-- end::attributes[] -->
- <requires>
- <require>asciidoctor-diagram</require>
- </requires>
- </configuration>
- <executions>
- <execution>
- <id>generate-html-documentation</id>
- <phase>${generate-docs.phase}</phase>
- <goals>
- <goal>process-asciidoc</goal>
- </goals>
- <configuration>
- <backend>spring-html</backend>
- <sourceDocumentExtensions>
- <sourceDocumentExtension>.adoc</sourceDocumentExtension>
- <sourceDocumentExtension>.htmladoc</sourceDocumentExtension>
- </sourceDocumentExtensions>
- <outputDirectory>${generated-docs-multipage-output.dir}
- </outputDirectory>
- <doctype>book</doctype>
- <attributes>
- <docinfo>shared</docinfo>
- <stylesdir>css/</stylesdir>
- <stylesheet>site.css</stylesheet>
- <linkcss>true</linkcss>
- <icons>font</icons>
- <highlightjsdir>js/highlight</highlightjsdir>
- <highlightjs-theme>github</highlightjs-theme>
- <imagesdir>./images</imagesdir>
- <attribute-missing>warn</attribute-missing>
- <source-highlighter>highlight.js</source-highlighter>
- </attributes>
- <logHandler>
- <outputToConsole>true</outputToConsole>
- <failIf>
- <!-- <severity>DEBUG</severity>-->
- </failIf>
- </logHandler>
- </configuration>
- </execution>
- <execution>
- <id>generate-htmlsingle-documentation</id>
- <phase>${generate-docs.phase}</phase>
- <goals>
- <goal>process-asciidoc</goal>
- </goals>
- <configuration>
- <backend>spring-html</backend>
- <sourceDocumentExtensions>
- <sourceDocumentExtension>.htmlsingleadoc</sourceDocumentExtension>
- </sourceDocumentExtensions>
- <outputDirectory>
- ${generated-docs-singlepage-output.dir}
- </outputDirectory>
- <doctype>book</doctype>
- <attributes>
- <source-highlighter>highlight.js</source-highlighter>
- <docinfo>shared</docinfo>
- <stylesdir>css/</stylesdir>
- <stylesheet>site.css</stylesheet>
- <linkcss>true</linkcss>
- <icons>font</icons>
- <highlightjsdir>js/highlight</highlightjsdir>
- <highlightjs-theme>github</highlightjs-theme>
- <imagesdir>./images</imagesdir>
- </attributes>
- </configuration>
- </execution>
- <execution>
- <id>generate-pdf-documentation</id>
- <phase>${generate-docs.phase}</phase>
- <goals>
- <goal>process-asciidoc</goal>
- </goals>
- <configuration>
- <backend>pdf</backend>
- <sourceDocumentExtensions>
- <sourceDocumentExtension>.pdfadoc</sourceDocumentExtension>
- </sourceDocumentExtensions>
- <outputDirectory>${generated-docs-pdf-output.dir}
- </outputDirectory>
- <resources>
- <resource>
- <directory>${refdocs.build.directory}</directory>
- <excludes>
- <exclude>**/*</exclude>
- </excludes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>${maven-antrun-plugin.version}</version>
- <dependencies>
- <dependency>
- <groupId>ant-contrib</groupId>
- <artifactId>ant-contrib</artifactId>
- <version>1.0b3</version>
- <exclusions>
- <exclusion>
- <groupId>ant</groupId>
- <artifactId>ant</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant-nodeps</artifactId>
- <version>${ant-nodeps.version}</version>
- </dependency>
- <dependency>
- <groupId>org.tigris.antelope</groupId>
- <artifactId>antelopetasks</artifactId>
- <version>${antelopetasks.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jruby</groupId>
- <artifactId>jruby-complete</artifactId>
- <version>${jruby-complete.version}</version>
- </dependency>
- <dependency>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctorj</artifactId>
- <version>${asciidoctorj.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <id>readme</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <path id="readme.class.path">
- <pathelement location="${readme.main.classpath}"/>
- </path>
- <java classname="org.springframework.cloud.internal.asciidoctor.ReadmeMain"
- failonerror="yes" classpathref="${readme.class.path}">
- <!-- Input -->
- <arg value="${project.basedir}/src/main/asciidoc/README.adoc"/>
- <!-- Output -->
- <arg value="${main.basedir}/README.adoc"/>
- </java>
- </target>
- </configuration>
- </execution>
- <execution>
- <id>assert-no-unresolved-links</id>
- <phase>${generate-docs.phase}</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <fileset id="unresolved.file" dir="${basedir}/target/generated-docs/"
- includes="**/*.html">
- <contains text="Unresolved"/>
- </fileset>
- <fail message="[Unresolved] Found...failing">
- <condition>
- <resourcecount when="greater"
- count="0"
- refid="unresolved.file"/>
- </condition>
- </fail>
- </target>
- </configuration>
- </execution>
- <execution>
- <id>copy-missing-html-files</id>
- <phase>${copy-missing-html-files.phase}</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <failOnError>false</failOnError>
- <target>
- <copy tofile="${project.build.directory}/generated-docs/reference/htmlsingle/index.html">
- <fileset dir="${project.build.directory}/generated-docs/reference/htmlsingle" includes="${docs.main}.html" />
- </copy>
- </target>
- </configuration>
- </execution>
- <execution>
- <id>package-and-attach-docs-zip</id>
- <phase>${package-and-attach-docs-zip.phase}</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <zip
- destfile="${project.build.directory}/${project.artifactId}-${revision}.zip">
- <!--<zipfileset
- src="${project.build.directory}/${project.artifactId}-${revision}-javadoc.jar"
- prefix="api" />-->
- <!-- <fileset dir="${project.build.directory}/contents"/>-->
- <fileset dir="${project.build.directory}/generated-docs"/>
- </zip>
- </target>
- </configuration>
- </execution>
- <execution>
- <id>setup-maven-properties</id>
- <phase>initialize</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <exportAntProperties>true</exportAntProperties>
- <target>
- <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
- <taskdef name="stringutil" classname="ise.antelope.tasks.StringUtilTask"/>
- <var name="version-type" value="${revision}"/>
- <propertyregex property="version-type" override="true"
- input="${version-type}" regexp=".*\.(.*)" replace="\1"/>
- <propertyregex property="version-type" override="true"
- input="${version-type}" regexp="(M)\d+" replace="MILESTONE"/>
- <propertyregex property="version-type" override="true"
- input="${version-type}" regexp="(RC)\d+"
- replace="MILESTONE"/>
- <propertyregex property="version-type" override="true"
- input="${version-type}" regexp="BUILD-(.*)"
- replace="SNAPSHOT"/>
- <stringutil string="${version-type}" property="spring-cloud-repo">
- <lowercase/>
- </stringutil>
- <propertyregex property="git.branch" override="true"
- input="${git.branch}" regexp="origin/(.*)"
- replace="\1"/>
- <var name="github-tag" value="${git.branch}"/>
- </target>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.jfrog.buildinfo</groupId>
- <artifactId>artifactory-maven-plugin</artifactId>
- <version>${artifactory-maven-plugin.version}</version>
- <executions>
- <execution>
- <id>build-info</id>
- <goals>
- <goal>publish</goal>
- </goals>
- <configuration>
- <deployProperties>
- <zip.deployed>true</zip.deployed>
- <zip.type>docs</zip.type>
- </deployProperties>
- <publisher>
- <contextUrl>https://repo.spring.io
- </contextUrl>
- <repoKey>libs-release-local</repoKey>
- <snapshotRepoKey>libs-snapshots-local
- </snapshotRepoKey>
- </publisher>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>${maven-deploy-plugin.version}</version>
- <executions>
- <execution>
- <id>default-deploy</id>
- <phase>${maven-deploy-plugin-default.phase}</phase>
- <goals>
- <goal>deploy</goal>
- </goals>
- </execution>
- <execution>
- <id>upload-docs-zip</id>
- <phase>${upload-docs-zip.phase}</phase>
- <goals>
- <goal>deploy-file</goal>
- </goals>
- <configuration>
- <generatePom>false</generatePom>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}</artifactId>
- <version>${project.version}</version>
- <repositoryId>${maven-deploy-plugin.deployZipRepositoryId}</repositoryId>
- <url>${maven-deploy-plugin.deployZipUrl}</url>
- <file>${project.build.directory}/${project.artifactId}-${project.version}.zip</file>
- <packaging>zip;zip.type=docs;zip.deployed=false;</packaging>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>pl.project13.maven</groupId>
- <artifactId>git-commit-id-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.asciidoctor</groupId>
- <artifactId>asciidoctor-maven-plugin</artifactId>
- <configuration>
- <attributes>
- <source-highlighter>highlight.js</source-highlighter>
- </attributes>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|